Completed
Push — master ( dd12de...33be91 )
by
unknown
03:06
created
src/Domain/Model/Repository/Filter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-     * @param $name
95
+     * @param integer $name
96 96
      */
97 97
     protected function clearCollection($name)
98 98
     {
Please login to merge, or discard this patch.
src/Domain/Model/Repository/Page.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
193 193
     }
194 194
 
195 195
     /**
196
-     * @return FieldsInterface
196
+     * @return null|FieldsInterface
197 197
      */
198 198
     public function getFields()
199 199
     {
Please login to merge, or discard this patch.
src/Domain/Model/Repository/Pageable.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Infrastructure/Model/Repository/InMemory/InMemorySorter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Domain/Model/Repository/Contracts/Identity.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Domain/Model/Repository/Collections/ImmutableTypedCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
example/ColorRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Infrastructure/Model/Repository/InMemory/InMemoryFilter.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.