@@ -93,9 +93,9 @@ |
||
93 | 93 | protected function adminController($route = null) |
94 | 94 | { |
95 | 95 | if ($route) { |
96 | - return $this->namespace.'\\'.$this->compatibilityVersion.'\AdminController@'.$route; |
|
96 | + return $this->namespace . '\\' . $this->compatibilityVersion . '\AdminController@' . $route; |
|
97 | 97 | } |
98 | 98 | |
99 | - return $this->namespace.'\\'.$this->compatibilityVersion.'\AdminController'; |
|
99 | + return $this->namespace . '\\' . $this->compatibilityVersion . '\AdminController'; |
|
100 | 100 | } |
101 | 101 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | private function getOptions($name) |
154 | 154 | { |
155 | - $method = 'get'.Str::studly($name).'Options'; |
|
155 | + $method = 'get' . Str::studly($name) . 'Options'; |
|
156 | 156 | |
157 | 157 | return $this->modelManager->{$method}(); |
158 | 158 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function hasOptionsMethod($key) |
168 | 168 | { |
169 | - return method_exists($this->modelManager, 'get'.Str::studly($key).'Options'); |
|
169 | + return method_exists($this->modelManager, 'get' . Str::studly($key) . 'Options'); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -27,18 +27,18 @@ |
||
27 | 27 | |
28 | 28 | if (!empty($_POST)) |
29 | 29 | { |
30 | - foreach ( $_POST as $key => $value ) |
|
30 | + foreach ($_POST as $key => $value) |
|
31 | 31 | { |
32 | - if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) |
|
32 | + if ((!is_string($value) && !is_numeric($value)) || !is_string($key)) |
|
33 | 33 | continue; |
34 | 34 | |
35 | - if ( get_magic_quotes_gpc() ) |
|
36 | - $value = htmlspecialchars( stripslashes((string)$value) ); |
|
35 | + if (get_magic_quotes_gpc()) |
|
36 | + $value = htmlspecialchars(stripslashes((string) $value)); |
|
37 | 37 | else |
38 | - $value = htmlspecialchars( (string)$value ); |
|
38 | + $value = htmlspecialchars((string) $value); |
|
39 | 39 | ?> |
40 | 40 | <tr> |
41 | - <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th> |
|
41 | + <th style="vertical-align: top"><?php echo htmlspecialchars((string) $key); ?></th> |
|
42 | 42 | <td><pre class="samples"><?php echo $value; ?></pre></td> |
43 | 43 | </tr> |
44 | 44 | <?php |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | return $this->view; |
213 | 213 | } |
214 | 214 | |
215 | - return 'flare::'.$this->view; |
|
215 | + return 'flare::' . $this->view; |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | public function getTitle() |
294 | 294 | { |
295 | 295 | if (!isset($this->title) || !$this->title) { |
296 | - return Str::title(str_replace('_', ' ', snake_case(preg_replace('/'.static::CLASS_SUFFIX.'$/', '', static::shortName())))); |
|
296 | + return Str::title(str_replace('_', ' ', snake_case(preg_replace('/' . static::CLASS_SUFFIX . '$/', '', static::shortName())))); |
|
297 | 297 | } |
298 | 298 | |
299 | 299 | return $this->title; |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | */ |
369 | 369 | public function relativeUrl($path = '') |
370 | 370 | { |
371 | - return \Flare::relativeAdminUrl($this->urlPrefix().($path ? '/'.$path : '')); |
|
371 | + return \Flare::relativeAdminUrl($this->urlPrefix() . ($path ? '/' . $path : '')); |
|
372 | 372 | } |
373 | 373 | |
374 | 374 | /** |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | */ |
393 | 393 | public function relativeCurrentUrl($path) |
394 | 394 | { |
395 | - return \Route::current() ? \Route::current()->getPrefix().'/'.$path : null; |
|
395 | + return \Route::current() ? \Route::current()->getPrefix() . '/' . $path : null; |
|
396 | 396 | } |
397 | 397 | |
398 | 398 | /* |