@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @param $name |
|
53 | + * @param integer $name |
|
54 | 54 | * |
55 | 55 | * @return BaseFilterInterface |
56 | 56 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
95 | - * @param $name |
|
95 | + * @param integer $name |
|
96 | 96 | */ |
97 | 97 | protected function clearCollection($name) |
98 | 98 | { |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | * Page constructor. |
54 | 54 | * |
55 | 55 | * @param array $elements |
56 | - * @param $totalElements |
|
57 | - * @param $pageNumber |
|
58 | - * @param $totalPages |
|
56 | + * @param integer $totalElements |
|
57 | + * @param integer $pageNumber |
|
58 | + * @param integer $totalPages |
|
59 | 59 | * @param SortInterface $sort |
60 | 60 | * @param FilterInterface $filter |
61 | 61 | * @param FieldsInterface $fields |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
196 | - * @return FieldsInterface |
|
196 | + * @return null|FieldsInterface |
|
197 | 197 | */ |
198 | 198 | public function getFields() |
199 | 199 | { |
@@ -42,8 +42,8 @@ |
||
42 | 42 | /** |
43 | 43 | * Pageable constructor. |
44 | 44 | * |
45 | - * @param $pageNumber |
|
46 | - * @param $pageSize |
|
45 | + * @param integer $pageNumber |
|
46 | + * @param integer $pageSize |
|
47 | 47 | * @param SortInterface|null $sort |
48 | 48 | * @param FilterInterface|null $filter |
49 | 49 | * @param FieldsInterface|null $fields |
@@ -33,14 +33,14 @@ |
||
33 | 33 | /** @var Order $sortDirection */ |
34 | 34 | foreach ($sortOrder as $propertyName => $sortDirection) { |
35 | 35 | if ($sortDirection->isAscending()) { |
36 | - self::stableUasort($results, function ($a, $b) use ($propertyName) { |
|
36 | + self::stableUasort($results, function($a, $b) use ($propertyName) { |
|
37 | 37 | $value1 = (string) self::getValue($a, $propertyName); |
38 | 38 | $value2 = (string) self::getValue($b, $propertyName); |
39 | 39 | |
40 | 40 | return ((int) (strcmp($value1, $value2) >= 0)); |
41 | 41 | }); |
42 | 42 | } else { |
43 | - self::stableUasort($results, function ($a, $b) use ($propertyName) { |
|
43 | + self::stableUasort($results, function($a, $b) use ($propertyName) { |
|
44 | 44 | $value1 = (string) self::getValue($a, $propertyName); |
45 | 45 | $value2 = (string) self::getValue($b, $propertyName); |
46 | 46 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Author: Nil Portugués Calderó <[email protected]> |
|
4 | - * Date: 18/01/16 |
|
5 | - * Time: 23:12 |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Author: Nil Portugués Calderó <[email protected]> |
|
4 | + * Date: 18/01/16 |
|
5 | + * Time: 23:12 |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace NilPortugues\Foundation\Domain\Model\Repository\Contracts; |
12 | 12 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | protected function calculateIndexKey() |
43 | 43 | { |
44 | - $callable = function ($value) { |
|
44 | + $callable = function($value) { |
|
45 | 45 | return null !== $value; |
46 | 46 | }; |
47 | 47 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | * |
107 | 107 | * @param Pageable $pageable |
108 | 108 | * |
109 | - * @return Page |
|
109 | + * @return Color[] |
|
110 | 110 | */ |
111 | 111 | public function findAll(Pageable $pageable) |
112 | 112 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | |
27 | 27 | /** |
28 | - * @param array $results |
|
28 | + * @param \NilPortugues\Foundation\Domain\Model\Repository\Contracts\Identity[] $results |
|
29 | 29 | * @param Filter $filter |
30 | 30 | * @return array |
31 | 31 | */ |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | namespace NilPortugues\Foundation\Infrastructure\Model\Repository\InMemory; |
12 | 12 | |
13 | -use NilPortugues\Foundation\Domain\Model\Repository\Contracts\BaseFilter; |
|
14 | 13 | use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Filter; |
15 | 14 | |
16 | 15 | /** |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Author: Nil Portugués Calderó <[email protected]> |
|
4 | - * Date: 20/01/16 |
|
5 | - * Time: 23:55 |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Author: Nil Portugués Calderó <[email protected]> |
|
4 | + * Date: 20/01/16 |
|
5 | + * Time: 23:55 |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace NilPortugues\Foundation\Infrastructure\Model\Repository\InMemory; |
12 | 12 |