@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function getCastCallable() |
| 59 | 59 | { |
| 60 | - $values = explode(':', $this->cast, 2); |
|
| 61 | - return isset($values[1]) |
|
| 60 | + $values = explode(':', $this->cast, 2); |
|
| 61 | + return isset($values[1]) |
|
| 62 | 62 | ? [$values[0], $values[1]] |
| 63 | 63 | : [static::class, $values[0]]; |
| 64 | 64 | } |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function castValue(SolicitudeValue $model, $attribute) |
| 73 | 73 | { |
| 74 | - $callable = $this->getCastCallable(); |
|
| 75 | - $model->$attribute = $callable($model->$attribute, $attribute); |
|
| 74 | + $callable = $this->getCastCallable(); |
|
| 75 | + $model->$attribute = $callable($model->$attribute, $attribute); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | ], |
| 17 | 17 | 'components' => [ |
| 18 | 18 | 'assetManager' => [ |
| 19 | - 'basePath' => dirname(__DIR__) . '/assets', |
|
| 19 | + 'basePath' => dirname(__DIR__) . '/assets', |
|
| 20 | 20 | ], |
| 21 | 21 | ] |
| 22 | 22 | ] |