@@ -3,9 +3,6 @@ |
||
3 | 3 | namespace BB\Http\Controllers; |
4 | 4 | |
5 | 5 | use BB\Entities\DetectedDevice; |
6 | -use Illuminate\Http\Request; |
|
7 | - |
|
8 | -use BB\Http\Requests; |
|
9 | 6 | use BB\Http\Controllers\Controller; |
10 | 7 | |
11 | 8 | class DetectedDevicesController extends Controller |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace BB\Http\Controllers; |
4 | 4 | |
5 | 5 | use BB\Entities\ACSNode; |
6 | -use BB\Http\Requests; |
|
7 | 6 | |
8 | 7 | class DeviceController extends Controller |
9 | 8 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Illuminate\Contracts\Validation\UnauthorizedException; |
7 | 7 | use Illuminate\Http\Request; |
8 | 8 | use Auth; |
9 | -use BB\Http\Requests; |
|
10 | 9 | |
11 | 10 | |
12 | 11 | class NotificationController extends Controller |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php namespace BB\Http\Controllers; |
2 | 2 | |
3 | -use BB\Entities\Payment; |
|
4 | 3 | use BB\Entities\User; |
5 | 4 | use BB\Helpers\PayPalConfig; |
6 | 5 | use BB\Repo\PaymentRepository; |
@@ -5,8 +5,6 @@ |
||
5 | 5 | |
6 | 6 | use BB\Events\MemberPhotoWasDeclined; |
7 | 7 | use Illuminate\Contracts\Mail\Mailer; |
8 | -use Illuminate\Queue\InteractsWithQueue; |
|
9 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
10 | 8 | |
11 | 9 | class EmailMemberAboutDeclinedPhoto |
12 | 10 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use BB\Entities\EquipmentLog; |
4 | 4 | use BB\Exceptions\DeviceException; |
5 | -use BB\Exceptions\ValidationException; |
|
6 | 5 | use Carbon\Carbon; |
7 | 6 | |
8 | 7 | class EquipmentLogRepository extends DBRepository |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use BB\Entities\User; |
4 | 4 | use BB\Exceptions\InvalidDataException; |
5 | -use BB\Exceptions\NotImplementedException; |
|
6 | 5 | use BB\Repo\PaymentRepository; |
7 | 6 | use BB\Repo\UserRepository; |
8 | 7 |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | abstract class Event { |
4 | 4 | |
5 | - // |
|
5 | + // |
|
6 | 6 | |
7 | 7 | } |
@@ -9,43 +9,43 @@ discard block |
||
9 | 9 | |
10 | 10 | class Handler extends ExceptionHandler { |
11 | 11 | |
12 | - /** |
|
13 | - * A list of the exception types that should not be reported. |
|
14 | - * |
|
15 | - * @var array |
|
16 | - */ |
|
17 | - protected $dontReport = [ |
|
12 | + /** |
|
13 | + * A list of the exception types that should not be reported. |
|
14 | + * |
|
15 | + * @var array |
|
16 | + */ |
|
17 | + protected $dontReport = [ |
|
18 | 18 | HttpException::class, |
19 | 19 | NotFoundHttpException::class, |
20 | 20 | ModelNotFoundException::class, |
21 | 21 | MethodNotAllowedHttpException::class, |
22 | 22 | FormValidationException::class, |
23 | 23 | AuthenticationException::class, //These are logged separately below |
24 | - ]; |
|
24 | + ]; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Report or log an exception. |
|
28 | - * |
|
29 | - * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
|
30 | - * |
|
31 | - * @param \Exception $e |
|
32 | - * @return void |
|
33 | - */ |
|
34 | - public function report(Exception $e) |
|
35 | - { |
|
26 | + /** |
|
27 | + * Report or log an exception. |
|
28 | + * |
|
29 | + * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
|
30 | + * |
|
31 | + * @param \Exception $e |
|
32 | + * @return void |
|
33 | + */ |
|
34 | + public function report(Exception $e) |
|
35 | + { |
|
36 | 36 | //The parent will log exceptions that aren't of the types above |
37 | - parent::report($e); |
|
38 | - } |
|
37 | + parent::report($e); |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * Render an exception into an HTTP response. |
|
42 | - * |
|
43 | - * @param \Illuminate\Http\Request $request |
|
44 | - * @param \Exception $e |
|
45 | - * @return \Illuminate\Http\Response |
|
46 | - */ |
|
47 | - public function render($request, Exception $e) |
|
48 | - { |
|
40 | + /** |
|
41 | + * Render an exception into an HTTP response. |
|
42 | + * |
|
43 | + * @param \Illuminate\Http\Request $request |
|
44 | + * @param \Exception $e |
|
45 | + * @return \Illuminate\Http\Response |
|
46 | + */ |
|
47 | + public function render($request, Exception $e) |
|
48 | + { |
|
49 | 49 | if ($e instanceof FormValidationException) { |
50 | 50 | if ($request->wantsJson()) { |
51 | 51 | return \Response::json($e->getErrors(), 422); |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | return \Response::json(['error' => $e->getMessage()], $e->getStatusCode()); |
93 | 93 | } |
94 | 94 | } |
95 | - return parent::render($request, $e); |
|
96 | - } |
|
95 | + return parent::render($request, $e); |
|
96 | + } |
|
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Render an exception using Whoops. |