@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $filename = "{$basename}-{$xSize}.png"; |
95 | 95 | |
96 | 96 | $url = $this->Url->assetUrl( |
97 | - $this->theme . '.' . Configure::read('App.imageBaseUrl'), |
|
97 | + $this->theme.'.'.Configure::read('App.imageBaseUrl'), |
|
98 | 98 | ['fullBase' => true] |
99 | 99 | ); |
100 | 100 | $url = "{$url}{$filename}"; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | { |
147 | 147 | $html = "<i class=\"saito-icon fa fa-{$icon}\"></i>"; |
148 | 148 | if (!empty($text)) { |
149 | - $html .= ' <span class="saito-icon-text">' . $text . '</span>'; |
|
149 | + $html .= ' <span class="saito-icon-text">'.$text.'</span>'; |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | return $html; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | public function dropdownMenuButton(array $menuItems, array $options = []) |
163 | 163 | { |
164 | 164 | $options += ['class' => 'btn btn-primary']; |
165 | - $options['class'] = $options['class'] . ' dropdown-toggle'; |
|
165 | + $options['class'] = $options['class'].' dropdown-toggle'; |
|
166 | 166 | $menu = []; |
167 | 167 | foreach ($menuItems as $menuItem) { |
168 | 168 | if ($menuItem === 'divider') { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $contentArray += ['first' => '', 'middle' => '', 'last' => '']; |
256 | 256 | $out = ''; |
257 | 257 | foreach (['first', 'middle', 'last'] as $key) { |
258 | - $out .= '<div class="' . $key . '">'; |
|
258 | + $out .= '<div class="'.$key.'">'; |
|
259 | 259 | $out .= $options['escape'] ? h($contentArray[$key]) : $contentArray[$key]; |
260 | 260 | $out .= '</div>'; |
261 | 261 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace App\Controller\Component; |
6 | 6 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $ctrler = $controller->request->getParam('controller'); |
47 | 47 | $action = $controller->request->getParam('action'); |
48 | - $key = lcfirst($ctrler) . '/' . $action; |
|
48 | + $key = lcfirst($ctrler).'/'.$action; |
|
49 | 49 | $page = __d('page_titles', $key); |
50 | 50 | if ($key === $page) { |
51 | 51 | $page = ''; |
@@ -22,11 +22,11 @@ |
||
22 | 22 | if (!is_numeric($value)) { |
23 | 23 | return false; |
24 | 24 | } |
25 | - $value = (int)$value; |
|
25 | + $value = (int) $value; |
|
26 | 26 | |
27 | - $key = $table . $value; |
|
27 | + $key = $table.$value; |
|
28 | 28 | |
29 | - return static::rememberStatic($key, function () use ($value, $table) { |
|
29 | + return static::rememberStatic($key, function() use ($value, $table) { |
|
30 | 30 | $Table = TableRegistry::get($table); |
31 | 31 | |
32 | 32 | return $Table->exists(['id' => $value]); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | return call_user_func_array([$this->_Posting, $method], $args); |
25 | 25 | } |
26 | 26 | throw new \RuntimeException( |
27 | - 'Undefined method ' . get_class($this->object) . '::' . $method |
|
27 | + 'Undefined method '.get_class($this->object).'::'.$method |
|
28 | 28 | ); |
29 | 29 | } |
30 | 30 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function isLocked() |
14 | 14 | { |
15 | - return (bool)$this->get('locked'); |
|
15 | + return (bool) $this->get('locked'); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function isPinned() |
32 | 32 | { |
33 | - return (bool)$this->get('fixed'); |
|
33 | + return (bool) $this->get('fixed'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function get(): array |
22 | 22 | { |
23 | - return $this->remember('userlist', function () { |
|
23 | + return $this->remember('userlist', function() { |
|
24 | 24 | /** @var UsersTable $users */ |
25 | 25 | $users = TableRegistry::get('Users'); |
26 | 26 |
@@ -112,11 +112,11 @@ discard block |
||
112 | 112 | */ |
113 | 113 | protected function _getRoles($role) |
114 | 114 | { |
115 | - $key = 'saito.core.permission.' . $role; |
|
115 | + $key = 'saito.core.permission.'.$role; |
|
116 | 116 | |
117 | 117 | return $this->rememberStatic( |
118 | 118 | $key, |
119 | - function () use ($role) { |
|
119 | + function() use ($role) { |
|
120 | 120 | if (!isset($this->groups[$role])) { |
121 | 121 | return false; |
122 | 122 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | Stopwatch::start('Permission::__construct()'); |
147 | 147 | $this->resources = Cache::remember( |
148 | 148 | 'saito.core.permission.resources', |
149 | - function () { |
|
149 | + function() { |
|
150 | 150 | $this->_bootstrapCategories(); |
151 | 151 | |
152 | 152 | return $this->resources; |