@@ -143,7 +143,7 @@ |
||
| 143 | 143 | /** |
| 144 | 144 | * Returns the path to a provided file within the Flare package. |
| 145 | 145 | * |
| 146 | - * @param boolean $fiepath |
|
| 146 | + * @param boolean $filepath |
|
| 147 | 147 | * |
| 148 | 148 | * @return string |
| 149 | 149 | */ |
@@ -149,6 +149,6 @@ |
||
| 149 | 149 | */ |
| 150 | 150 | private function basePath($filepath = false) |
| 151 | 151 | { |
| 152 | - return __DIR__.'/../' . $filepath; |
|
| 152 | + return __DIR__ . '/../' . $filepath; |
|
| 153 | 153 | } |
| 154 | 154 | } |
@@ -76,10 +76,10 @@ discard block |
||
| 76 | 76 | public function config($key) |
| 77 | 77 | { |
| 78 | 78 | if (array_key_exists($key, $this->configurationKeys)) { |
| 79 | - return config('flare.config.'.$key, $this->configurationKeys[$key]); |
|
| 79 | + return config('flare.config.' . $key, $this->configurationKeys[$key]); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - return config('flare.'.$key); |
|
| 82 | + return config('flare.' . $key); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | public function relativeAdminUrl($path = '') |
| 173 | 173 | { |
| 174 | - return rtrim($this->getRelativeAdminUrl().'/'.$path, '/'); |
|
| 174 | + return rtrim($this->getRelativeAdminUrl() . '/' . $path, '/'); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function docsUrl($path = '') |
| 211 | 211 | { |
| 212 | - return url('#'.$path); |
|
| 212 | + return url('#' . $path); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
@@ -264,10 +264,10 @@ discard block |
||
| 264 | 264 | if ($this->attributeTypeExists($field['type'])) { |
| 265 | 265 | $fieldType = $this->resolveAttributeClass($field['type']); |
| 266 | 266 | |
| 267 | - return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []); |
|
| 267 | + return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []); |
|
| 268 | 268 | } |
| 269 | 269 | |
| 270 | - return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []); |
|
| 270 | + return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []); |
|
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /** |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | */ |
| 280 | 280 | protected function resolveAttributeClass($type) |
| 281 | 281 | { |
| 282 | - $fullClassname = array_key_exists(title_case($type).'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type).'Attribute'] : false; |
|
| 282 | + $fullClassname = array_key_exists(title_case($type) . 'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type) . 'Attribute'] : false; |
|
| 283 | 283 | |
| 284 | 284 | if (!$fullClassname || !class_exists($fullClassname)) { |
| 285 | 285 | return false; |