Completed
Push — master ( f4b721...596cf5 )
by Kacper
02:42
created
Xml/XmlParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@
 block discarded – undo
126 126
         return [$name, $namespace];
127 127
     }
128 128
 
129
+    /**
130
+     * @param string|null $prefix
131
+     */
129 132
     private function _lookup($prefix, $namespaces)
130 133
     {
131 134
         if ($prefix === 'xmlns') {
Please login to merge, or discard this patch.
Xml/XmlElement.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * Retrieves array of matching elements
221 221
      *
222 222
      * @param string $name  Requested element tag name
223
-     * @param null   $uri   Requested element namespace
223
+     * @param null|string   $uri   Requested element namespace
224 224
      *
225 225
      * @return XmlElement[] Found Elements
226 226
      */
@@ -248,6 +248,9 @@  discard block
 block discarded – undo
248 248
         return $this->elements($name, $uri)[$index] ?? false;
249 249
     }
250 250
 
251
+    /**
252
+     * @param \Closure $predicate
253
+     */
251 254
     public function all($predicate) {
252 255
         $predicate = filter\predicate($predicate);
253 256
         return array_filter($this->_children, $predicate);
Please login to merge, or discard this patch.