Completed
Push — v2 ( 7fc49e...7442ee )
by Joschi
04:33
created
src/Micrometa/Ports/Item/ItemList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
         if (count($types)) {
179 179
             return array_filter(
180 180
                 $this->items,
181
-                function (ItemInterface $item) use ($types) {
181
+                function(ItemInterface $item) use ($types) {
182 182
                     return $item->isOfType(...$types);
183 183
                 }
184 184
             );
Please login to merge, or discard this patch.
src/Micrometa/Infrastructure/Factory/AlternateFactory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@
 block discarded – undo
49 49
     /**
50 50
      * Create alternate resource declaration from parser results
51 51
      *
52
-     * @param array[] $rels Parser results
53 52
      * @return Alternate[] Alternate resource declarations
54 53
      */
55 54
     public static function createFromParserResult(array $alternates)
Please login to merge, or discard this patch.
src/Micrometa/Infrastructure/Factory/MicroformatsFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     protected static function createTypes(array $types)
90 90
     {
91 91
         return array_map(
92
-            function ($type) {
92
+            function($type) {
93 93
                 return (object)['profile' => self::MF2_PROFILE_URI, 'name' => $type];
94 94
             }, $types
95 95
         );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     protected static function createProperty(array $propertyValues)
124 124
     {
125 125
         return array_map(
126
-            function ($propertyValue) {
126
+            function($propertyValue) {
127 127
                 if (is_array($propertyValue)) {
128 128
                     return isset($propertyValue['type']) ? self::createItem($propertyValue) : $propertyValue;
129 129
                 }
Please login to merge, or discard this patch.
src/Micrometa/Domain/Item/PropertyList.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             return;
161 161
         }
162 162
 
163
-        $propertyValues =& $this->offsetGet($iri);
163
+        $propertyValues = & $this->offsetGet($iri);
164 164
         $propertyValues = array_merge($propertyValues, $values);
165 165
     }
166 166
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     {
226 226
         $values = $this->values;
227 227
         return array_map(
228
-            function ($cursor) use ($values) {
228
+            function($cursor) use ($values) {
229 229
                 return $values[$cursor];
230 230
             },
231 231
             $this->nameToCursor
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     /**
185 185
      * Return whether a property exists
186 186
      *
187
-     * @param \stdClass|string $iri IRI
187
+     * @param \stdClass $iri IRI
188 188
      * @return boolean Property exists
189 189
      */
190 190
     public function offsetExists($iri)
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Set a particular property
199 199
      *
200
-     * @param \stdClass|string $iri IRI
200
+     * @param \stdClass $iri IRI
201 201
      * @param array $value Property values
202 202
      */
203 203
     public function offsetSet($iri, $value)
Please login to merge, or discard this patch.