@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace LaravelFlare\Flare; |
| 4 | 4 | |
| 5 | -use Illuminate\Routing\Router; |
|
| 6 | 5 | use LaravelFlare\Flare\Admin\Attributes\BaseAttribute; |
| 7 | 6 | |
| 8 | 7 | class Flare |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | return $this->config[$key]; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - return config('flare.'.$key); |
|
| 104 | + return config('flare.' . $key); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | public function relativeAdminUrl($path = '') |
| 215 | 215 | { |
| 216 | - return rtrim($this->getRelativeAdminUrl().'/'.$path, '/'); |
|
| 216 | + return rtrim($this->getRelativeAdminUrl() . '/' . $path, '/'); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | public function docsUrl($path = '') |
| 253 | 253 | { |
| 254 | - return url('#'.$path); |
|
| 254 | + return url('#' . $path); |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /** |
@@ -350,10 +350,10 @@ discard block |
||
| 350 | 350 | if ($this->attributeTypeExists($field['type'])) { |
| 351 | 351 | $fieldType = $this->resolveAttributeClass($field['type']); |
| 352 | 352 | |
| 353 | - return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []); |
|
| 353 | + return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []); |
|
| 354 | 354 | } |
| 355 | 355 | |
| 356 | - return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []); |
|
| 356 | + return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []); |
|
| 357 | 357 | } |
| 358 | 358 | |
| 359 | 359 | /** |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | */ |
| 366 | 366 | protected function resolveAttributeClass($type) |
| 367 | 367 | { |
| 368 | - $fullClassname = array_key_exists(title_case($type).'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type).'Attribute'] : false; |
|
| 368 | + $fullClassname = array_key_exists(title_case($type) . 'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type) . 'Attribute'] : false; |
|
| 369 | 369 | |
| 370 | 370 | if (!$fullClassname || !class_exists($fullClassname)) { |
| 371 | 371 | return false; |