@@ -69,7 +69,7 @@ |
||
69 | 69 | */ |
70 | 70 | public static function pluginInstall($plugin, $activate = true, $version = null) |
71 | 71 | { |
72 | - $options = [ 'force' => '' ]; |
|
72 | + $options = ['force' => '']; |
|
73 | 73 | |
74 | 74 | if ($activate) { |
75 | 75 | $options['activate'] = ''; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | protected static function execOptions($options) |
33 | 33 | { |
34 | - $options = array_map(function ($key, $value) { |
|
34 | + $options = array_map(function($key, $value) { |
|
35 | 35 | if ($value) { |
36 | 36 | return "--{$key}='{$value}'"; |
37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | // For now all validation is 2 levels deep so this should be good for now. |
43 | 43 | $keys = explode(':', $ruleKey); |
44 | - $config[ $keys[0] ][ $keys[1] ] = $value; |
|
44 | + $config[$keys[0]][$keys[1]] = $value; |
|
45 | 45 | |
46 | 46 | return $config; |
47 | 47 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | // Ask the question. |
71 | 71 | $questionValue = $value ? " (<info>{$value}</info>)" : ''; |
72 | 72 | $question = new Question("{$message}{$questionValue}: ", $value); |
73 | - $question->setValidator(function ($answer) use ($message) { |
|
73 | + $question->setValidator(function($answer) use ($message) { |
|
74 | 74 | if (!$answer) { |
75 | 75 | throw new RuntimeException("{$message} is required!"); |
76 | 76 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | { |
94 | 94 | $value = ''; |
95 | 95 | foreach (explode(':', $ruleKey) as $configKey) { |
96 | - $config = isset($config[ $configKey ]) ? $config[ $configKey ] : ''; |
|
96 | + $config = isset($config[$configKey]) ? $config[$configKey] : ''; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | if (is_array($config)) { |
@@ -157,7 +157,7 @@ |
||
157 | 157 | $plugins = []; |
158 | 158 | foreach ($config['plugins'] as $plugin) { |
159 | 159 | $key = $plugin['plugin']; |
160 | - $plugins[ $key ] = $plugin; |
|
160 | + $plugins[$key] = $plugin; |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | $config['plugins'] = array_values($plugins); |
@@ -40,6 +40,6 @@ |
||
40 | 40 | */ |
41 | 41 | protected static function makeTempName($directory, $type) |
42 | 42 | { |
43 | - return $directory . '/' . md5(time().uniqid()) . ".{$type}"; |
|
43 | + return $directory . '/' . md5(time() . uniqid()) . ".{$type}"; |
|
44 | 44 | } |
45 | 45 | } |