@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | } |
| 417 | 417 | |
| 418 | 418 | /** |
| 419 | - * @param null $model |
|
| 419 | + * @param string $model |
|
| 420 | 420 | */ |
| 421 | 421 | public function setModel($model) |
| 422 | 422 | { |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | } |
| 677 | 677 | |
| 678 | 678 | /** |
| 679 | - * @param $fk |
|
| 679 | + * @param string $fk |
|
| 680 | 680 | */ |
| 681 | 681 | public function setPrimaryFK($fk) |
| 682 | 682 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | 121 | * @param Record $record |
| 122 | - * @param null $index |
|
| 122 | + * @param string|null $index |
|
| 123 | 123 | * @return bool|mixed|null |
| 124 | 124 | */ |
| 125 | 125 | public function getRecordKey(Record $record, $index = null) |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | - * @param $key |
|
| 148 | + * @param string $key |
|
| 149 | 149 | * @return mixed |
| 150 | 150 | */ |
| 151 | 151 | public function setIndexKey($key) |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * @param mixed $type |
|
| 104 | + * @param string $type |
|
| 105 | 105 | * @return AbstractFilter|AbstractColumnFilter ; |
| 106 | 106 | */ |
| 107 | 107 | public function newFilter($type) |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | protected $filterManager = null; |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param Request|array $request |
|
| 18 | + * @param Request $request |
|
| 19 | 19 | * @return mixed |
| 20 | 20 | */ |
| 21 | 21 | public function requestFilters($request) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nip\Records\Locator\ModelLocator\Traits; |
| 4 | 4 | |
| 5 | -use Nip\Records\Locator\Exceptions\InvalidModelException; |
|
| 6 | 5 | use Nip\Records\RecordManager; |
| 7 | 6 | |
| 8 | 7 | /** |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | protected $command; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param Command $methodCall |
|
| 21 | 20 | * @return Command |
| 22 | 21 | */ |
| 23 | 22 | public function __invoke(Command $command): Command |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nip\Records\Locator\Resolver\Pipeline\Stages; |
| 4 | 4 | |
| 5 | -use Nip\Records\AbstractModels\RecordManager; |
|
| 6 | - |
|
| 7 | 5 | /** |
| 8 | 6 | * Class NamespaceSearch |
| 9 | 7 | * @package Nip\Records\Locator\Resolver\Pipeline\Stages |
@@ -50,8 +50,8 @@ |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @param $alias |
|
| 54 | - * @return array |
|
| 53 | + * @param string $alias |
|
| 54 | + * @return string[] |
|
| 55 | 55 | */ |
| 56 | 56 | public function buildAliasVariations($alias) |
| 57 | 57 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Nip\Database\Query\Select as Query; |
| 8 | 8 | use Nip\HelperBroker; |
| 9 | 9 | use Exception; |
| 10 | -use Nip\Records\Collections\Collection; |
|
| 11 | 10 | use Nip\Records\Collections\Collection as RecordCollection; |
| 12 | 11 | use Nip\Records\Locator\Exceptions\InvalidModelException; |
| 13 | 12 | use Nip\Records\Locator\ModelLocator; |
@@ -218,7 +218,7 @@ |
||
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | - * @param Record|HasRelationsRecordTrait $item |
|
| 221 | + * @param Record $item |
|
| 222 | 222 | * @return $this |
| 223 | 223 | */ |
| 224 | 224 | public function setItem(Record $item) |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @param null $morphTypeField |
|
| 65 | + * @param string $morphTypeField |
|
| 66 | 66 | * @return void |
| 67 | 67 | */ |
| 68 | 68 | public function setMorphTypeField($morphTypeField) |