Completed
Pull Request — master (#24)
by Brandon
01:59
created
app/Http/Controllers/DashboardController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class DashboardController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/Notifications/InvoicePaid.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/ImageController.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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 6
 
8 7
 class ImageController extends Controller
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
     public function show($device_id)
27 27
     {
28 28
         $storagePath = storage_path('app/images/devices/');
29
-        $imagePath = glob($storagePath . $device_id . "*" . ".jpg");
29
+        $imagePath = glob($storagePath.$device_id."*".".jpg");
30 30
         
31 31
         if (!empty($imagePath))
32
-            $image = Image::make($imagePath[0]);
32
+            $image = Image::make($imagePath[ 0 ]);
33 33
         else
34 34
         {
35
-            $imagePath = public_path() . '/img/video_not_found.jpg';
35
+            $imagePath = public_path().'/img/video_not_found.jpg';
36 36
             $image = Image::make($imagePath);
37 37
         }
38 38
         
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function store($device_id, $binaryData)
50 50
     {
51
-        $storagePath = storage_path('app/images/devices/') . $device_id . '.jpg';
51
+        $storagePath = storage_path('app/images/devices/').$device_id.'.jpg';
52 52
         $image = Image::make($binaryData);
53 53
         $image->save($storagePath, 75);
54 54
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
         $storagePath = storage_path('app/images/devices/');
29 29
         $imagePath = glob($storagePath . $device_id . "*" . ".jpg");
30 30
         
31
-        if (!empty($imagePath))
32
-            $image = Image::make($imagePath[0]);
33
-        else
31
+        if (!empty($imagePath)) {
32
+                    $image = Image::make($imagePath[0]);
33
+        } else
34 34
         {
35 35
             $imagePath = public_path() . '/img/video_not_found.jpg';
36 36
             $image = Image::make($imagePath);
Please login to merge, or discard this patch.