Skip to content

Commit

Permalink
Fixes CS.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jan 21, 2016
1 parent ac9082b commit bc63d7d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/ApplictionTestCase.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php namespace Orchestra\Testbench;

use Orchestra\Testbench\Contracts\TestCase as TestCaseContract;

class ApplicationTestCase extends TestCase implements TestCaseContract
class ApplicationTestCase extends TestCase
{
/**
* Resolve application HTTP exception handler.
Expand Down
6 changes: 3 additions & 3 deletions src/Exceptions/ApplicationHandler.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php namespace Orchestra\Testbench\Exceptions;

use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Foundation\Testing\HttpException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Validation\ValidationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class ApplicationHandler extends ExceptionHandler
Expand All @@ -28,6 +27,7 @@ class ApplicationHandler extends ExceptionHandler
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
*
* @return void
*/
public function report(Exception $e)
Expand All @@ -40,11 +40,11 @@ public function report(Exception $e)
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
*
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
return parent::render($request, $e);
}
}

2 changes: 1 addition & 1 deletion src/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public function render($request, Exception $e)
{
throw $e;
}
}
}
8 changes: 4 additions & 4 deletions src/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ class Kernel extends \Illuminate\Foundation\Http\Kernel
],
];

/**
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => Middleware\Authenticate::class,
'auth' => Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'guest' => Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'guest' => Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
];

/**
Expand Down
1 change: 1 addition & 0 deletions src/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Authenticate
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
*
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
Expand Down
1 change: 1 addition & 0 deletions src/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class RedirectIfAuthenticated
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
*
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
Expand Down

0 comments on commit bc63d7d

Please sign in to comment.