Skip to content

Commit

Permalink
Fix linting issues with updated phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed May 16, 2017
1 parent 933e305 commit bd88ec5
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function render($request, Exception $e)

// If request asks for JSON then we return the error as JSON
if ($request->ajax() || $request->wantsJson()) {

$statusCode = 500;
$headers = [];

Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/ValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ValidationException extends UnprocessableEntityHttpException
* @param \Exception $previous The previous exception
* @param int $code The internal exception code
*/
public function __construct($message = null, \Exception $previous = null, Array $errors = null)
public function __construct($message = null, \Exception $previous = null, array $errors = null)
{
$this->errors = $errors ?: [];

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/RESTController.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ protected function executeUsecase()
* @throws HTTP_Exception_500
* @return void
*/
protected function prepResponse(Array $responsePayload = null, Request $request)
protected function prepResponse(array $responsePayload = null, Request $request)
{
// Add CORS headers to the response
// $this->add_cors_headers($this->response);
Expand Down
1 change: 0 additions & 1 deletion app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@ public function boot()
'migrate' => 'Access migrate',
'webhooks' => 'Access webhooks'
]);

}
}
1 change: 0 additions & 1 deletion config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@
'exposedHeaders' => [],
'maxAge' => 0,
];

1 change: 0 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@
$app->delete('/{locale:[A-Za-z_]+}[/]', 'TranslationsController@destroy');
});
});

});
});

Expand Down

0 comments on commit bd88ec5

Please sign in to comment.