@@ -114,8 +114,8 @@ |
||
114 | 114 | $userRepo = app('xe.users'); |
115 | 115 | |
116 | 116 | $groups = $groupRepo->findMany($grant['group']); |
117 | - $users = $userRepo->findMany($grant['user'], ['id','displayName']); |
|
118 | - $excepts = $userRepo->findMany($grant['except'], ['id','displayName']); |
|
117 | + $users = $userRepo->findMany($grant['user'], ['id', 'displayName']); |
|
118 | + $excepts = $userRepo->findMany($grant['except'], ['id', 'displayName']); |
|
119 | 119 | |
120 | 120 | $permissionValueArray['rating'] = $grant['rating']; |
121 | 121 | $permissionValueArray['group'] = $groups; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public function getSettingsView(ConfigEntity $config = null) |
70 | 70 | { |
71 | - return View::make('dynamicField/number/createType', ['config' => $config,])->render(); |
|
71 | + return View::make('dynamicField/number/createType', ['config' => $config, ])->render(); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | 'storage' => array( |
30 | 30 | 'enabled' => true, |
31 | 31 | 'driver' => 'file', // redis, file, pdo |
32 | - 'path' => storage_path() . '/debugbar', // For file driver |
|
33 | - 'connection' => null, // Leave null for default connection (Redis/PDO) |
|
32 | + 'path' => storage_path().'/debugbar', // For file driver |
|
33 | + 'connection' => null, // Leave null for default connection (Redis/PDO) |
|
34 | 34 | ), |
35 | 35 | |
36 | 36 | /* |
@@ -71,20 +71,20 @@ discard block |
||
71 | 71 | */ |
72 | 72 | |
73 | 73 | 'collectors' => array( |
74 | - 'phpinfo' => true, // Php version |
|
75 | - 'messages' => true, // Messages |
|
76 | - 'time' => true, // Time Datalogger |
|
77 | - 'memory' => true, // Memory usage |
|
78 | - 'exceptions' => true, // Exception displayer |
|
79 | - 'log' => true, // Logs from Monolog (merged in messages if enabled) |
|
80 | - 'db' => true, // Show database (PDO) queries and bindings |
|
81 | - 'views' => true, // Views with their data |
|
82 | - 'route' => true, // Current route information |
|
74 | + 'phpinfo' => true, // Php version |
|
75 | + 'messages' => true, // Messages |
|
76 | + 'time' => true, // Time Datalogger |
|
77 | + 'memory' => true, // Memory usage |
|
78 | + 'exceptions' => true, // Exception displayer |
|
79 | + 'log' => true, // Logs from Monolog (merged in messages if enabled) |
|
80 | + 'db' => true, // Show database (PDO) queries and bindings |
|
81 | + 'views' => true, // Views with their data |
|
82 | + 'route' => true, // Current route information |
|
83 | 83 | 'laravel' => false, // Laravel version and environment |
84 | 84 | 'events' => false, // All events fired |
85 | 85 | 'default_request' => false, // Regular or special Symfony request logger |
86 | - 'symfony_request' => true, // Only one can be enabled.. |
|
87 | - 'mail' => true, // Catch mail messages |
|
86 | + 'symfony_request' => true, // Only one can be enabled.. |
|
87 | + 'mail' => true, // Catch mail messages |
|
88 | 88 | 'logs' => false, // Add the latest log messages |
89 | 89 | 'files' => false, // Show the included files |
90 | 90 | 'config' => false, // Display config settings |
@@ -103,23 +103,23 @@ discard block |
||
103 | 103 | |
104 | 104 | 'options' => array( |
105 | 105 | 'auth' => array( |
106 | - 'show_name' => false, // Also show the users name/email in the debugbar |
|
106 | + 'show_name' => false, // Also show the users name/email in the debugbar |
|
107 | 107 | ), |
108 | 108 | 'db' => array( |
109 | - 'with_params' => true, // Render SQL with the parameters substituted |
|
110 | - 'timeline' => false, // Add the queries to the timeline |
|
111 | - 'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files. |
|
109 | + 'with_params' => true, // Render SQL with the parameters substituted |
|
110 | + 'timeline' => false, // Add the queries to the timeline |
|
111 | + 'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files. |
|
112 | 112 | 'explain' => array( // EXPERIMENTAL: Show EXPLAIN output on queries |
113 | 113 | 'enabled' => false, |
114 | 114 | 'types' => array('SELECT'), // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+ |
115 | 115 | ), |
116 | - 'hints' => true, // Show hints for common mistakes |
|
116 | + 'hints' => true, // Show hints for common mistakes |
|
117 | 117 | ), |
118 | 118 | 'mail' => array( |
119 | 119 | 'full_log' => false |
120 | 120 | ), |
121 | 121 | 'views' => array( |
122 | - 'data' => false, //Note: Can slow down the application, because the data can be quite large.. |
|
122 | + 'data' => false, //Note: Can slow down the application, because the data can be quite large.. |
|
123 | 123 | ), |
124 | 124 | 'route' => array( |
125 | 125 | 'label' => true // show complete route on bar |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | protected function isInstalled() |
76 | 76 | { |
77 | - return file_exists($this->app->storagePath() . '/app/installed'); |
|
77 | + return file_exists($this->app->storagePath().'/app/installed'); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function resetProviders() |
97 | 97 | { |
98 | - $this->app['events']->listen('bootstrapped: App\Bootstrappers\LoadConfiguration', function ($app) { |
|
98 | + $this->app['events']->listen('bootstrapped: App\Bootstrappers\LoadConfiguration', function($app) { |
|
99 | 99 | $config = $app['config']; |
100 | 100 | |
101 | 101 | $providers = $config['app.providers']; |
102 | - $providers = array_filter($providers, function ($p) { |
|
102 | + $providers = array_filter($providers, function($p) { |
|
103 | 103 | return substr($p, 0, strlen('Illuminate')) == 'Illuminate'; |
104 | 104 | }); |
105 | 105 |
@@ -126,8 +126,8 @@ |
||
126 | 126 | private function summary($args) |
127 | 127 | { |
128 | 128 | foreach ($this->waste($args) as $basket) { |
129 | - $this->info(' name: ' . $basket::name()); |
|
130 | - $this->info(' summary: ' . $basket::summary()); |
|
129 | + $this->info(' name: '.$basket::name()); |
|
130 | + $this->info(' summary: '.$basket::summary()); |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | $this->info(PHP_EOL."Running 'composer $command'.".PHP_EOL); |
53 | 53 | |
54 | - if($this->runComposer(base_path(), $command) !== 0) { |
|
54 | + if ($this->runComposer(base_path(), $command) !== 0) { |
|
55 | 55 | throw new \Exception('Plugin Installation was faild.'); |
56 | 56 | } |
57 | 57 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $activate = $this->option('activate'); |
61 | 61 | |
62 | - if($activate) { |
|
62 | + if ($activate) { |
|
63 | 63 | $this->activatePlugin($name); |
64 | 64 | $this->info("Plugin '$name' is activated.".PHP_EOL); |
65 | 65 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $output = $this->output; |
83 | 83 | |
84 | 84 | return $process->run( |
85 | - function ($type, $line) use ($output) { |
|
85 | + function($type, $line) use ($output) { |
|
86 | 86 | $output->write($line); |
87 | 87 | } |
88 | 88 | ); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | $loop = 0; |
53 | 53 | try { |
54 | - while(true) { |
|
54 | + while (true) { |
|
55 | 55 | $files = $this->storage->paginate(['useCount' => 0, 'parentId' => null], 20); |
56 | 56 | if (count($files) < 1) { |
57 | 57 | break; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | private function intercept() |
84 | 84 | { |
85 | - intercept('Storage@remove', 'storage.optimize.log', function ($target, $file) { |
|
85 | + intercept('Storage@remove', 'storage.optimize.log', function($target, $file) { |
|
86 | 86 | |
87 | 87 | $this->bag[] = $file; |
88 | 88 | |
@@ -102,22 +102,22 @@ discard block |
||
102 | 102 | switch ($verbosity) { |
103 | 103 | case 2: |
104 | 104 | if ($file->parentId === null) { |
105 | - $this->info("\t" . $file->clientname); |
|
105 | + $this->info("\t".$file->clientname); |
|
106 | 106 | } |
107 | 107 | break; |
108 | 108 | case 3: |
109 | 109 | if ($file->parentId === null) { |
110 | - $this->line("\t" . |
|
111 | - $file->disk . "\t" . |
|
112 | - "<info>" . $file->clientname . "</info>\t" . |
|
110 | + $this->line("\t". |
|
111 | + $file->disk."\t". |
|
112 | + "<info>".$file->clientname."</info>\t". |
|
113 | 113 | bytes($file->size) |
114 | 114 | ); |
115 | 115 | } |
116 | 116 | break; |
117 | 117 | case 4: |
118 | - $this->line("\t" . |
|
119 | - $file->disk . "\t" . |
|
120 | - "<info>" . $file->clientname . "</info>\t" . |
|
118 | + $this->line("\t". |
|
119 | + $file->disk."\t". |
|
120 | + "<info>".$file->clientname."</info>\t". |
|
121 | 121 | bytes($file->size) |
122 | 122 | ); |
123 | 123 | break; |
@@ -133,9 +133,9 @@ discard block |
||
133 | 133 | } catch (\Exception $e) { |
134 | 134 | $err = [ |
135 | 135 | 'System error', |
136 | - ' message: ' . $e->getMessage(), |
|
137 | - ' file: ' . $e->getFile(), |
|
138 | - ' line: ' . $e->getLine(), |
|
136 | + ' message: '.$e->getMessage(), |
|
137 | + ' file: '.$e->getFile(), |
|
138 | + ' line: '.$e->getLine(), |
|
139 | 139 | ]; |
140 | 140 | $this->output->error(implode(PHP_EOL, $err)); |
141 | 141 | $note = [ |
@@ -291,13 +291,13 @@ discard block |
||
291 | 291 | try { |
292 | 292 | $this->setStorageDirPermission(); |
293 | 293 | } catch (\Exception $e) { |
294 | - $this->error('Fail to change storage directory permission. Check directory after install.' . PHP_EOL . ' message: '. $e->getMessage()); |
|
294 | + $this->error('Fail to change storage directory permission. Check directory after install.'.PHP_EOL.' message: '.$e->getMessage()); |
|
295 | 295 | } |
296 | 296 | |
297 | 297 | try { |
298 | 298 | $this->setBootCacheDirPermission(); |
299 | 299 | } catch (\Exception $e) { |
300 | - $this->error('Fail to change bootstrap cache directory permission. Check directory after install.' . PHP_EOL . ' message: '. $e->getMessage()); |
|
300 | + $this->error('Fail to change bootstrap cache directory permission. Check directory after install.'.PHP_EOL.' message: '.$e->getMessage()); |
|
301 | 301 | } |
302 | 302 | } |
303 | 303 | |
@@ -423,13 +423,13 @@ discard block |
||
423 | 423 | */ |
424 | 424 | private function configFileGenerate($key, array $data) |
425 | 425 | { |
426 | - $dir = config_path() . '/cms'; |
|
426 | + $dir = config_path().'/cms'; |
|
427 | 427 | $this->makeDir($dir); |
428 | 428 | |
429 | 429 | $data = $this->encodeArr2Str($data); |
430 | 430 | |
431 | - $file = $dir . "/{$key}.php"; |
|
432 | - file_put_contents($file, '<?php' . str_repeat(PHP_EOL, 2) . 'return [' . PHP_EOL . $data . '];' . PHP_EOL); |
|
431 | + $file = $dir."/{$key}.php"; |
|
432 | + file_put_contents($file, '<?php'.str_repeat(PHP_EOL, 2).'return ['.PHP_EOL.$data.'];'.PHP_EOL); |
|
433 | 433 | } |
434 | 434 | |
435 | 435 | /** |
@@ -462,9 +462,9 @@ discard block |
||
462 | 462 | |
463 | 463 | foreach ($arr as $key => $val) { |
464 | 464 | if (is_array($val)) { |
465 | - $output .= $this->getIndent($depth) . "'{$key}' => " . '[' . PHP_EOL . $this->encodeArr2Str($val, $depth + 1) . $this->getIndent($depth) . '],' . PHP_EOL; |
|
465 | + $output .= $this->getIndent($depth)."'{$key}' => ".'['.PHP_EOL.$this->encodeArr2Str($val, $depth + 1).$this->getIndent($depth).'],'.PHP_EOL; |
|
466 | 466 | } else { |
467 | - $output .= $this->getIndent($depth) . "'{$key}' => " . (is_int($val) ? $val : "'{$val}'") .',' . PHP_EOL; |
|
467 | + $output .= $this->getIndent($depth)."'{$key}' => ".(is_int($val) ? $val : "'{$val}'").','.PHP_EOL; |
|
468 | 468 | } |
469 | 469 | } |
470 | 470 | |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | $siteInfo = $this->defaultInfos['site']; |
519 | 519 | |
520 | 520 | // site url |
521 | - $siteInfo['url'] = $this->askValidation('site url', $siteInfo['url'], function ($url) { |
|
521 | + $siteInfo['url'] = $this->askValidation('site url', $siteInfo['url'], function($url) { |
|
522 | 522 | $url = trim($url, "/"); |
523 | 523 | if (filter_var($url, FILTER_VALIDATE_URL) === false) { |
524 | 524 | throw new \Exception('Invalid URL Format.'); |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | }); |
528 | 528 | |
529 | 529 | // timezone |
530 | - $siteInfo['timezone'] = $this->askValidation('Timezone', $siteInfo['timezone'], function ($timezone) { |
|
530 | + $siteInfo['timezone'] = $this->askValidation('Timezone', $siteInfo['timezone'], function($timezone) { |
|
531 | 531 | if (in_array($timezone, timezone_identifiers_list()) === false) { |
532 | 532 | throw new \Exception('Inputted timezone do not exist.'); |
533 | 533 | } |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | $process = new Process(implode(' && ', $commands), $this->getBasePath(), null, null, null); |
699 | 699 | |
700 | 700 | $process->run( |
701 | - function ($type, $line) { |
|
701 | + function($type, $line) { |
|
702 | 702 | $this->line($line); |
703 | 703 | } |
704 | 704 | ); |
@@ -743,7 +743,7 @@ discard block |
||
743 | 743 | $adminInfo = $this->defaultInfos['admin']; |
744 | 744 | |
745 | 745 | |
746 | - $adminInfo['email'] = $this->askValidation('Email', $adminInfo['email'], function ($email) { |
|
746 | + $adminInfo['email'] = $this->askValidation('Email', $adminInfo['email'], function($email) { |
|
747 | 747 | $validate = \Validator::make( |
748 | 748 | ['email' => $email], |
749 | 749 | [ |
@@ -757,7 +757,7 @@ discard block |
||
757 | 757 | }); |
758 | 758 | |
759 | 759 | // displayName |
760 | - $adminInfo['displayName'] = $this->askValidation('Name', $adminInfo['displayName'], function ($displayName) { |
|
760 | + $adminInfo['displayName'] = $this->askValidation('Name', $adminInfo['displayName'], function($displayName) { |
|
761 | 761 | if (strlen(trim($displayName)) === 0) { |
762 | 762 | throw new \Exception('Input Name'); |
763 | 763 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | if (count($cacheNames) === 0) { |
107 | 107 | $this->error('캐시된 테이블이 없습니다. 테이블 이름을 확인하세요.'); |
108 | 108 | } else { |
109 | - $this->info(implode(',', array_unique($cacheNames)) . ' 테이블을 캐시 했습니다.'); |
|
109 | + $this->info(implode(',', array_unique($cacheNames)).' 테이블을 캐시 했습니다.'); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 |