Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Sep 8, 2019
1 parent 98c09b1 commit f5bd354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/PugException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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(),
]));
)));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/PugHandlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function compileWith($path, callable $callback = null)
);

if ($pug->getOption('debug')) {
$contents = "<?php try { ?>$contents<?php } ".
$contents = "<?php try { ?>$contents<?php } " .
"catch (\Throwable \$exception) { throw new \Bkwld\LaravelPug\PugException(\$this, \$exception); }";
}
}
Expand Down

0 comments on commit f5bd354

Please sign in to comment.