@@ -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 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ->first(); |
69 | 69 | |
70 | 70 | if ($row !== null) { |
71 | - return $this->createItem((array)$row); |
|
71 | + return $this->createItem((array) $row); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | return null; |
@@ -139,12 +139,12 @@ discard block |
||
139 | 139 | { |
140 | 140 | $rows = $this->conn->table($this->table) |
141 | 141 | ->where('siteKey', $item->siteKey) |
142 | - ->whereRaw("'" . $item->name . "' like concat(`name`, '.', '%')") |
|
142 | + ->whereRaw("'".$item->name."' like concat(`name`, '.', '%')") |
|
143 | 143 | ->where('name', '<>', $item->name)->get(); |
144 | 144 | |
145 | 145 | $items = []; |
146 | 146 | foreach ($rows as $row) { |
147 | - $items[] = $this->createItem((array)$row); |
|
147 | + $items[] = $this->createItem((array) $row); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | return $items; |
@@ -160,12 +160,12 @@ discard block |
||
160 | 160 | { |
161 | 161 | $rows = $this->conn->table($this->table) |
162 | 162 | ->where('siteKey', $item->siteKey) |
163 | - ->where('name', 'like', $item->name . '.%') |
|
163 | + ->where('name', 'like', $item->name.'.%') |
|
164 | 164 | ->where('name', '<>', $item->name)->get(); |
165 | 165 | |
166 | 166 | $items = []; |
167 | 167 | foreach ($rows as $row) { |
168 | - $items[] = $this->createItem((array)$row); |
|
168 | + $items[] = $this->createItem((array) $row); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | return $items; |
@@ -183,9 +183,9 @@ discard block |
||
183 | 183 | { |
184 | 184 | $query = $this->conn->table($this->table) |
185 | 185 | ->where('siteKey', $item->siteKey) |
186 | - ->where(function ($query) use ($item) { |
|
186 | + ->where(function($query) use ($item) { |
|
187 | 187 | $query->where('name', $item->name) |
188 | - ->orWhere('name', 'like', $item->name . '.%'); |
|
188 | + ->orWhere('name', 'like', $item->name.'.%'); |
|
189 | 189 | }); |
190 | 190 | |
191 | 191 | $arr = explode('.', $item->name); |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | if ($to !== null) { |
213 | 213 | $this->conn->table($this->table) |
214 | 214 | ->where('siteKey', $item->siteKey) |
215 | - ->where(function ($query) use ($item) { |
|
215 | + ->where(function($query) use ($item) { |
|
216 | 216 | $query->where('name', $item->name) |
217 | - ->orWhere('name', 'like', $item->name . '.%'); |
|
217 | + ->orWhere('name', 'like', $item->name.'.%'); |
|
218 | 218 | }) |
219 | 219 | ->update(['name' => $this->conn->raw("concat('{$to}', '.', `name`)")]); |
220 | 220 | } |
@@ -133,7 +133,7 @@ |
||
133 | 133 | |
134 | 134 | protected function isAllowType($type) |
135 | 135 | { |
136 | - $constName = __CLASS__ . '::' . strtoupper($type) . '_TYPE'; |
|
136 | + $constName = __CLASS__.'::'.strtoupper($type).'_TYPE'; |
|
137 | 137 | |
138 | 138 | return defined($constName); |
139 | 139 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Add grant information |
61 | 61 | * |
62 | 62 | * @param string $action action type |
63 | - * @param string|array $type value type |
|
63 | + * @param string $type value type |
|
64 | 64 | * @param mixed $value values |
65 | 65 | * @return $this |
66 | 66 | */ |
@@ -550,7 +550,7 @@ |
||
550 | 550 | $componentsFetched = []; |
551 | 551 | array_walk( |
552 | 552 | $componentList, |
553 | - function ($info, $key) use (&$componentsFetched, $type) { |
|
553 | + function($info, $key) use (&$componentsFetched, $type) { |
|
554 | 554 | $componentType = $this->getComponentType($key); |
555 | 555 | if ($componentType === $type) { |
556 | 556 | $componentsFetched[$key] = $info; |