Completed
Push — 1.x ( 16e8a3...2682d1 )
by Asao
01:33
created
src/Tags/InputList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $this->list = $list;
27 27
         $this->setAttribute('type', $type);
28 28
         $this->setAttribute('name', $name);
29
-        $this->setAttribute('value', (array)$value);
29
+        $this->setAttribute('value', (array) $value);
30 30
         if ($type === 'checkbox') {
31 31
             $this->setMultiple();
32 32
         }
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
         $html = '<ul>';
49 49
         foreach ($this->list as $key => $label) {
50 50
             $html .= "\n";
51
-            $html .= '  <li>' . $this->labelHtml($this->getInput($key) . ' ' . $label) . '</li>';
51
+            $html .= '  <li>'.$this->labelHtml($this->getInput($key).' '.$label).'</li>';
52 52
         }
53
-        return $html . "\n</ul>";
53
+        return $html."\n</ul>";
54 54
     }
55 55
 
56 56
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $input->fillAttributes($this->getAttribute()->getAttribute());
84 84
         $input->setAttribute('value', $key);
85 85
         $selectedValue = $this->get('value');
86
-        if (in_array((string)$key, $selectedValue)) {
86
+        if (in_array((string) $key, $selectedValue)) {
87 87
             $input->setAttribute('checked', true);
88 88
         }
89 89
         return $input;
Please login to merge, or discard this patch.
src/Tags/TagToString.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
         $prop = self::htmlProperty($element->getAttribute());
13 13
         $tag  = $element->getTagName();
14 14
         if ($element->isClosed() || $element->hasContents()) {
15
-            $html = '<' . $tag . $prop . ' >' . $element->getContents() . "</{$tag}>" . "\n";
15
+            $html = '<'.$tag.$prop.' >'.$element->getContents()."</{$tag}>"."\n";
16 16
         } else {
17
-            $html = '<' . $tag . $prop . ' >' . "\n";
17
+            $html = '<'.$tag.$prop.' >'."\n";
18 18
         }
19 19
         $html = rtrim($html);
20 20
         return $html;
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
                     $property[] = $key;
36 36
                 } elseif ($val !== false) {
37 37
                     // ignore if $val is false.
38
-                    $property[] = $key . "=\"{$val}\"";
38
+                    $property[] = $key."=\"{$val}\"";
39 39
                 }
40 40
             }
41
-            return ' ' . implode(' ', $property);
41
+            return ' '.implode(' ', $property);
42 42
         }
43 43
         return '';
44 44
     }
Please login to merge, or discard this patch.