@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | if ($this->layout === null) { |
61 | 61 | $content = $this->output; |
62 | 62 | } else { |
63 | - $layoutPath = App::$Alias->currentViewPath . '/layout/' . $this->layout . '.php'; |
|
63 | + $layoutPath = App::$Alias->currentViewPath.'/layout/'.$this->layout.'.php'; |
|
64 | 64 | if (!File::exist($layoutPath)) { |
65 | - throw new NativeException('Layout not founded: ' . $layoutPath); |
|
65 | + throw new NativeException('Layout not founded: '.$layoutPath); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $body = $this->output; |
@@ -81,14 +81,14 @@ discard block |
||
81 | 81 | // set custom css library's not included on static call |
82 | 82 | $cssIncludeCode = App::$View->showCodeLink('css'); |
83 | 83 | if (!Str::likeEmpty($cssIncludeCode)) { |
84 | - $content = Str::replace('</head>', $cssIncludeCode . '</head>', $content); |
|
84 | + $content = Str::replace('</head>', $cssIncludeCode.'</head>', $content); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | // add debug bar |
88 | 88 | if (App::$Debug !== null) { |
89 | 89 | $content = Str::replace( |
90 | 90 | ['</body>', '</head>'], |
91 | - [App::$Debug->renderOut() . '</body>', App::$Debug->renderHead() . '</head>'], |
|
91 | + [App::$Debug->renderOut().'</body>', App::$Debug->renderHead().'</head>'], |
|
92 | 92 | $content); |
93 | 93 | } |
94 | 94 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | // set mobile collapse id for toggle |
38 | 38 | $mobCollapseId = $elements['collapseId']; |
39 | 39 | if (Str::likeEmpty($mobCollapseId)) { |
40 | - $mobCollapseId = Str::randomLatin(mt_rand(6,12)) . mt_rand(1, 99); |
|
40 | + $mobCollapseId = Str::randomLatin(mt_rand(6, 12)).mt_rand(1, 99); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | // set element id for toggle |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | // generate output dom of bootstrap navbar |
100 | 100 | $dom = new Dom(); |
101 | 101 | $body = $dom->div(function() use ($leftBuild, $rightBuild, $itemsStatic){ |
102 | - return $leftBuild . $itemsStatic . $rightBuild; |
|
102 | + return $leftBuild.$itemsStatic.$rightBuild; |
|
103 | 103 | }, ['class' => 'collapse navbar-collapse', 'id' => $mobCollapseId]); |
104 | 104 | |
105 | 105 | // drow <nav @properties>@next</nav> |
@@ -110,17 +110,17 @@ discard block |
||
110 | 110 | $header = $dom->div(function() use ($dom, $elements, $mobCollapseId){ |
111 | 111 | // drow <button @collapse>@next</button> |
112 | 112 | $collapseButton = $dom->button(function() use ($dom){ |
113 | - $toggleItem = $dom->span(function(){ |
|
113 | + $toggleItem = $dom->span(function() { |
|
114 | 114 | return 'Toggle menu'; |
115 | 115 | }, ['class' => 'sr-only']); |
116 | 116 | $toggleIcon = null; |
117 | 117 | for ($i = 0; $i < 3; $i++) { |
118 | - $toggleIcon .= $dom->span(function(){ |
|
118 | + $toggleIcon .= $dom->span(function() { |
|
119 | 119 | return null; |
120 | 120 | }, ['class' => 'icon-bar']); |
121 | 121 | } |
122 | - return $toggleItem . $toggleIcon; |
|
123 | - }, ['type' => 'button', 'class' => 'navbar-toggle collapsed', 'data-toggle' => 'collapse', 'data-target' => '#' . $mobCollapseId]); |
|
122 | + return $toggleItem.$toggleIcon; |
|
123 | + }, ['type' => 'button', 'class' => 'navbar-toggle collapsed', 'data-toggle' => 'collapse', 'data-target' => '#'.$mobCollapseId]); |
|
124 | 124 | // drow <div @brand>@brandtext<?div> |
125 | 125 | $brand = null; |
126 | 126 | if (isset($elements['brand'])) { |
@@ -135,10 +135,10 @@ discard block |
||
135 | 135 | }, $elements['brand']['property']); |
136 | 136 | } |
137 | 137 | } |
138 | - return $collapseButton . $brand; |
|
138 | + return $collapseButton.$brand; |
|
139 | 139 | }, ['class' => 'navbar-header']); |
140 | 140 | // return header and body concat |
141 | - return $header . $body; |
|
141 | + return $header.$body; |
|
142 | 142 | }, $elements['container']); |
143 | 143 | }, $elements['nav']); |
144 | 144 | } |