Test Failed
Pull Request — master (#154)
by Alex
09:09
created
src/Writer/AttributeContainer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     private function strval($value):string
113 113
     {
114
-        if(is_bool($value)){
114
+        if (is_bool($value)) {
115 115
             return $value ? "true" : "false";
116 116
         }
117 117
         return strval($value);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public function setAttributeName(string $name): AttributeContainer
136 136
     {
137 137
         $prefix = null;
138
-        if(strpos($name, ':') !== false) {
138
+        if (strpos($name, ':') !== false) {
139 139
             list($prefix, $name) = explode(":", $name);
140 140
         }
141 141
         $this->name = $name;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             return;
171 171
         }
172 172
         if (null === $this->prefix) {
173
-$node->setAttribute($this->name,$this->value);
173
+$node->setAttribute($this->name, $this->value);
174 174
         } else {
175 175
                 $node->setAttributeNS($context->getNamespaceForPrefix($this->prefix), $this->prefix . ':' . $this->name, $this->value);
176 176
         }
Please login to merge, or discard this patch.