Completed
Push — collection ( 08980f )
by Arnaud
01:58
created
src/Collection/Item.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * Implement ArrayAccess.
70 70
      *
71
-     * @param mixed $offset
71
+     * @param string $offset
72 72
      *
73 73
      * @return null
74 74
      */
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * Implement ArrayAccess.
82 82
      *
83
-     * @param mixed $offset
84
-     * @param mixed $value
83
+     * @param string $offset
84
+     * @param string $value
85 85
      */
86 86
     public function offsetSet($offset, $value)
87 87
     {
Please login to merge, or discard this patch.
src/Collection/Page/Page.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      *
173 173
      * @param string $string
174 174
      *
175
-     * @return string[]|false
175
+     * @return string|false
176 176
      */
177 177
     public static function getPrefix(string $string)
178 178
     {
Please login to merge, or discard this patch.
src/Renderer/Twig/Extension.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param PageCollection $pages
95 95
      * @param string         $section
96 96
      *
97
-     * @return array
97
+     * @return CollectionInterface
98 98
      */
99 99
     public function filterBySection($pages, $section)
100 100
     {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @throws Exception
112 112
      *
113
-     * @return array
113
+     * @return CollectionInterface
114 114
      */
115 115
     public function filterBy($pages, $variable, $value)
116 116
     {
Please login to merge, or discard this patch.
src/Collection/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      */
170 170
     public function usort(\Closure $callback = null): CollectionInterface
171 171
     {
172
-        $callback ? uasort($this->items, $callback) : uasort($this->items, function ($a, $b) {
172
+        $callback ? uasort($this->items, $callback) : uasort($this->items, function($a, $b) {
173 173
             if ($a == $b) {
174 174
                 return 0;
175 175
             }
Please login to merge, or discard this patch.
src/Collection/Taxonomy/Term.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function sortByDate(): self
25 25
     {
26
-        return $this->usort(function ($a, $b) {
26
+        return $this->usort(function($a, $b) {
27 27
             if (!isset($a['date'])) {
28 28
                 return -1;
29 29
             }
Please login to merge, or discard this patch.
src/Collection/Page/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function sortByDate(): self
24 24
     {
25
-        return $this->usort(function ($a, $b) {
25
+        return $this->usort(function($a, $b) {
26 26
             if (!isset($a['date'])) {
27 27
                 return -1;
28 28
             }
Please login to merge, or discard this patch.