@@ -270,8 +270,7 @@ |
||
270 | 270 | public function connection($type) |
271 | 271 | { |
272 | 272 | $connection = ($this->connections[$type] === null) ? |
273 | - $this->coupler->connect($this->{$type}) : |
|
274 | - $this->connections[$type]; |
|
273 | + $this->coupler->connect($this->{$type}) : $this->connections[$type]; |
|
275 | 274 | $connection->setFetchMode($this->fetchMode); |
276 | 275 | return $connection; |
277 | 276 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | public function getMobileResolver() |
95 | 95 | { |
96 | - return $this->mobileResolver ?: function () { |
|
96 | + return $this->mobileResolver ?: function() { |
|
97 | 97 | }; |
98 | 98 | } |
99 | 99 |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | |
199 | 199 | return array_filter( |
200 | 200 | $plugins, |
201 | - function ($entity) use ($status) { |
|
201 | + function($entity) use ($status) { |
|
202 | 202 | |
203 | 203 | /** @var PluginEntity $entity */ |
204 | 204 | return $entity->getStatus() === $status; |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | |
222 | 222 | $plugins = array_filter( |
223 | 223 | $plugins, |
224 | - function ($entity) use ($searchWord) { |
|
224 | + function($entity) use ($searchWord) { |
|
225 | 225 | |
226 | 226 | /** @var PluginEntity $entity */ |
227 | 227 | $subject = implode( |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | $plugins = array_filter( |
266 | 266 | $plugins, |
267 | - function ($entity) use ($component) { |
|
267 | + function($entity) use ($component) { |
|
268 | 268 | |
269 | 269 | /** @var PluginEntity $entity */ |
270 | 270 | $componentList = $entity->getComponentList($component); |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | public function toArray() |
328 | 328 | { |
329 | 329 | return array_map( |
330 | - function ($value) { |
|
330 | + function($value) { |
|
331 | 331 | /** @var PluginEntity $value */ |
332 | 332 | return $value->toArray(); |
333 | 333 | }, |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function before($befores) |
52 | 52 | { |
53 | 53 | $befores = array_map( |
54 | - function ($before) { |
|
54 | + function($before) { |
|
55 | 55 | return $this->resolveKey($before); |
56 | 56 | }, |
57 | 57 | (array) $befores |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public function after($afters) |
71 | 71 | { |
72 | 72 | $afters = array_map( |
73 | - function ($after) { |
|
73 | + function($after) { |
|
74 | 74 | return $this->resolveKey($after); |
75 | 75 | }, |
76 | 76 | (array) $afters |
@@ -85,7 +85,7 @@ |
||
85 | 85 | { |
86 | 86 | $row = $this->conn->table($this->table)->orderBy('createdAt', 'desc')->first(); |
87 | 87 | |
88 | - return $row ? (array)$row : null; |
|
88 | + return $row ? (array) $row : null; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | protected static function castInt($v) |
81 | 81 | { |
82 | - return !preg_match('/[^0-9]/', $v) ? (int)$v : null; |
|
82 | + return !preg_match('/[^0-9]/', $v) ? (int) $v : null; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -90,6 +90,6 @@ discard block |
||
90 | 90 | */ |
91 | 91 | protected static function castFloat($v) |
92 | 92 | { |
93 | - return !preg_match('/[^0-9\.]/', $v) ? (float)$v : null; |
|
93 | + return !preg_match('/[^0-9\.]/', $v) ? (float) $v : null; |
|
94 | 94 | } |
95 | 95 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $row = $this->conn->table($this->table)->where('id', $id)->first(); |
73 | 73 | |
74 | 74 | if ($row !== null) { |
75 | - return $this->createItem((array)$row); |
|
75 | + return $this->createItem((array) $row); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | return null; |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | $items = []; |
96 | 96 | foreach ($rows as $row) { |
97 | - $items[] = $this->createItem((array)$row); |
|
97 | + $items[] = $this->createItem((array) $row); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | return $items; |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function putLangData($namespace, LangData $langData) |
72 | 72 | { |
73 | - $langData->each(function ($item, $locale, $value) use ($namespace) { |
|
73 | + $langData->each(function($item, $locale, $value) use ($namespace) { |
|
74 | 74 | $this->putLine($namespace, $item, $locale, $value); |
75 | 75 | }); |
76 | 76 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @link http://www.xpressengine.com |
13 | 13 | */ |
14 | 14 | |
15 | -if (! function_exists('xe_trans')) { |
|
15 | +if (!function_exists('xe_trans')) { |
|
16 | 16 | /** |
17 | 17 | * @param null $id 다국어 키 |
18 | 18 | * @param array $parameters 파라매터 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | -if (! function_exists('xe_trans_choice')) { |
|
33 | +if (!function_exists('xe_trans_choice')) { |
|
34 | 34 | /** |
35 | 35 | * @param string $id 다국어 키 |
36 | 36 | * @param int $number 숫자 |