@@ -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 |
@@ -35,7 +35,8 @@ |
||
35 | 35 | * @param string $hash |
36 | 36 | * @return Notification |
37 | 37 | */ |
38 | - public static function logNew($userId, $message, $type, $hash) { |
|
38 | + public static function logNew($userId, $message, $type, $hash) |
|
39 | + { |
|
39 | 40 | $existingNotifications = Notification::where('user_id', $userId)->where('hash', $hash)->first(); |
40 | 41 | if ($existingNotifications) { |
41 | 42 | return $existingNotifications; |
@@ -18,7 +18,8 @@ |
||
18 | 18 | return $this->belongsToMany('\BB\Entities\User')->withTimestamps(); |
19 | 19 | } |
20 | 20 | |
21 | - public static function findByName($name) { |
|
21 | + public static function findByName($name) |
|
22 | + { |
|
22 | 23 | $role = self::where('name', $name)->first(); |
23 | 24 | if ($role) { |
24 | 25 | return $role; |