Passed
Push — master ( 8a1920...1fe3b5 )
by Petr
07:20 queued 04:48
created
php-src/HtmlElement/THtmlElement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $alias = $child->getAlias();
81 81
             }
82 82
         } else {
83
-            $alias = $this->checkAlias($alias) ? strval($alias) : null ;
83
+            $alias = $this->checkAlias($alias) ? strval($alias) : null;
84 84
             $child = new Text(strval($child), $alias);
85 85
         }
86 86
         if (method_exists($child, 'setParent') && $this instanceof IHtmlElement) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             if ($merge && $this->__isset(strval($alias))) {
92 92
                 $this->children[strval($alias)]->merge($child);
93 93
             }
94
-            $this->children[strval($alias)] = $inherit ? $this->inherit($child) : $child ;
94
+            $this->children[strval($alias)] = $inherit ? $this->inherit($child) : $child;
95 95
         } else {
96 96
             $this->children[] = $child;
97 97
         }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     protected function checkAlias($alias): bool
106 106
     {
107
-        return !(is_null($alias) || ('' === $alias) || (is_object($alias)) || is_resource($alias) );
107
+        return !(is_null($alias) || ('' === $alias) || (is_object($alias)) || is_resource($alias));
108 108
     }
109 109
 
110 110
     /**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     public function lastChild(): ?IHtmlElement
149 149
     {
150 150
         $last = end($this->children);
151
-        return (false === $last) ? null : $last ;
151
+        return (false === $last) ? null : $last;
152 152
     }
153 153
 
154 154
     /**
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function __get($alias): ?IHtmlElement
187 187
     {
188
-        return $this->__isset($alias) ? $this->children[$alias] : null ;
188
+        return $this->__isset($alias) ? $this->children[$alias] : null;
189 189
     }
190 190
 
191 191
     /**
Please login to merge, or discard this patch.
php-src/ATemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
     protected function getItem(string $key): ?Template\Item
67 67
     {
68
-        return isset($this->items[$key]) ? $this->items[$key] : null ;
68
+        return isset($this->items[$key]) ? $this->items[$key] : null;
69 69
     }
70 70
 
71 71
     protected function updateItem(string $key, ?string $value): self
Please login to merge, or discard this patch.