Completed
Push — master ( 46828e...77588e )
by CodexShaper
07:35 queued 04:43
created
app/Http/Middleware/VerifyCsrfToken.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -24,29 +24,29 @@
 block discarded – undo
24 24
  */
25 25
 class VerifyCsrfToken {
26 26
 
27
-	/**
28
-	 * Handle an incoming request.
29
-	 *
30
-	 * @param  \Illuminate\Http\Request $request The app http request.
31
-	 * @param  \Closure                 $next The next closure.
32
-	 *
33
-	 * @throws \Exception Throw the exception.
34
-	 *
35
-	 * @return mixed
36
-	 */
37
-	public function handle( Request $request, Closure $next ) {
38
-		$token  = $request->input( '_token' ) ?? $request->header( 'X-CSRF-TOKEN' );
39
-		$action = $request->wpb_nonce ?? 'wpb_nonce';
40
-
41
-		if ( ! wp_verify_nonce( $token, $action ) ) {
42
-			if ( $request->ajax() ) {
43
-				return wp_send_json( array( 'message' => 'CSRF Token mitchmatch' ), 403 );
44
-			}
45
-
46
-			throw new \Exception( 'CSRF Token mismatch' );
47
-
48
-		}
49
-
50
-		return $next( $request );
51
-	}
27
+    /**
28
+     * Handle an incoming request.
29
+     *
30
+     * @param  \Illuminate\Http\Request $request The app http request.
31
+     * @param  \Closure                 $next The next closure.
32
+     *
33
+     * @throws \Exception Throw the exception.
34
+     *
35
+     * @return mixed
36
+     */
37
+    public function handle( Request $request, Closure $next ) {
38
+        $token  = $request->input( '_token' ) ?? $request->header( 'X-CSRF-TOKEN' );
39
+        $action = $request->wpb_nonce ?? 'wpb_nonce';
40
+
41
+        if ( ! wp_verify_nonce( $token, $action ) ) {
42
+            if ( $request->ajax() ) {
43
+                return wp_send_json( array( 'message' => 'CSRF Token mitchmatch' ), 403 );
44
+            }
45
+
46
+            throw new \Exception( 'CSRF Token mismatch' );
47
+
48
+        }
49
+
50
+        return $next( $request );
51
+    }
52 52
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,19 +34,19 @@
 block discarded – undo
34 34
 	 *
35 35
 	 * @return mixed
36 36
 	 */
37
-	public function handle( Request $request, Closure $next ) {
38
-		$token  = $request->input( '_token' ) ?? $request->header( 'X-CSRF-TOKEN' );
37
+	public function handle(Request $request, Closure $next) {
38
+		$token  = $request->input('_token') ?? $request->header('X-CSRF-TOKEN');
39 39
 		$action = $request->wpb_nonce ?? 'wpb_nonce';
40 40
 
41
-		if ( ! wp_verify_nonce( $token, $action ) ) {
42
-			if ( $request->ajax() ) {
43
-				return wp_send_json( array( 'message' => 'CSRF Token mitchmatch' ), 403 );
41
+		if (!wp_verify_nonce($token, $action)) {
42
+			if ($request->ajax()) {
43
+				return wp_send_json(array('message' => 'CSRF Token mitchmatch'), 403);
44 44
 			}
45 45
 
46
-			throw new \Exception( 'CSRF Token mismatch' );
46
+			throw new \Exception('CSRF Token mismatch');
47 47
 
48 48
 		}
49 49
 
50
-		return $next( $request );
50
+		return $next($request);
51 51
 	}
52 52
 }
Please login to merge, or discard this patch.
app/Http/Middleware/Scope.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -29,24 +29,24 @@
 block discarded – undo
29 29
  */
30 30
 class Scope {
31 31
 
32
-	/**
33
-	 * Handle an incoming request.
34
-	 *
35
-	 * @param  \Illuminate\Http\Request $request The app http request.
36
-	 * @param  \Closure                 $next The next closure.
37
-	 * @param   array                    ...$scopes The requested guards.
38
-	 *
39
-	 * @throws \Exception Throw the exception.
40
-	 *
41
-	 * @return mixed
42
-	 */
43
-	public function handle( Request $request, Closure $next, ...$scopes ) {
44
-		foreach ( $scopes as $scope ) {
45
-			if ( ! in_array( $scope, $request->scopes ) ) {
46
-				wp_send_json( array( 'msg' => "You don't have enough permission" ), 400 );
47
-			}
48
-		}
32
+    /**
33
+     * Handle an incoming request.
34
+     *
35
+     * @param  \Illuminate\Http\Request $request The app http request.
36
+     * @param  \Closure                 $next The next closure.
37
+     * @param   array                    ...$scopes The requested guards.
38
+     *
39
+     * @throws \Exception Throw the exception.
40
+     *
41
+     * @return mixed
42
+     */
43
+    public function handle( Request $request, Closure $next, ...$scopes ) {
44
+        foreach ( $scopes as $scope ) {
45
+            if ( ! in_array( $scope, $request->scopes ) ) {
46
+                wp_send_json( array( 'msg' => "You don't have enough permission" ), 400 );
47
+            }
48
+        }
49 49
 
50
-		return $next( $request );
51
-	}
50
+        return $next( $request );
51
+    }
52 52
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
 	 *
41 41
 	 * @return mixed
42 42
 	 */
43
-	public function handle( Request $request, Closure $next, ...$scopes ) {
44
-		foreach ( $scopes as $scope ) {
45
-			if ( ! in_array( $scope, $request->scopes ) ) {
46
-				wp_send_json( array( 'msg' => "You don't have enough permission" ), 400 );
43
+	public function handle(Request $request, Closure $next, ...$scopes) {
44
+		foreach ($scopes as $scope) {
45
+			if (!in_array($scope, $request->scopes)) {
46
+				wp_send_json(array('msg' => "You don't have enough permission"), 400);
47 47
 			}
48 48
 		}
49 49
 
50
-		return $next( $request );
50
+		return $next($request);
51 51
 	}
52 52
 }
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -23,39 +23,39 @@
 block discarded – undo
23 23
  */
24 24
 class Kernel extends HttpKernel {
25 25
 
26
-	/**
27
-	 * The application's global HTTP middleware stack.
28
-	 *
29
-	 * These middleware are run during every request to your application.
30
-	 *
31
-	 * @var array
32
-	 */
33
-	protected $middleware = array();
26
+    /**
27
+     * The application's global HTTP middleware stack.
28
+     *
29
+     * These middleware are run during every request to your application.
30
+     *
31
+     * @var array
32
+     */
33
+    protected $middleware = array();
34 34
 
35
-	/**
36
-	 * The application's route middleware groups.
37
-	 *
38
-	 * @var array
39
-	 */
40
-	protected $middleware_groups = array(
41
-		'web' => array(
42
-			\WPB\App\Http\Middleware\VerifyCsrfToken::class,
43
-		),
35
+    /**
36
+     * The application's route middleware groups.
37
+     *
38
+     * @var array
39
+     */
40
+    protected $middleware_groups = array(
41
+        'web' => array(
42
+            \WPB\App\Http\Middleware\VerifyCsrfToken::class,
43
+        ),
44 44
 
45
-		'api' => array(
46
-			'throttle:60,1',
47
-		),
48
-	);
45
+        'api' => array(
46
+            'throttle:60,1',
47
+        ),
48
+    );
49 49
 
50
-	/**
51
-	 * The application's route middleware.
52
-	 *
53
-	 * These middleware may be assigned to groups or used individually.
54
-	 *
55
-	 * @var array
56
-	 */
57
-	protected $route_middleware = array(
58
-		'auth'  => \WPB\App\Http\Middleware\AuthMiddleware::class,
59
-		'scope' => \WPB\App\Http\Middleware\Scope::class,
60
-	);
50
+    /**
51
+     * The application's route middleware.
52
+     *
53
+     * These middleware may be assigned to groups or used individually.
54
+     *
55
+     * @var array
56
+     */
57
+    protected $route_middleware = array(
58
+        'auth'  => \WPB\App\Http\Middleware\AuthMiddleware::class,
59
+        'scope' => \WPB\App\Http\Middleware\Scope::class,
60
+    );
61 61
 }
Please login to merge, or discard this patch.
app/User.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -23,41 +23,41 @@
 block discarded – undo
23 23
  */
24 24
 class User extends Model {
25 25
 
26
-	protected $primaryKey = 'ID';
26
+    protected $primaryKey = 'ID';
27 27
 
28
-	/**
29
-	 * The fillable fields for mass assignment.
30
-	 *
31
-	 * @since    1.0.0
32
-	 * @access   protected
33
-	 * @var      array    $fillable    The fillable fields.
34
-	 */
35
-	protected $fillable = array(
36
-		'name',
37
-		'email',
38
-		'password',
39
-	);
28
+    /**
29
+     * The fillable fields for mass assignment.
30
+     *
31
+     * @since    1.0.0
32
+     * @access   protected
33
+     * @var      array    $fillable    The fillable fields.
34
+     */
35
+    protected $fillable = array(
36
+        'name',
37
+        'email',
38
+        'password',
39
+    );
40 40
 
41
-	/**
42
-	 * The hidden fields.
43
-	 *
44
-	 * @since    1.0.0
45
-	 * @access   protected
46
-	 * @var      array    $hidden    The hidden fields.
47
-	 */
48
-	protected $hidden = array(
49
-		'password',
50
-		'remember_token',
51
-	);
41
+    /**
42
+     * The hidden fields.
43
+     *
44
+     * @since    1.0.0
45
+     * @access   protected
46
+     * @var      array    $hidden    The hidden fields.
47
+     */
48
+    protected $hidden = array(
49
+        'password',
50
+        'remember_token',
51
+    );
52 52
 
53
-	/**
54
-	 * The field cast.
55
-	 *
56
-	 * @since    1.0.0
57
-	 * @access   protected
58
-	 * @var      array    $casts    The field cast.
59
-	 */
60
-	protected $casts = array(
61
-		'email_verified_at' => 'datetime',
62
-	);
53
+    /**
54
+     * The field cast.
55
+     *
56
+     * @since    1.0.0
57
+     * @access   protected
58
+     * @var      array    $casts    The field cast.
59
+     */
60
+    protected $casts = array(
61
+        'email_verified_at' => 'datetime',
62
+    );
63 63
 }
Please login to merge, or discard this patch.
app/Commands/InstallComposer.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -9,43 +9,43 @@
 block discarded – undo
9 9
  * @subpackage WPB/app/Commands
10 10
  */
11 11
 
12
- /**
13
-  * Register all actions and filters for the plugin.
14
-  *
15
-  * Maintain a list of all hooks that are registered throughout
16
-  * the plugin, and register them with the WordPress API. Call the
17
-  * run function to execute the list of actions and filters.
18
-  *
19
-  * @package    WPB
20
-  * @subpackage WPB/app/Commands
21
-  * @author     Md Abu Ahsan basir <[email protected]>
22
-  */
12
+    /**
13
+     * Register all actions and filters for the plugin.
14
+     *
15
+     * Maintain a list of all hooks that are registered throughout
16
+     * the plugin, and register them with the WordPress API. Call the
17
+     * run function to execute the list of actions and filters.
18
+     *
19
+     * @package    WPB
20
+     * @subpackage WPB/app/Commands
21
+     * @author     Md Abu Ahsan basir <[email protected]>
22
+     */
23 23
 class InstallComposer {
24 24
 
25
-	/**
26
-	 * Install composer factory.
27
-	 *
28
-	 * @since    1.0.0
29
-	 */
30
-	public function __construct() {
31
-		if ( ! file_exists( __DIR__ . '/../vendor/autoload.php' ) ) {
25
+    /**
26
+     * Install composer factory.
27
+     *
28
+     * @since    1.0.0
29
+     */
30
+    public function __construct() {
31
+        if ( ! file_exists( __DIR__ . '/../vendor/autoload.php' ) ) {
32 32
 
33
-			require_once __DIR__ . '/../vendor/autoload.php';
33
+            require_once __DIR__ . '/../vendor/autoload.php';
34 34
 
35
-			$composer = 'composer';
35
+            $composer = 'composer';
36 36
 
37
-			try {
38
-				$process = \Symfony\Component\Process\Process::fromShellCommandline( $composer . ' install' );
39
-				$process->setEnv(
40
-					array(
41
-						'COMPOSER_HOME' => __DIR__ . '/../vendor/bin/composer',
42
-					)
43
-				);
44
-				$process->setTimeout( null ); // Setting timeout to null to prevent installation from stopping at a certain point in time.
45
-				$process->setWorkingDirectory( __DIR__ )->mustRun();
46
-			} catch ( \Exception $ex ) {
47
-				echo $ex->getMessage();
48
-			}
49
-		}
50
-	}
37
+            try {
38
+                $process = \Symfony\Component\Process\Process::fromShellCommandline( $composer . ' install' );
39
+                $process->setEnv(
40
+                    array(
41
+                        'COMPOSER_HOME' => __DIR__ . '/../vendor/bin/composer',
42
+                    )
43
+                );
44
+                $process->setTimeout( null ); // Setting timeout to null to prevent installation from stopping at a certain point in time.
45
+                $process->setWorkingDirectory( __DIR__ )->mustRun();
46
+            } catch ( \Exception $ex ) {
47
+                echo $ex->getMessage();
48
+            }
49
+        }
50
+    }
51 51
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,22 +28,22 @@
 block discarded – undo
28 28
 	 * @since    1.0.0
29 29
 	 */
30 30
 	public function __construct() {
31
-		if ( ! file_exists( __DIR__ . '/../vendor/autoload.php' ) ) {
31
+		if (!file_exists(__DIR__.'/../vendor/autoload.php')) {
32 32
 
33
-			require_once __DIR__ . '/../vendor/autoload.php';
33
+			require_once __DIR__.'/../vendor/autoload.php';
34 34
 
35 35
 			$composer = 'composer';
36 36
 
37 37
 			try {
38
-				$process = \Symfony\Component\Process\Process::fromShellCommandline( $composer . ' install' );
38
+				$process = \Symfony\Component\Process\Process::fromShellCommandline($composer.' install');
39 39
 				$process->setEnv(
40 40
 					array(
41
-						'COMPOSER_HOME' => __DIR__ . '/../vendor/bin/composer',
41
+						'COMPOSER_HOME' => __DIR__.'/../vendor/bin/composer',
42 42
 					)
43 43
 				);
44
-				$process->setTimeout( null ); // Setting timeout to null to prevent installation from stopping at a certain point in time.
45
-				$process->setWorkingDirectory( __DIR__ )->mustRun();
46
-			} catch ( \Exception $ex ) {
44
+				$process->setTimeout(null); // Setting timeout to null to prevent installation from stopping at a certain point in time.
45
+				$process->setWorkingDirectory(__DIR__)->mustRun();
46
+			} catch (\Exception $ex) {
47 47
 				echo $ex->getMessage();
48 48
 			}
49 49
 		}
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 2 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -24,45 +24,45 @@
 block discarded – undo
24 24
  */
25 25
 class Handler extends ExceptionHandler {
26 26
 
27
-	/**
28
-	 * A list of the exception types that are not reported.
29
-	 *
30
-	 * @var array
31
-	 */
32
-	protected $dont_report = array();
27
+    /**
28
+     * A list of the exception types that are not reported.
29
+     *
30
+     * @var array
31
+     */
32
+    protected $dont_report = array();
33 33
 
34
-	/**
35
-	 * A list of the inputs that are never flashed for validation exceptions.
36
-	 *
37
-	 * @var array
38
-	 */
39
-	protected $dont_flash = array(
40
-		'password',
41
-		'password_confirmation',
42
-	);
34
+    /**
35
+     * A list of the inputs that are never flashed for validation exceptions.
36
+     *
37
+     * @var array
38
+     */
39
+    protected $dont_flash = array(
40
+        'password',
41
+        'password_confirmation',
42
+    );
43 43
 
44
-	/**
45
-	 * Report or log an exception.
46
-	 *
47
-	 * @param  \Throwable $exception The throwable exception.
48
-	 * @return void
49
-	 *
50
-	 * @throws \Exception Throw the exception.
51
-	 */
52
-	public function report( Throwable $exception ) {
53
-		parent::report( $exception );
54
-	}
44
+    /**
45
+     * Report or log an exception.
46
+     *
47
+     * @param  \Throwable $exception The throwable exception.
48
+     * @return void
49
+     *
50
+     * @throws \Exception Throw the exception.
51
+     */
52
+    public function report( Throwable $exception ) {
53
+        parent::report( $exception );
54
+    }
55 55
 
56
-	/**
57
-	 * Render an exception into an HTTP response.
58
-	 *
59
-	 * @param  \Illuminate\Http\Request $request The app http request.
60
-	 * @param  \Throwable               $exception The throwable exception.
61
-	 * @return \Symfony\Component\HttpFoundation\Response
62
-	 *
63
-	 * @throws \Throwable Throw the nexception.
64
-	 */
65
-	public function render( $request, Throwable $exception ) {
66
-		return parent::render( $request, $exception );
67
-	}
56
+    /**
57
+     * Render an exception into an HTTP response.
58
+     *
59
+     * @param  \Illuminate\Http\Request $request The app http request.
60
+     * @param  \Throwable               $exception The throwable exception.
61
+     * @return \Symfony\Component\HttpFoundation\Response
62
+     *
63
+     * @throws \Throwable Throw the nexception.
64
+     */
65
+    public function render( $request, Throwable $exception ) {
66
+        return parent::render( $request, $exception );
67
+    }
68 68
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
 	 *
50 50
 	 * @throws \Exception Throw the exception.
51 51
 	 */
52
-	public function report( Throwable $exception ) {
53
-		parent::report( $exception );
52
+	public function report(Throwable $exception) {
53
+		parent::report($exception);
54 54
 	}
55 55
 
56 56
 	/**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @throws \Throwable Throw the nexception.
64 64
 	 */
65
-	public function render( $request, Throwable $exception ) {
66
-		return parent::render( $request, $exception );
65
+	public function render($request, Throwable $exception) {
66
+		return parent::render($request, $exception);
67 67
 	}
68 68
 }
Please login to merge, or discard this patch.
src/Http/Events/RequestHandled.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -21,30 +21,30 @@
 block discarded – undo
21 21
  */
22 22
 class RequestHandled {
23 23
 
24
-	/**
25
-	 * The request instance.
26
-	 *
27
-	 * @var \Illuminate\Http\Request
28
-	 */
29
-	public $request;
24
+    /**
25
+     * The request instance.
26
+     *
27
+     * @var \Illuminate\Http\Request
28
+     */
29
+    public $request;
30 30
 
31
-	/**
32
-	 * The response instance.
33
-	 *
34
-	 * @var \Illuminate\Http\Response
35
-	 */
36
-	public $response;
31
+    /**
32
+     * The response instance.
33
+     *
34
+     * @var \Illuminate\Http\Response
35
+     */
36
+    public $response;
37 37
 
38
-	/**
39
-	 * Create a new event instance.
40
-	 *
41
-	 * @param \Illuminate\Http\Request  $request The app http request.
42
-	 * @param \Illuminate\Http\Response $response The app http response.
43
-	 *
44
-	 * @return void
45
-	 */
46
-	public function __construct( $request, $response ) {
47
-		$this->request  = $request;
48
-		$this->response = $response;
49
-	}
38
+    /**
39
+     * Create a new event instance.
40
+     *
41
+     * @param \Illuminate\Http\Request  $request The app http request.
42
+     * @param \Illuminate\Http\Response $response The app http response.
43
+     *
44
+     * @return void
45
+     */
46
+    public function __construct( $request, $response ) {
47
+        $this->request  = $request;
48
+        $this->response = $response;
49
+    }
50 50
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	 *
44 44
 	 * @return void
45 45
 	 */
46
-	public function __construct( $request, $response ) {
46
+	public function __construct($request, $response) {
47 47
 		$this->request  = $request;
48 48
 		$this->response = $response;
49 49
 	}
Please login to merge, or discard this patch.
src/Contracts/Http/Kernel.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -21,34 +21,34 @@
 block discarded – undo
21 21
  */
22 22
 interface Kernel {
23 23
 
24
-	/**
25
-	 * Bootstrap the application for HTTP requests.
26
-	 *
27
-	 * @return void
28
-	 */
29
-	public function bootstrap();
24
+    /**
25
+     * Bootstrap the application for HTTP requests.
26
+     *
27
+     * @return void
28
+     */
29
+    public function bootstrap();
30 30
 
31
-	/**
32
-	 * Handle an incoming HTTP request.
33
-	 *
34
-	 * @param  \Symfony\Component\HttpFoundation\Request $request The app http request.
35
-	 * @return \Symfony\Component\HttpFoundation\Response
36
-	 */
37
-	public function handle( $request);
31
+    /**
32
+     * Handle an incoming HTTP request.
33
+     *
34
+     * @param  \Symfony\Component\HttpFoundation\Request $request The app http request.
35
+     * @return \Symfony\Component\HttpFoundation\Response
36
+     */
37
+    public function handle( $request);
38 38
 
39
-	/**
40
-	 * Perform any final actions for the request lifecycle.
41
-	 *
42
-	 * @param  \Symfony\Component\HttpFoundation\Request  $request The app http request.
43
-	 * @param  \Symfony\Component\HttpFoundation\Response $response The app http response.
44
-	 * @return void
45
-	 */
46
-	public function terminate( $request, $response);
39
+    /**
40
+     * Perform any final actions for the request lifecycle.
41
+     *
42
+     * @param  \Symfony\Component\HttpFoundation\Request  $request The app http request.
43
+     * @param  \Symfony\Component\HttpFoundation\Response $response The app http response.
44
+     * @return void
45
+     */
46
+    public function terminate( $request, $response);
47 47
 
48
-	/**
49
-	 * Get the Laravel application instance.
50
-	 *
51
-	 * @return \Illuminate\Contracts\Foundation\Application
52
-	 */
53
-	public function get_application();
48
+    /**
49
+     * Get the Laravel application instance.
50
+     *
51
+     * @return \Illuminate\Contracts\Foundation\Application
52
+     */
53
+    public function get_application();
54 54
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 * @param  \Symfony\Component\HttpFoundation\Request $request The app http request.
35 35
 	 * @return \Symfony\Component\HttpFoundation\Response
36 36
 	 */
37
-	public function handle( $request);
37
+	public function handle($request);
38 38
 
39 39
 	/**
40 40
 	 * Perform any final actions for the request lifecycle.
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @param  \Symfony\Component\HttpFoundation\Response $response The app http response.
44 44
 	 * @return void
45 45
 	 */
46
-	public function terminate( $request, $response);
46
+	public function terminate($request, $response);
47 47
 
48 48
 	/**
49 49
 	 * Get the Laravel application instance.
Please login to merge, or discard this patch.
src/Contracts/ExceptionHandler.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -24,41 +24,41 @@
 block discarded – undo
24 24
  */
25 25
 interface ExceptionHandler {
26 26
 
27
-	/**
28
-	 * Report or log an exception.
29
-	 *
30
-	 * @param  \Throwable $e The throwable exception.
31
-	 * @return void
32
-	 *
33
-	 * @throws \Exception Throw the exception.
34
-	 */
35
-	public function report( Throwable $e);
27
+    /**
28
+     * Report or log an exception.
29
+     *
30
+     * @param  \Throwable $e The throwable exception.
31
+     * @return void
32
+     *
33
+     * @throws \Exception Throw the exception.
34
+     */
35
+    public function report( Throwable $e);
36 36
 
37
-	/**
38
-	 * Determine if the exception should be reported.
39
-	 *
40
-	 * @param  \Throwable $e The throwable exception.
41
-	 * @return bool
42
-	 */
43
-	public function should_report( Throwable $e);
37
+    /**
38
+     * Determine if the exception should be reported.
39
+     *
40
+     * @param  \Throwable $e The throwable exception.
41
+     * @return bool
42
+     */
43
+    public function should_report( Throwable $e);
44 44
 
45
-	/**
46
-	 * Render an exception into an HTTP response.
47
-	 *
48
-	 * @param  \Illuminate\Http\Request $request The app request.
49
-	 * @param  \Throwable               $e The throwable exception.
50
-	 * @return \Symfony\Component\HttpFoundation\Response
51
-	 *
52
-	 * @throws \Throwable Throw the error.
53
-	 */
54
-	public function render( $request, Throwable $e);
45
+    /**
46
+     * Render an exception into an HTTP response.
47
+     *
48
+     * @param  \Illuminate\Http\Request $request The app request.
49
+     * @param  \Throwable               $e The throwable exception.
50
+     * @return \Symfony\Component\HttpFoundation\Response
51
+     *
52
+     * @throws \Throwable Throw the error.
53
+     */
54
+    public function render( $request, Throwable $e);
55 55
 
56
-	/**
57
-	 * Render an exception to the console.
58
-	 *
59
-	 * @param  \Symfony\Component\Console\Output\OutputInterface $output Symfony output.
60
-	 * @param  \Throwable                                        $e The throwable exception.
61
-	 * @return void
62
-	 */
63
-	public function render_for_console( $output, Throwable $e);
56
+    /**
57
+     * Render an exception to the console.
58
+     *
59
+     * @param  \Symfony\Component\Console\Output\OutputInterface $output Symfony output.
60
+     * @param  \Throwable                                        $e The throwable exception.
61
+     * @return void
62
+     */
63
+    public function render_for_console( $output, Throwable $e);
64 64
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @throws \Exception Throw the exception.
34 34
 	 */
35
-	public function report( Throwable $e);
35
+	public function report(Throwable $e);
36 36
 
37 37
 	/**
38 38
 	 * Determine if the exception should be reported.
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @param  \Throwable $e The throwable exception.
41 41
 	 * @return bool
42 42
 	 */
43
-	public function should_report( Throwable $e);
43
+	public function should_report(Throwable $e);
44 44
 
45 45
 	/**
46 46
 	 * Render an exception into an HTTP response.
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 *
52 52
 	 * @throws \Throwable Throw the error.
53 53
 	 */
54
-	public function render( $request, Throwable $e);
54
+	public function render($request, Throwable $e);
55 55
 
56 56
 	/**
57 57
 	 * Render an exception to the console.
@@ -60,5 +60,5 @@  discard block
 block discarded – undo
60 60
 	 * @param  \Throwable                                        $e The throwable exception.
61 61
 	 * @return void
62 62
 	 */
63
-	public function render_for_console( $output, Throwable $e);
63
+	public function render_for_console($output, Throwable $e);
64 64
 }
Please login to merge, or discard this patch.