@@ -39,10 +39,10 @@ |
||
| 39 | 39 | while (!feof($proc)) |
| 40 | 40 | {
|
| 41 | 41 | $result = fread($proc, 4096); |
| 42 | - if(preg_match('@\{(.*)\}@',$result,$output)){
|
|
| 43 | - $outputArray = json_decode($output[0],1); |
|
| 42 | + if (preg_match('@\{(.*)\}@', $result, $output)) {
|
|
| 43 | + $outputArray = json_decode($output[0], 1); |
|
| 44 | 44 | |
| 45 | - if(app()->has('track.log')){
|
|
| 45 | + if (app()->has('track.log')) {
|
|
| 46 | 46 | |
| 47 | 47 | $track = app()->get('track.log');
|
| 48 | 48 | echo $track($outputArray); |
@@ -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 |
@@ -46,17 +46,17 @@ discard block |
||
| 46 | 46 | $this->directory['projectDir'] = $this->projectPath(); |
| 47 | 47 | $this->argument['exceptionNamespace'] = app()->namespace()->exception(); |
| 48 | 48 | $this->argument['resourcePath'] = app()->path()->appResourche(); |
| 49 | - $this->argument['testNamespace'] = app()->namespace()->tests(); |
|
| 49 | + $this->argument['testNamespace'] = app()->namespace()->tests(); |
|
| 50 | 50 | |
| 51 | - $recursiveDefaultDirectory = explode("\\",$this->argument['project']);
|
|
| 51 | + $recursiveDefaultDirectory = explode("\\", $this->argument['project']);
|
|
| 52 | 52 | $this->argument['applicationName'] = pos($recursiveDefaultDirectory); |
| 53 | 53 | $recursiveDefaultDirectory[] = 'V1'; |
| 54 | 54 | $recursiveDefaultDirectoryList = []; |
| 55 | 55 | |
| 56 | - foreach (array_slice($recursiveDefaultDirectory,1) as $defaultDirectory){
|
|
| 56 | + foreach (array_slice($recursiveDefaultDirectory, 1) as $defaultDirectory) {
|
|
| 57 | 57 | |
| 58 | - $recursiveDefaultDirectoryList[]=$defaultDirectory; |
|
| 59 | - $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/",$recursiveDefaultDirectoryList);
|
|
| 58 | + $recursiveDefaultDirectoryList[] = $defaultDirectory; |
|
| 59 | + $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/", $recursiveDefaultDirectoryList);
|
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | //$this->directory['optionalDir'] = $this->optional(); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | //$this->directory['sourceDir'] = $this->sourceDir(); |
| 83 | 83 | //$this->directory['sourceSupportDir'] = $this->sourceSupportDir(); |
| 84 | 84 | //$this->directory['sourceSupportTraitDir'] = $this->sourceSupportDir().'/Traits'; |
| 85 | - $this->directory['exceptionDir'] = app()->path()->exception(); |
|
| 85 | + $this->directory['exceptionDir'] = app()->path()->exception(); |
|
| 86 | 86 | |
| 87 | 87 | //set project directory |
| 88 | 88 | $this->file->makeDirectory($this); |
@@ -95,11 +95,11 @@ discard block |
||
| 95 | 95 | $this->touch['kernel/version'] = $this->kernel().'/Version.php'; |
| 96 | 96 | $this->touch['kernel/app'] = $this->provider().'/AppServiceProvider.php'; |
| 97 | 97 | $this->touch['kernel/worker'] = $this->provider().'/WorkerServiceProvider.php'; |
| 98 | - $this->touch['kernel/cache'] = $this->provider().'/CacheServiceProvider.php'; |
|
| 98 | + $this->touch['kernel/cache'] = $this->provider().'/CacheServiceProvider.php'; |
|
| 99 | 99 | $this->touch['kernel/authenticate'] = $this->provider().'/AuthenticateServiceProvider.php'; |
| 100 | 100 | $this->touch['kernel/role'] = $this->provider().'/RoleServiceProvider.php'; |
| 101 | 101 | $this->touch['kernel/track'] = $this->provider().'/TrackServiceProvider.php'; |
| 102 | - $this->touch['test/testcase'] = $this->test().'/TestCase.php'; |
|
| 102 | + $this->touch['test/testcase'] = $this->test().'/TestCase.php'; |
|
| 103 | 103 | $this->touch['kernel/consoleevent'] = $this->provider().'/ConsoleEventServiceProvider.php'; |
| 104 | 104 | $this->touch['middleware/authenticate'] = $this->middleware().'/Authenticate.php'; |
| 105 | 105 | $this->touch['middleware/ratelimit'] = $this->middleware().'/RateLimit.php'; |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $this->touch['app/gitignore'] = $this->projectPath().'/.gitignore'; |
| 141 | 141 | $this->touch['app/composer'] = $this->projectPath().'/composer.json'; |
| 142 | 142 | $this->touch['test/index'] = $this->storage().'/index.html'; |
| 143 | - $this->touch['exception/authenticate'] = $this->directory['exceptionDir'] .'/AuthenticateException.php'; |
|
| 143 | + $this->touch['exception/authenticate'] = $this->directory['exceptionDir'].'/AuthenticateException.php'; |
|
| 144 | 144 | |
| 145 | 145 | //set project touch |
| 146 | 146 | $this->file->touch($this); |