@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | if (($methodBreaker = strpos($field, '.')) !== false) { |
| 243 | 243 | $method = substr($field, 0, $methodBreaker); |
| 244 | 244 | if (method_exists($this->model, $method)) { |
| 245 | - if (method_exists($this->model->$method(), $submethod = str_replace($method.'.', '', $field))) { |
|
| 245 | + if (method_exists($this->model->$method(), $submethod = str_replace($method . '.', '', $field))) { |
|
| 246 | 246 | $this->model->$method()->$submethod(); |
| 247 | 247 | |
| 248 | 248 | $columns[$field] = $fieldTitle; |
@@ -318,13 +318,13 @@ discard block |
||
| 318 | 318 | $formattedKey = str_replace('.', '_', $key); |
| 319 | 319 | |
| 320 | 320 | if ($this->hasGetAccessor($formattedKey)) { |
| 321 | - $method = 'get'.Str::studly($formattedKey).'Attribute'; |
|
| 321 | + $method = 'get' . Str::studly($formattedKey) . 'Attribute'; |
|
| 322 | 322 | |
| 323 | 323 | return $this->{$method}($model); |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | if ($this->hasGetAccessor($key)) { |
| 327 | - $method = 'get'.Str::studly($key).'Attribute'; |
|
| 327 | + $method = 'get' . Str::studly($key) . 'Attribute'; |
|
| 328 | 328 | |
| 329 | 329 | return $this->{$method}($model); |
| 330 | 330 | } |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | */ |
| 346 | 346 | public function hasGetAccessor($key) |
| 347 | 347 | { |
| 348 | - return method_exists($this, 'get'.Str::studly($key).'Attribute'); |
|
| 348 | + return method_exists($this, 'get' . Str::studly($key) . 'Attribute'); |
|
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | /** |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | if (($methodBreaker = strpos($key, '.')) !== false) { |
| 391 | 391 | $method = substr($key, 0, $methodBreaker); |
| 392 | 392 | if (method_exists($model, $method)) { |
| 393 | - if (method_exists($model->$method, $submethod = str_replace($method.'.', '', $key))) { |
|
| 393 | + if (method_exists($model->$method, $submethod = str_replace($method . '.', '', $key))) { |
|
| 394 | 394 | return $model->$method->$submethod(); |
| 395 | 395 | } |
| 396 | 396 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | public function setAttribute($key, $value) |
| 415 | 415 | { |
| 416 | 416 | if ($this->hasSetMutator($key)) { |
| 417 | - $method = 'set'.Str::studly($key).'Attribute'; |
|
| 417 | + $method = 'set' . Str::studly($key) . 'Attribute'; |
|
| 418 | 418 | |
| 419 | 419 | return $this->{$method}($value); |
| 420 | 420 | } |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | */ |
| 432 | 432 | public function hasSetMutator($key) |
| 433 | 433 | { |
| 434 | - return method_exists($this, 'set'.Str::studly($key).'Attribute'); |
|
| 434 | + return method_exists($this, 'set' . Str::studly($key) . 'Attribute'); |
|
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | /** |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | */ |
| 444 | 444 | public function hasGetMutator($key) |
| 445 | 445 | { |
| 446 | - return method_exists($this, 'get'.Str::studly($key).'Attribute'); |
|
| 446 | + return method_exists($this, 'get' . Str::studly($key) . 'Attribute'); |
|
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | /** |