@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * @var $type |
16 | 16 | */ |
17 | - public $type='project'; |
|
17 | + public $type = 'project'; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @var array |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * @var $commandRule |
33 | 33 | */ |
34 | - public $commandRule=[]; |
|
34 | + public $commandRule = []; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @method create |
@@ -45,17 +45,17 @@ discard block |
||
45 | 45 | $this->directory['projectDir'] = $this->projectPath(); |
46 | 46 | $this->argument['exceptionNamespace'] = app()->namespace()->exception(); |
47 | 47 | $this->argument['resourcePath'] = app()->path()->appResourche(); |
48 | - $this->argument['testNamespace'] = app()->namespace()->tests(); |
|
48 | + $this->argument['testNamespace'] = app()->namespace()->tests(); |
|
49 | 49 | |
50 | - $recursiveDefaultDirectory = explode("\\",$this->argument['project']); |
|
50 | + $recursiveDefaultDirectory = explode("\\", $this->argument['project']); |
|
51 | 51 | $this->argument['applicationName'] = pos($recursiveDefaultDirectory); |
52 | 52 | $recursiveDefaultDirectory[] = 'V1'; |
53 | 53 | $recursiveDefaultDirectoryList = []; |
54 | 54 | |
55 | - foreach (array_slice($recursiveDefaultDirectory,1) as $defaultDirectory){ |
|
55 | + foreach (array_slice($recursiveDefaultDirectory, 1) as $defaultDirectory) { |
|
56 | 56 | |
57 | - $recursiveDefaultDirectoryList[]=$defaultDirectory; |
|
58 | - $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/",$recursiveDefaultDirectoryList); |
|
57 | + $recursiveDefaultDirectoryList[] = $defaultDirectory; |
|
58 | + $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/", $recursiveDefaultDirectoryList); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | //$this->directory['optionalDir'] = $this->optional(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | //$this->directory['sourceDir'] = $this->sourceDir(); |
82 | 82 | //$this->directory['sourceSupportDir'] = $this->sourceSupportDir(); |
83 | 83 | //$this->directory['sourceSupportTraitDir'] = $this->sourceSupportDir().'/Traits'; |
84 | - $this->directory['exceptionDir'] = app()->path()->exception(); |
|
84 | + $this->directory['exceptionDir'] = app()->path()->exception(); |
|
85 | 85 | |
86 | 86 | //set project directory |
87 | 87 | $this->file->makeDirectory($this); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->touch['kernel/app'] = $this->provider().'/AppServiceProvider.php'; |
96 | 96 | $this->touch['kernel/worker'] = $this->provider().'/WorkerServiceProvider.php'; |
97 | 97 | $this->touch['kernel/route'] = $this->provider().'/RouteServiceProvider.php'; |
98 | - $this->touch['test/testcase'] = $this->test().'/TestCase.php'; |
|
98 | + $this->touch['test/testcase'] = $this->test().'/TestCase.php'; |
|
99 | 99 | $this->touch['kernel/consoleevent'] = $this->provider().'/ConsoleEventServiceProvider.php'; |
100 | 100 | $this->touch['middleware/authenticate'] = $this->middleware().'/Authenticate.php'; |
101 | 101 | $this->touch['middleware/ratelimit'] = $this->middleware().'/RateLimit.php'; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $this->touch['app/gitignore'] = $this->projectPath().'/.gitignore'; |
135 | 135 | $this->touch['app/composer'] = $this->projectPath().'/composer.json'; |
136 | 136 | $this->touch['test/index'] = $this->storage().'/index.html'; |
137 | - $this->touch['exception/authenticate'] = $this->directory['exceptionDir'] .'/AuthenticateException.php'; |
|
137 | + $this->touch['exception/authenticate'] = $this->directory['exceptionDir'].'/AuthenticateException.php'; |
|
138 | 138 | |
139 | 139 | //set project touch |
140 | 140 | $this->file->touch($this); |