Completed
Pull Request — master (#2637)
by
unknown
02:21
created
src/Layout/Column.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 
35 35
         ///// set width.
36 36
         // if null, or $this->width is empty array, set as "md" => "12"
37
-        if(is_null($width) || (is_array($width) && count($width) === 0)){
37
+        if (is_null($width) || (is_array($width) && count($width) === 0)) {
38 38
             $this->width["md"] = 12;
39 39
         }
40 40
         // $this->width is number(old version), set as "md" => $width
41
-        elseif(is_numeric($width)){
41
+        elseif (is_numeric($width)) {
42 42
             $this->width["md"] = $width;
43 43
         }
44
-        else{
44
+        else {
45 45
             $this->width = $width;
46 46
         }
47 47
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     protected function startColumn()
113 113
     {
114 114
         // get classname using width array
115
-        $classname = implode(" ", collect($this->width)->map(function($value, $key){
115
+        $classname = implode(" ", collect($this->width)->map(function($value, $key) {
116 116
             return "col-$key-$value";
117 117
         })->toArray());
118 118
         echo "<div class=\"{$classname}\">";
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
         // $this->width is number(old version), set as "md" => $width
41 41
         elseif(is_numeric($width)){
42 42
             $this->width["md"] = $width;
43
-        }
44
-        else{
43
+        } else{
45 44
             $this->width = $width;
46 45
         }
47 46
     }
Please login to merge, or discard this patch.