@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace Nip\Records\Tests\Relations; |
| 4 | 4 | |
| 5 | 5 | use Mockery as m; |
| 6 | -use Nip\Container\Container; |
|
| 7 | -use Nip\Database\Connections\Connection; |
|
| 8 | 6 | use Nip\Records\Record; |
| 9 | 7 | use Nip\Records\RecordManager; |
| 10 | 8 | use Nip\Records\Relations\MorphToMany; |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @param Collection $collection |
| 86 | - * @param $manager |
|
| 87 | - * @return Query |
|
| 86 | + * @param RecordManager $manager |
|
| 87 | + * @return \Nip\Database\Query\AbstractQuery |
|
| 88 | 88 | * @throws Exception |
| 89 | 89 | */ |
| 90 | 90 | public function getEagerQueryType(Collection $collection, $manager) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | /** @noinspection PhpMissingParentCallCommonInspection |
| 120 | 120 | * @param Record $record |
| 121 | - * @return array |
|
| 121 | + * @return string |
|
| 122 | 122 | * @throws \Exception |
| 123 | 123 | */ |
| 124 | 124 | protected function getDictionaryKey(Record $record) |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @return mixed |
|
| 127 | + * @return integer |
|
| 128 | 128 | */ |
| 129 | 129 | public function getPages() |
| 130 | 130 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @return float|int |
|
| 155 | + * @return integer |
|
| 156 | 156 | */ |
| 157 | 157 | public function getLimitStart() |
| 158 | 158 | { |
@@ -2,12 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nip\Records\Relations; |
| 4 | 4 | |
| 5 | -use Nip\Database\Query\Select as Query; |
|
| 6 | 5 | use Nip\HelperBroker; |
| 7 | 6 | use Nip_Helper_Arrays as ArraysHelper; |
| 8 | 7 | use Nip\Records\AbstractModels\Record as Record; |
| 9 | 8 | use Nip\Records\Collections\Associated as AssociatedCollection; |
| 10 | -use Nip\Records\Collections\Collection; |
|
| 11 | 9 | use Nip\Records\Collections\Collection as RecordCollection; |
| 12 | 10 | use Nip\Records\Relations\Traits\HasCollectionResults; |
| 13 | 11 | |