added static php-crud-api

This commit is contained in:
zino committed 2021-01-20 13:13:22 +01:00
1 parent ea9085b4a4
commit fda9de0fa5
175 files changed
+770 -15545

No files matched your search

-1
View File
@@ -23,7 +23,6 @@ function patchDir(string $base, string $dir): int
}
$patched = $original = file_get_contents($filename);
$patched = preg_replace('/\):\s*(\?[a-zA-Z]+|void)\s*\n/', ") /*:$1*/\n", $patched);
$patched = preg_replace('/([\(,])\s*(\?[a-zA-Z]+|void)\s+\$/', "$1 /*$2*/ \$", $patched);
$patched = preg_replace('/(private|public|protected) const/', "/*$1*/ const", $patched);
if ($patched && $patched != $original) {
file_put_contents($filename, $patched);