@@ -44,7 +44,7 @@ |
||
44 | 44 | public function loadWithFallback($view, $fallback, $variables = [], $return = false) |
45 | 45 | { |
46 | 46 | $view = $this->existPath($view) ? $view : $fallback; |
47 | - return $this->load( $view, $variables, $return); |
|
47 | + return $this->load($view, $variables, $return); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** @noinspection PhpInconsistentReturnPointsInspection |
@@ -123,15 +123,15 @@ discard block |
||
123 | 123 | */ |
124 | 124 | protected function findInPaths($name, $paths) |
125 | 125 | { |
126 | - foreach ((array)$paths as $path) { |
|
126 | + foreach ((array) $paths as $path) { |
|
127 | 127 | $file = $this->getViewFilename($name); |
128 | - $viewPath = $path . '/' . $file; |
|
128 | + $viewPath = $path.'/'.$file; |
|
129 | 129 | if (file_exists($viewPath)) { |
130 | 130 | return $viewPath; |
131 | 131 | } |
132 | 132 | } |
133 | 133 | throw new InvalidArgumentException( |
134 | - 'View [' . $name . '] not found in paths [' . implode(', ', $paths) . '].' |
|
134 | + 'View ['.$name.'] not found in paths ['.implode(', ', $paths).'].' |
|
135 | 135 | ); |
136 | 136 | } |
137 | 137 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | protected function getViewFilename($name) |
145 | 145 | { |
146 | - return $name . '.php'; |
|
146 | + return $name.'.php'; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |