@@ -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 |
@@ -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 |
@@ -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 |