Completed
Pull Request — master (#237)
by
unknown
04:56 queued 02:55
created
app/Http/Controllers/DetectedDevicesController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,9 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/DeviceController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/Http/Controllers/NotificationController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/PaypalIPNController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Listeners/EmailMemberAboutDeclinedPhoto.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/Repo/EquipmentLogRepository.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
             }
168 168
         });
169 169
 
170
-        return (int) ($totalTime / 60);
170
+        return (int)($totalTime / 60);
171 171
     }
172 172
 
173 173
     /**
Please login to merge, or discard this patch.
app/Services/Credit.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function recalculate()
45 45
     {
46
-        if (! $this->user instanceof User) {
46
+        if ( ! $this->user instanceof User) {
47 47
             throw new InvalidDataException("User not set");
48 48
         }
49 49
         $runningTotal = 0;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function getBalanceSign()
98 98
     {
99
-        return ( (int) $this->getBalance() >= 0 ? 'positive' : 'negative' );
99
+        return ((int)$this->getBalance() >= 0 ? 'positive' : 'negative');
100 100
     }
101 101
 
102 102
     public function getBalanceFormatted()
Please login to merge, or discard this patch.
app/Entities/ACSNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function heartbeatWarning()
47 47
     {
48 48
         //If the last heartbeat was more than an hour ago there is an issue
49
-        if ( $this->monitor_heartbeat && ($this->last_heartbeat < Carbon::now()->subHour())) {
49
+        if ($this->monitor_heartbeat && ($this->last_heartbeat < Carbon::now()->subHour())) {
50 50
             return true;
51 51
         }
52 52
 
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         ModelNotFoundException::class,
21 21
         MethodNotAllowedHttpException::class,
22 22
         FormValidationException::class,
23
-        AuthenticationException::class,         //These are logged separately below
23
+        AuthenticationException::class, //These are logged separately below
24 24
 	];
25 25
 
26 26
 	/**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         if ($e instanceof NotImplementedException) {
66
-            \Notification::error("NotImplementedException: ".$e->getMessage());
66
+            \Notification::error("NotImplementedException: " . $e->getMessage());
67 67
             \Log::warning($e);
68 68
             return redirect()->back()->withInput();
69 69
         }
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
             if ($request->wantsJson()) {
73 73
                 return \Response::json(['error' => $e->getMessage()], 403);
74 74
             }
75
-            $userString = \Auth::guest() ? "A guest": \Auth::user()->name;
76
-            \Log::warning($userString." tried to access something they weren't supposed to.");
75
+            $userString = \Auth::guest() ? "A guest" : \Auth::user()->name;
76
+            \Log::warning($userString . " tried to access something they weren't supposed to.");
77 77
 
78 78
             return \Response::view('errors.403', [], 403);
79 79
         }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $e = new HttpException(404, $e->getMessage());
83 83
         }
84 84
 
85
-        if (config('app.debug') && $this->shouldReport($e) && !$request->wantsJson())
85
+        if (config('app.debug') && $this->shouldReport($e) && ! $request->wantsJson())
86 86
         {
87 87
             return $this->renderExceptionWithWhoops($e);
88 88
         }
Please login to merge, or discard this patch.