@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function config($key) |
| 54 | 54 | { |
| 55 | 55 | if (array_key_exists($key, $this->configurationKeys)) { |
| 56 | - return config('flare.'.$key, $this->configurationKeys[$key]); |
|
| 56 | + return config('flare.' . $key, $this->configurationKeys[$key]); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | return config($key); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | public function relativeAdminUrl($path = '') |
| 105 | 105 | { |
| 106 | - return rtrim(\Flare::config('admin_url').'/'.$path, '/'); |
|
| 106 | + return rtrim(\Flare::config('admin_url') . '/' . $path, '/'); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function docsUrl($path = '') |
| 118 | 118 | { |
| 119 | - return url('#'.$path); |
|
| 119 | + return url('#' . $path); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -171,10 +171,10 @@ discard block |
||
| 171 | 171 | if ($this->attributeTypeExists($field['type'])) { |
| 172 | 172 | $fieldType = $this->resolveAttributeClass($field['type']); |
| 173 | 173 | |
| 174 | - return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []); |
|
| 174 | + return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []); |
|
| 177 | + return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []); |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | protected function resolveAttributeClass($type) |
| 188 | 188 | { |
| 189 | - $fullClassname = array_key_exists(title_case($type).'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type).'Attribute'] : false; |
|
| 189 | + $fullClassname = array_key_exists(title_case($type) . 'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type) . 'Attribute'] : false; |
|
| 190 | 190 | |
| 191 | 191 | if (!$fullClassname || !class_exists($fullClassname)) { |
| 192 | 192 | return false; |