From f5bd354e7c08fc9e80463a0a127ac9444aabac4e Mon Sep 17 00:00:00 2001 From: kylekatarnls Date: Sun, 8 Sep 2019 18:37:03 +0200 Subject: [PATCH] Fix code style --- src/PugException.php | 8 ++++---- src/PugHandlerTrait.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PugException.php b/src/PugException.php index 0d789ca..40fd1a2 100644 --- a/src/PugException.php +++ b/src/PugException.php @@ -19,8 +19,8 @@ public function __construct(CompilerEngine $context, Throwable $previous) $line = $previous->getLine(); if ($compiler instanceof PugCompiler || $compiler instanceof PugBladeCompilerCompiler) { - $print = 'error-'.md5_file($file).'-'.$line.'-'.md5($previous->getTraceAsString()); - $cachePath = storage_path('framework/views/'.$print.'.txt'); + $print = 'error-' . md5_file($file) . '-' . $line . '-' . md5($previous->getTraceAsString()); + $cachePath = storage_path('framework/views/' . $print . '.txt'); $location = null; if (file_exists($cachePath)) { @@ -35,12 +35,12 @@ public function __construct(CompilerEngine $context, Throwable $previous) ); if ($error instanceof LocatedException && ($location = $error->getLocation())) { - file_put_contents($cachePath, serialize([ + file_put_contents($cachePath, serialize(array( $location->getPath(), $location->getLine(), $location->getOffset(), $location->getOffsetLength(), - ])); + ))); } } diff --git a/src/PugHandlerTrait.php b/src/PugHandlerTrait.php index 8b04d97..6451e21 100644 --- a/src/PugHandlerTrait.php +++ b/src/PugHandlerTrait.php @@ -236,7 +236,7 @@ public function compileWith($path, callable $callback = null) ); if ($pug->getOption('debug')) { - $contents = "$contents$contents