@@ -94,7 +94,7 @@ |
||
94 | 94 | $path ?: '', |
95 | 95 | implode('_', [ |
96 | 96 | $command->getName(), |
97 | - $command->getDimension()->getWidth() . 'x' . $command->getDimension()->getHeight(), |
|
97 | + $command->getDimension()->getWidth().'x'.$command->getDimension()->getHeight(), |
|
98 | 98 | hash('sha1', $content), |
99 | 99 | ]), |
100 | 100 | $disk, |
@@ -70,17 +70,17 @@ |
||
70 | 70 | */ |
71 | 71 | function bytes($bytes, $unit = null, $dec = 2) |
72 | 72 | { |
73 | - $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
|
73 | + $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
|
74 | 74 | if (in_array($unit, $size)) { |
75 | 75 | $factor = array_search($unit, $size); |
76 | 76 | } else { |
77 | - $factor = (int)((strlen($bytes) - 1) / 3); |
|
77 | + $factor = (int) ((strlen($bytes) - 1) / 3); |
|
78 | 78 | } |
79 | 79 | $dec = $factor == 0 ? 0 : $dec; |
80 | 80 | if ($factor >= count($size)) { |
81 | 81 | $factor = count($size) - 1; |
82 | 82 | } |
83 | 83 | |
84 | - return sprintf("%.{$dec}f", $bytes / pow(1024, $factor)) . $size[$factor]; |
|
84 | + return sprintf("%.{$dec}f", $bytes / pow(1024, $factor)).$size[$factor]; |
|
85 | 85 | } |
86 | 86 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | // prepend ":" to each key |
94 | 94 | $keys = array_map( |
95 | - function ($key) { |
|
95 | + function($key) { |
|
96 | 96 | return ':'.$key; |
97 | 97 | }, |
98 | 98 | array_keys($this->args) |
@@ -137,7 +137,7 @@ |
||
137 | 137 | { |
138 | 138 | $config = [ |
139 | 139 | 'instanceId' => $instanceId, |
140 | - 'group' => 'documents_' . $instanceId, |
|
140 | + 'group' => 'documents_'.$instanceId, |
|
141 | 141 | ]; |
142 | 142 | |
143 | 143 | $config = array_merge($config, $params); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | // sort |
149 | 149 | $activated = array_merge(array_flip($keys), $activated); |
150 | 150 | |
151 | - return array_filter($activated, function ($val) { |
|
151 | + return array_filter($activated, function($val) { |
|
152 | 152 | return !empty($val); |
153 | 153 | }); |
154 | 154 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | protected function getConfigKey($id, $instanceId) |
176 | 176 | { |
177 | - return 'toggleMenu@' . $id . ($instanceId !== null ? '.' . $instanceId : ''); |
|
177 | + return 'toggleMenu@'.$id.($instanceId !== null ? '.'.$instanceId : ''); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
@@ -196,6 +196,6 @@ discard block |
||
196 | 196 | */ |
197 | 197 | private function getTypeKey($id) |
198 | 198 | { |
199 | - return $id . PluginRegister::KEY_DELIMITER . 'toggleMenu'; |
|
199 | + return $id.PluginRegister::KEY_DELIMITER.'toggleMenu'; |
|
200 | 200 | } |
201 | 201 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | if (stripos($moduleId, 'module/') !== false) { |
40 | 40 | return $moduleId; |
41 | 41 | } else { |
42 | - return 'module/' . $moduleId; |
|
42 | + return 'module/'.$moduleId; |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 | } |
@@ -101,7 +101,7 @@ |
||
101 | 101 | public function generate() |
102 | 102 | { |
103 | 103 | $version = $this->getMode(); |
104 | - $method = 'createIdVersion' . $version; |
|
104 | + $method = 'createIdVersion'.$version; |
|
105 | 105 | |
106 | 106 | if (!method_exists($this, $method)) { |
107 | 107 | throw new UnknownGeneratorVersionException(['version' => $version]); |
@@ -77,7 +77,7 @@ |
||
77 | 77 | return $invocationHandler->callProxy( |
78 | 78 | $arguments, |
79 | 79 | // 등록된 advisor들이 모두 호출된 다음 마지막에 호출되어 target의 origin method를 실행하는 클로저 |
80 | - function () use ($method, $isCallMagicMethod) { |
|
80 | + function() use ($method, $isCallMagicMethod) { |
|
81 | 81 | $args = func_get_args(); |
82 | 82 | |
83 | 83 | if ($isCallMagicMethod) { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | protected function checker(UserInterface $user, $type, $value) |
143 | 143 | { |
144 | - $inspectMethod = $type . 'Inspect'; |
|
144 | + $inspectMethod = $type.'Inspect'; |
|
145 | 145 | |
146 | 146 | return $this->$inspectMethod($user, $value); |
147 | 147 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } |
180 | 180 | |
181 | 181 | $groups = $this->vgroups->findByUserId($user->getId()); |
182 | - $groups = array_map(function ($group) { |
|
182 | + $groups = array_map(function($group) { |
|
183 | 183 | return $group->id; |
184 | 184 | }, $groups); |
185 | 185 |