Completed
Push — v2 ( a3e6f8...094005 )
by Joschi
07:34
created
src/Micrometa/Domain/Item/Item.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
     /**
134 134
      * Validate the item properties
135 135
      *
136
-     * @param array $properties Item properties
136
+     * @param \stdClass[] $properties Item properties
137 137
      * @return PropertyListInterface Validated item properties
138 138
      * @throws InvalidArgumentException If the property name is empty
139 139
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,8 +200,7 @@
 block discarded – undo
200 200
     {
201 201
         $iri = IriFactory::create(
202 202
             (($profile === null) || is_object($name)) ?
203
-                $name :
204
-                (object)[
203
+                $name : (object)[
205 204
                     'profile' => $profile,
206 205
                     'name' => $name
207 206
                 ]
Please login to merge, or discard this patch.
src/Micrometa/Domain/Item/PropertyList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * Return whether a property exists
169 169
      *
170
-     * @param \stdClass|Iri|string $iri IRI
170
+     * @param Iri $iri IRI
171 171
      * @return boolean Property exists
172 172
      */
173 173
     public function offsetExists($iri)
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     /**
237 237
      * Set a particular property
238 238
      *
239
-     * @param \stdClass|Iri|string $iri IRI
239
+     * @param Iri $iri IRI
240 240
      * @param array $value Property values
241 241
      */
242 242
     public function offsetSet($iri, $value)
Please login to merge, or discard this patch.
src/Micrometa/Application/Item/PropertyList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             $profiledName = strval($iri);
107 107
             $cursor = $this->nameToCursor[$profiledName];
108 108
             $propertyList[$profiledName] = array_map(
109
-                function (ExportableInterface $value) {
109
+                function(ExportableInterface $value) {
110 110
                     return $value->export();
111 111
                 }, $this->values[$cursor]
112 112
             );
Please login to merge, or discard this patch.