@@ -314,7 +314,6 @@ |
||
| 314 | 314 | /** |
| 315 | 315 | * Determine if the Model Admin is sortable in it's list view. |
| 316 | 316 | * |
| 317 | - * @param string $key |
|
| 318 | 317 | * |
| 319 | 318 | * @return bool |
| 320 | 319 | */ |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | if (($methodBreaker = strpos($field, '.')) !== false) { |
| 150 | 150 | $method = substr($field, 0, $methodBreaker); |
| 151 | 151 | if (method_exists($this->model, $method)) { |
| 152 | - if (method_exists($this->model->$method(), $submethod = str_replace($method.'.', '', $field))) { |
|
| 152 | + if (method_exists($this->model->$method(), $submethod = str_replace($method . '.', '', $field))) { |
|
| 153 | 153 | $this->model->$method()->$submethod(); |
| 154 | 154 | |
| 155 | 155 | $columns[$field] = $fieldTitle; |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | if ($this->hasGetAccessor($key)) { |
| 192 | - $method = 'get'.Str::studly($key).'Attribute'; |
|
| 192 | + $method = 'get' . Str::studly($key) . 'Attribute'; |
|
| 193 | 193 | |
| 194 | 194 | return $this->{$method}($model); |
| 195 | 195 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | */ |
| 211 | 211 | public function hasGetAccessor($key) |
| 212 | 212 | { |
| 213 | - return method_exists($this, 'get'.Str::studly($key).'Attribute'); |
|
| 213 | + return method_exists($this, 'get' . Str::studly($key) . 'Attribute'); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | if (($methodBreaker = strpos($key, '.')) !== false) { |
| 256 | 256 | $method = substr($key, 0, $methodBreaker); |
| 257 | 257 | if (method_exists($model, $method)) { |
| 258 | - if (method_exists($model->$method, $submethod = str_replace($method.'.', '', $key))) { |
|
| 258 | + if (method_exists($model->$method, $submethod = str_replace($method . '.', '', $key))) { |
|
| 259 | 259 | return $model->$method->$submethod(); |
| 260 | 260 | } |
| 261 | 261 | |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | public function setAttribute($key, $value) |
| 280 | 280 | { |
| 281 | 281 | if ($this->hasSetMutator($key)) { |
| 282 | - $method = 'set'.Str::studly($key).'Attribute'; |
|
| 282 | + $method = 'set' . Str::studly($key) . 'Attribute'; |
|
| 283 | 283 | |
| 284 | 284 | return $this->{$method}($value); |
| 285 | 285 | } |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | */ |
| 297 | 297 | public function hasSetMutator($key) |
| 298 | 298 | { |
| 299 | - return method_exists($this, 'set'.Str::studly($key).'Attribute'); |
|
| 299 | + return method_exists($this, 'set' . Str::studly($key) . 'Attribute'); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | */ |
| 309 | 309 | public function hasGetMutator($key) |
| 310 | 310 | { |
| 311 | - return method_exists($this, 'get'.Str::studly($key).'Attribute'); |
|
| 311 | + return method_exists($this, 'get' . Str::studly($key) . 'Attribute'); |
|
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | /** |