@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use App; |
4 | 4 | use Illuminate\Support\Str; |
5 | -use Mascame\Arrayer\Builder; |
|
6 | 5 | use Redirect; |
7 | 6 | use View; |
8 | 7 |
@@ -189,7 +189,7 @@ |
||
189 | 189 | |
190 | 190 | /** |
191 | 191 | * @param $model |
192 | - * @return bool |
|
192 | + * @return null|boolean |
|
193 | 193 | */ |
194 | 194 | protected function isCurrent($modelName) |
195 | 195 | { |
@@ -1,10 +1,8 @@ |
||
1 | 1 | <?php namespace Mascame\Artificer\Model; |
2 | 2 | |
3 | -use Illuminate\Contracts\Database\ModelIdentifier; |
|
4 | 3 | use View; |
5 | 4 | use Route; |
6 | 5 | use \Illuminate\Support\Str as Str; |
7 | -use Mascame\Artificer\Options\AdminOption; |
|
8 | 6 | |
9 | 7 | // Todo: get column type http://stackoverflow.com/questions/18562684/how-to-get-database-field-type-in-laravel |
10 | 8 | class Model |
@@ -26,8 +26,7 @@ |
||
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Field constructor. |
29 | - * @param FieldInterface|TypeInterface $field |
|
30 | - * @param null $relation |
|
29 | + * @param FieldInterface $field |
|
31 | 30 | */ |
32 | 31 | public function __construct(FieldInterface $field) |
33 | 32 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @param null $fileToCheck |
19 | - * @return mixed |
|
19 | + * @return boolean |
|
20 | 20 | */ |
21 | 21 | protected function isPublished($fileToCheck = null) { |
22 | 22 | if (! $fileToCheck) $fileToCheck = config_path($this->name); |