Completed
Push — master ( 596cf5...e454e2 )
by Kacper
04:16
created
Xml/XmlElement.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      * Adds namespace to element, and associates it with prefix.
317 317
      *
318 318
      * @param string           $uri    Namespace URI
319
-     * @param string|bool|null $prefix Prefix which will be used for namespace, false for using element's prefix
319
+     * @param string $prefix Prefix which will be used for namespace, false for using element's prefix
320 320
      *                                 and null for no prefix
321 321
      */
322 322
     public function setNamespace(string $uri, $prefix = false)
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      * Retrieves array of matching elements
372 372
      *
373 373
      * @param string $name Requested element tag name
374
-     * @param null   $uri  Requested element namespace
374
+     * @param null|string   $uri  Requested element namespace
375 375
      *
376 376
      * @return XmlElement[] Found Elements
377 377
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function getInnerXml()
129 129
     {
130
-        return implode('', array_map(function ($element) {
130
+        return implode('', array_map(function($element) {
131 131
             if (is_string($element)) {
132 132
                 return htmlspecialchars($element);
133 133
             } elseif ($element instanceof XmlElement) {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $attributes = $this->attributes();
155 155
 
156 156
         $result = "<{$this->name}";
157
-        $result .= ' ' . implode(' ', array_map(function ($key, $value) {
157
+        $result .= ' ' . implode(' ', array_map(function($key, $value) {
158 158
                 return $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
159 159
             }, array_keys($attributes), array_values($attributes)));
160 160
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     private function attributes(): array
415 415
     {
416 416
         $namespaces = $this->getNamespaces(false);
417
-        $namespaces = array_map(function ($prefix, $uri) {
417
+        $namespaces = array_map(function($prefix, $uri) {
418 418
             return [$prefix ? "xmlns:{$prefix}" : 'xmlns', $uri];
419 419
         }, array_values($namespaces), array_keys($namespaces));
420 420
 
Please login to merge, or discard this patch.