@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | - |
|
| 7 | 5 | class HomeController extends Controller |
| 8 | 6 | { |
| 9 | 7 | /** |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | 6 | use Illuminate\Notifications\Notification; |
| 7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 8 | 7 | use Illuminate\Notifications\Messages\NexmoMessage; |
| 9 | 8 | |
| 10 | 9 | class InvoicePaid extends Notification |
@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use Intervention\Image\Facades\Image as Image; |
| 7 | -use Illuminate\Support\Facades\Cache; |
|
| 8 | 6 | use Illuminate\Support\Facades\Storage; |
| 9 | 7 | |
| 10 | 8 | class ImageController extends Controller |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | if (Storage::disk('private')->exists('deviceimage/'.$device_id)) { |
| 31 | 31 | $image = Image::make(Storage::disk('private')->get('deviceimage/'.$device_id)); |
| 32 | 32 | } else { |
| 33 | - $image = Image::make(public_path() . '/img/video_not_found.jpg'); |
|
| 33 | + $image = Image::make(public_path().'/img/video_not_found.jpg'); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | return $image->response(); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function store($device_id, $binaryData) |
| 47 | 47 | { |
| 48 | - $storagePath = storage_path('app/private/deviceimage/') . $device_id; |
|
| 48 | + $storagePath = storage_path('app/private/deviceimage/').$device_id; |
|
| 49 | 49 | $image = Image::make($binaryData); |
| 50 | 50 | $image->save($storagePath, 75); |
| 51 | 51 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | 6 | use Illuminate\Notifications\Notification; |
| 7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 8 | 7 | use Illuminate\Notifications\Messages\NexmoMessage; |
| 9 | 8 | |
| 10 | 9 | class DeviceRegister extends Notification |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use App\Http\Requests\EditDevice; |
| 6 | -use Validator; |
|
| 7 | 6 | use Illuminate\Http\Request; |
| 8 | 7 | use App\DataTables\DevicesDataTable; |
| 9 | -use Illuminate\Support\Facades\Route; |
|
| 10 | 8 | use App\Device; |
| 11 | 9 | use App\Site; |
| 12 | 10 | use App\Location; |
@@ -2,11 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Validator; |
|
| 6 | -use Illuminate\Http\Request; |
|
| 7 | 5 | use App\Http\Controllers\Controller; |
| 8 | 6 | use App\DataTables\ActivityLogDataTable; |
| 9 | -use App\User; |
|
| 10 | 7 | |
| 11 | 8 | class ActivityLogController extends Controller |
| 12 | 9 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @var array |
| 26 | 26 | */ |
| 27 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
| 27 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * The attributes to log in the Activity Log |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | return datatables($query) |
| 19 | 19 | ->addColumn('action', 'device.action') |
| 20 | - ->blacklist([ 'action']) |
|
| 20 | + ->blacklist([ 'action' ]) |
|
| 21 | 21 | ->setRowClass(function($device) { |
| 22 | 22 | return $device->trashed() ? 'alert-danger' : ""; |
| 23 | 23 | }); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $hidden = ['token']; |
|
| 32 | + protected $hidden = [ 'token' ]; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * The attributes that are mass assignable. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @var array |
| 50 | 50 | */ |
| 51 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
| 51 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * The attributes to log in the Activity Log |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | else |
| 150 | 150 | $time = new Carbon($value, 'UTC'); |
| 151 | 151 | |
| 152 | - $this->attributes['open_time'] = $time; |
|
| 152 | + $this->attributes[ 'open_time' ] = $time; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | else |
| 172 | 172 | $time = new Carbon($value, 'UTC'); |
| 173 | 173 | |
| 174 | - $this->attributes['close_time'] = $time; |
|
| 174 | + $this->attributes[ 'close_time' ] = $time; |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |