@@ -311,7 +311,7 @@ |
||
| 311 | 311 | * Get the field value. |
| 312 | 312 | * |
| 313 | 313 | * @param void |
| 314 | - * @return mixed |
|
| 314 | + * @return string |
|
| 315 | 315 | */ |
| 316 | 316 | public function getValue() |
| 317 | 317 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Akibatech\Crud\Exceptions\InvalidModelException; |
| 6 | 6 | use Akibatech\Crud\Exceptions\NoFieldsException; |
| 7 | -use Akibatech\Crud\Fields\Field; |
|
| 8 | 7 | use Akibatech\Crud\Traits\Crudable; |
| 9 | 8 | use Illuminate\Database\Eloquent\Model; |
| 10 | 9 | use Illuminate\Support\Facades\View; |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | if (is_string($crudable)) |
| 48 | 48 | { |
| 49 | 49 | return new CrudEntry(new $crudable); |
| 50 | - } |
|
| 51 | - else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
| 50 | + } else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
| 52 | 51 | { |
| 53 | 52 | return new CrudEntry($crudable); |
| 54 | 53 | } |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | 'prefix' => $this->route_uri_prefix, |
| 253 | 253 | 'as' => $this->route_name_prefix, |
| 254 | 254 | 'middleware' => 'web' |
| 255 | - ], function ($router) use ($routes, $controller) |
|
| 255 | + ], function($router) use ($routes, $controller) |
|
| 256 | 256 | { |
| 257 | 257 | foreach ($routes as $route) |
| 258 | 258 | { |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | */ |
| 295 | 295 | public function setPerPage($per_page = 25) |
| 296 | 296 | { |
| 297 | - $this->per_page = (int)$per_page; |
|
| 297 | + $this->per_page = (int) $per_page; |
|
| 298 | 298 | |
| 299 | 299 | return $this; |
| 300 | 300 | } |