11<?php
22
3+ // combine src and vendor directories into a single file
4+
35function removeIgnored (string $ dir , array &$ entries , array $ ignore )
46{
57 foreach ($ entries as $ i => $ entry ) {
@@ -44,7 +46,7 @@ function runDir(string $base, string $dir, array &$lines, array $ignore): int
4446 $ count ++;
4547 } elseif (substr ($ entry , -5 ) == '.html ' ) {
4648 $ data = file_get_contents ($ filename );
47- $ id = explode ('. ' ,explode ('/ ' ,"$ dir/ $ entry " ,2 )[1 ],2 )[0 ];
49+ $ id = explode ('. ' , explode ('/ ' , "$ dir/ $ entry " , 2 )[1 ], 2 )[0 ];
4850 array_push ($ lines , "// file: $ dir/ $ entry " );
4951 array_push ($ lines , 'namespace { ' );
5052 array_push ($ lines , "\$_HTML[' $ id'] = <<<'END_OF_HTML' " );
@@ -64,9 +66,9 @@ function addHeader(array &$lines)
6466 $ head = <<<'EOF'
6567<?php
6668/**
67- * PHP-CRUD-UI v2 License: MIT
68- * Maurits van der Schee: maurits@vdschee.nl
69- * https://github.com/mevdschee/php-crud-ui
69+ * PHP-CRUD-ADMIN v2 License: MIT
70+ * Maurits van der Schee: maurits@vdschee.nl
71+ * https://github.com/mevdschee/php-crud-admin
7072 *
7173 * Dependencies:
7274 * - vendor/psr/*: PHP-FIG
0 commit comments