File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 2222 "cakephp/cakephp" : " 3.0.x-dev"
2323 },
2424 "require-dev" : {
25- "cakephp/cakephp-codesniffer" : " 2.0.*- dev" ,
25+ "cakephp/cakephp-codesniffer" : " dev-master " ,
2626 "phpunit/phpunit" : " *"
2727 },
2828 "autoload" : {
Original file line number Diff line number Diff line change @@ -54,16 +54,7 @@ public function main()
5454 $ project = $ this ->in ($ prompt , null , $ suggestedPath );
5555 }
5656
57- $ namespace = basename ($ project );
58- if (!preg_match ('/^\w[\w\d_]+$/ ' , $ namespace )) {
59- $ err = 'Project Name/Namespace must start with a letter ' .
60- ' and can only contain letters, digits and underscore ' ;
61- $ this ->err ($ err );
62- $ this ->args = [];
63- return $ this ->main ();
64- }
65-
66- if ($ project && !Folder::isAbsolute ($ project ) && isset ($ _SERVER ['PWD ' ])) {
57+ if (!Folder::isAbsolute ($ project ) && isset ($ _SERVER ['PWD ' ])) {
6758 $ project = $ _SERVER ['PWD ' ] . DS . $ project ;
6859 }
6960
You can’t perform that action at this time.
0 commit comments