@@ -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 |
@@ -167,7 +167,7 @@ |
||
167 | 167 | } |
168 | 168 | }); |
169 | 169 | |
170 | - return (int) ($totalTime / 60); |
|
170 | + return (int)($totalTime / 60); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -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 |
@@ -43,7 +43,7 @@ discard block |
||
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 |
||
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() |
@@ -33,28 +33,28 @@ |
||
33 | 33 | { |
34 | 34 | |
35 | 35 | $schedule->command('bb:calculate-proposal-votes')->hourly() |
36 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/U6l211ROnnZR1vI'); } ); |
|
36 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/U6l211ROnnZR1vI'); } ); |
|
37 | 37 | |
38 | 38 | $schedule->command('bb:check-memberships')->dailyAt('06:00') |
39 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/76TWKkWBBpaIyOe'); } ); |
|
39 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/76TWKkWBBpaIyOe'); } ); |
|
40 | 40 | |
41 | 41 | $schedule->command('bb:fix-equipment-log')->hourly() |
42 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/nxi4SJkwZpIAkBv'); } ); |
|
42 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/nxi4SJkwZpIAkBv'); } ); |
|
43 | 43 | |
44 | 44 | $schedule->command('bb:calculate-equipment-fees')->dailyAt('02:00') |
45 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/tFdRdkUoqSa8X66'); } ); |
|
45 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/tFdRdkUoqSa8X66'); } ); |
|
46 | 46 | |
47 | 47 | $schedule->command('bb:update-balances')->dailyAt('03:00') |
48 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/TSmoQANsHU9jbtU'); } ); |
|
48 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/TSmoQANsHU9jbtU'); } ); |
|
49 | 49 | |
50 | 50 | $schedule->command('bb:create-todays-sub-charges')->dailyAt('01:00') |
51 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/wSIUR1E2wjVBzPg'); } ); |
|
51 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/wSIUR1E2wjVBzPg'); } ); |
|
52 | 52 | |
53 | 53 | $schedule->command('bb:bill-members')->dailyAt('01:30') |
54 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/nxAz59P6LXlu2P1'); } ); |
|
54 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/nxAz59P6LXlu2P1'); } ); |
|
55 | 55 | |
56 | 56 | $schedule->command('device:check-online')->everyTenMinutes() |
57 | - ->then( function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/WU4zql7LwZs1CzT'); } ); |
|
57 | + ->then(function () { $this->pingIfProduction('http://beats.envoyer.io/heartbeat/WU4zql7LwZs1CzT'); } ); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | protected function pingIfProduction($url) |
@@ -46,7 +46,7 @@ |
||
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 |