Skip to content

Commit

Permalink
Apply fixes from StyleCI (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls authored Nov 24, 2017
1 parent da004b6 commit 360263b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ExceptionHandlerTrait.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

// @codeCoverageIgnoreStart

namespace Bkwld\LaravelPug;

use Exception;
Expand All @@ -14,6 +15,7 @@ public function filterErrorResponse(Exception $exception, $request, $response)
if ($this->container->has('laravel-pug.pug')) {
/** @var Pug $pug */
$pug = $this->container->get('laravel-pug.pug');

try {
$compiler = $pug->getCompiler();
$exception = $compiler->getFormatter()->getDebugError(
Expand Down Expand Up @@ -74,7 +76,7 @@ public function filterErrorResponse(Exception $exception, $request, $response)
([^<]+)
(<\/pre>)
/x', function ($match) use ($path, $line) {
$code = [];
$code = array();
$source = explode("\n", file_get_contents($path));
$before = 19;
$after = 7;
Expand Down

0 comments on commit 360263b

Please sign in to comment.