Skip to content

Commit 17208db

Browse files
committed
Remove vendor dir
1 parent 9a199b6 commit 17208db

File tree

378 files changed

+485
-24306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+485
-24306
lines changed

.gitignore

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
composer.phar
2-
composer.lock
3-
.git
4-
api.php
5-
start.sh
2+
vendor/

build.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
// combine src and vendor directories into a single file
4+
35
function 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: [email protected]
69-
* https://github.com/mevdschee/php-crud-ui
69+
* PHP-CRUD-ADMIN v2 License: MIT
70+
* Maurits van der Schee: [email protected]
71+
* https://github.com/mevdschee/php-crud-admin
7072
*
7173
* Dependencies:
7274
* - vendor/psr/*: PHP-FIG

0 commit comments

Comments
 (0)