@@ -170,7 +170,7 @@ |
||
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - throw new ViewException(__('view.notFound', ['file' => $name])); |
|
| 173 | + throw new ViewException(__('view.notFound', ['file' => $name])); |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | */ |
| 183 | 183 | protected function getFindViewFiles($name) |
| 184 | 184 | { |
| 185 | - return array_map(function ($extension) use ($name) { |
|
| 185 | + return array_map(function($extension) use ($name) { |
|
| 186 | 186 | return str_replace('.', DIRECTORY_SEPARATOR, $name).'.'.$extension; |
| 187 | 187 | }, $this->getExtensions()); |
| 188 | 188 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | return $this->files->lastModified($path) >= |
| 100 | - $this->files->lastModified($compiled); |
|
| 100 | + $this->files->lastModified($compiled); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -30,16 +30,16 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | trait ManagesIncludes |
| 32 | 32 | { |
| 33 | - /** |
|
| 34 | - * Include another view in a view. |
|
| 35 | - * |
|
| 36 | - * @param string $file |
|
| 37 | - * @param array $data |
|
| 38 | - * |
|
| 39 | - * @return string |
|
| 40 | - */ |
|
| 41 | - public function include($file, $data = []) |
|
| 42 | - { |
|
| 43 | - return $this->make($file, $data)->render(); |
|
| 44 | - } |
|
| 33 | + /** |
|
| 34 | + * Include another view in a view. |
|
| 35 | + * |
|
| 36 | + * @param string $file |
|
| 37 | + * @param array $data |
|
| 38 | + * |
|
| 39 | + * @return string |
|
| 40 | + */ |
|
| 41 | + public function include($file, $data = []) |
|
| 42 | + { |
|
| 43 | + return $this->make($file, $data)->render(); |
|
| 44 | + } |
|
| 45 | 45 | } |
| 46 | 46 | \ No newline at end of file |
@@ -30,45 +30,45 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | trait Extensions |
| 32 | 32 | { |
| 33 | - /** |
|
| 34 | - * The file extension. |
|
| 35 | - * |
|
| 36 | - * @var array $extension |
|
| 37 | - */ |
|
| 38 | - protected $extension = [ |
|
| 39 | - 'plaze.php', |
|
| 40 | - 'php', |
|
| 41 | - 'html', |
|
| 42 | - ]; |
|
| 33 | + /** |
|
| 34 | + * The file extension. |
|
| 35 | + * |
|
| 36 | + * @var array $extension |
|
| 37 | + */ |
|
| 38 | + protected $extension = [ |
|
| 39 | + 'plaze.php', |
|
| 40 | + 'php', |
|
| 41 | + 'html', |
|
| 42 | + ]; |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * The type to engine bindings. |
|
| 46 | - * |
|
| 47 | - * @var array $extensions |
|
| 48 | - */ |
|
| 49 | - protected $extensions = [ |
|
| 50 | - 'plaze.php' => 'plaze', |
|
| 51 | - 'php' => 'php', |
|
| 52 | - 'html' => 'file', |
|
| 53 | - ]; |
|
| 44 | + /** |
|
| 45 | + * The type to engine bindings. |
|
| 46 | + * |
|
| 47 | + * @var array $extensions |
|
| 48 | + */ |
|
| 49 | + protected $extensions = [ |
|
| 50 | + 'plaze.php' => 'plaze', |
|
| 51 | + 'php' => 'php', |
|
| 52 | + 'html' => 'file', |
|
| 53 | + ]; |
|
| 54 | 54 | |
| 55 | - /** |
|
| 56 | - * Get the template file extension. |
|
| 57 | - * |
|
| 58 | - * @return array |
|
| 59 | - */ |
|
| 60 | - public function getExtensions() |
|
| 61 | - { |
|
| 62 | - return $this->extension; |
|
| 63 | - } |
|
| 55 | + /** |
|
| 56 | + * Get the template file extension. |
|
| 57 | + * |
|
| 58 | + * @return array |
|
| 59 | + */ |
|
| 60 | + public function getExtensions() |
|
| 61 | + { |
|
| 62 | + return $this->extension; |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - /** |
|
| 66 | - * Get type to engine bindings. |
|
| 67 | - * |
|
| 68 | - * @return array |
|
| 69 | - */ |
|
| 70 | - public function getKeysToExtensions() |
|
| 71 | - { |
|
| 72 | - return array_keys($this->extensions); |
|
| 73 | - } |
|
| 65 | + /** |
|
| 66 | + * Get type to engine bindings. |
|
| 67 | + * |
|
| 68 | + * @return array |
|
| 69 | + */ |
|
| 70 | + public function getKeysToExtensions() |
|
| 71 | + { |
|
| 72 | + return array_keys($this->extensions); |
|
| 73 | + } |
|
| 74 | 74 | } |
| 75 | 75 | \ No newline at end of file |
@@ -36,10 +36,10 @@ |
||
| 36 | 36 | class LogManager implements LoggerInterface |
| 37 | 37 | { |
| 38 | 38 | /** |
| 39 | - * The application implementation. |
|
| 40 | - * |
|
| 41 | - * @var \Syscodes\Contracts\Core\Application $app |
|
| 42 | - */ |
|
| 39 | + * The application implementation. |
|
| 40 | + * |
|
| 41 | + * @var \Syscodes\Contracts\Core\Application $app |
|
| 42 | + */ |
|
| 43 | 43 | protected $app; |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -40,10 +40,10 @@ |
||
| 40 | 40 | use ParseLogEnvironment; |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * The application implementation. |
|
| 44 | - * |
|
| 45 | - * @var \Syscodes\Contracts\Core\Application $app |
|
| 46 | - */ |
|
| 43 | + * The application implementation. |
|
| 44 | + * |
|
| 45 | + * @var \Syscodes\Contracts\Core\Application $app |
|
| 46 | + */ |
|
| 47 | 47 | protected $app; |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | |
| 157 | 157 | foreach ($context as $key => $value) { |
| 158 | 158 | if ($key === 'exception' && $value instanceof Throwable) { |
| 159 | - $value = $value->getMessage() . ' ' . $this->cleanFileNames($value->getFile()) . ':' . $value->getLine(); |
|
| 159 | + $value = $value->getMessage().' '.$this->cleanFileNames($value->getFile()).':'.$value->getLine(); |
|
| 160 | 160 | // Todo - sanitize input before writing to file? |
| 161 | 161 | $replace["{{$key}}"] = $value; |
| 162 | 162 | } elseif (null === $value || is_scalar($value) || (is_object($value) && method_exists($value, '__toString'))) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function register() |
| 41 | 41 | { |
| 42 | - $this->app->singleton('log', function () { |
|
| 42 | + $this->app->singleton('log', function() { |
|
| 43 | 43 | return new LogManager($this->app); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -37,8 +37,11 @@ |
||
| 37 | 37 | <div id="frame-code-args-<?=$index?>" class="code-block frame-args"> |
| 38 | 38 | <?= $frameArgs ?> |
| 39 | 39 | </div> |
| 40 | - <?php else: ?> |
|
| 40 | + <?php else { |
|
| 41 | + : ?> |
|
| 41 | 42 | <div class="frame-noArgument"><?= e(__('exception.noArguments')) ?></div> |
| 42 | - <?php endif; ?> |
|
| 43 | + <?php endif; |
|
| 44 | +} |
|
| 45 | +?> |
|
| 43 | 46 | </div> |
| 44 | 47 | <?php endforeach; ?> |
| 45 | 48 | \ No newline at end of file |
@@ -21,10 +21,13 @@ |
||
| 21 | 21 | <?php endforeach; ?> |
| 22 | 22 | </tbody> |
| 23 | 23 | </table> |
| 24 | - <?php else : ?> |
|
| 24 | + <?php else { |
|
| 25 | + : ?> |
|
| 25 | 26 | <label class="empty"><?= e($label) ?></label> |
| 26 | 27 | <span class="empty"><?= e(__('exception.empty')) ?></span> |
| 27 | - <?php endif; ?> |
|
| 28 | + <?php endif; |
|
| 29 | +} |
|
| 30 | +?> |
|
| 28 | 31 | </div> |
| 29 | 32 | <?php endforeach; ?> |
| 30 | 33 | </div> |