@@ -34,14 +34,14 @@ discard block |
||
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 |
||
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}\">"; |
@@ -40,8 +40,7 @@ |
||
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 | } |