Passed
Push — master ( 0bc63b...6745ba )
by Matthijs
27:48 queued 20:46
created
app/Http/Controllers/Backend/NewsImageController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
             
30 30
             $datatables = Datatables::of($image)
31 31
 
32
-            ->addColumn('thumb', function ($image) {
32
+            ->addColumn('thumb', function($image) {
33 33
                 return '<img src="/files/news/100x100/'.$image->news_id.'/'.$image->file.'"  />';
34 34
             })
35
-            ->addColumn('action', function ($image) use ($newsId) {
35
+            ->addColumn('action', function($image) use ($newsId) {
36 36
                 $deleteLink = Form::deleteajax(url()->route('news-images.destroy', array('newsId' => $newsId, 'id' => $image->id)), 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
37 37
                 $links = '<a href="'.url()->route('news-images.edit', array('newsId' => $newsId, 'id' => $image->id)).'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
38 38
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function store(Request $request, $newsId)
55 55
     {
56
-        $result  = NewsService::createImage($request->all(), $newsId);
56
+        $result = NewsService::createImage($request->all(), $newsId);
57 57
         return NewsService::notificationRedirect(array('news-images.index', $newsId), $result, 'The news image was inserted.');
58 58
     }
59 59
 
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function update(Request $request, $newsId, $newsImageId)
67 67
     {
68
-        $result  = NewsService::updateImageById($request->all(), $newsId, $newsImageId);
68
+        $result = NewsService::updateImageById($request->all(), $newsId, $newsImageId);
69 69
         return NewsService::notificationRedirect(array('news-images.index', $newsId), $result, 'The news image was updated.');
70 70
     }
71 71
 
72 72
     public function destroy($newsId, $newsImageId)
73 73
     {
74
-        $result  = NewsService::destroyImage($newsImageId);
74
+        $result = NewsService::destroyImage($newsImageId);
75 75
 
76 76
         if ($result) {
77 77
             Notification::success('The file was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ContentImageController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
             
32 32
             $datatables = Datatables::of($image)
33 33
 
34
-            ->addColumn('thumb', function ($image) {
34
+            ->addColumn('thumb', function($image) {
35 35
                 return '<img src="/files/content/100x100/'.$image->content_id.'/'.$image->file.'"  />';
36 36
             })
37
-            ->addColumn('action', function ($image) use ($contentId) {
38
-                $deleteLink = Form::deleteajax('/admin/content/'.$contentId.'/images/'. $image->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
37
+            ->addColumn('action', function($image) use ($contentId) {
38
+                $deleteLink = Form::deleteajax('/admin/content/'.$contentId.'/images/'.$image->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
39 39
                 $links = '<a href="/admin/content/'.$contentId.'/images/'.$image->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
40 40
 
41 41
                 return $links;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function store(Request $request, $contentId)
57 57
     {
58
-        $result  = ContentService::createImage($request->all(), $contentId);
58
+        $result = ContentService::createImage($request->all(), $contentId);
59 59
         return ContentService::notificationRedirect(array('content.{contentId}.images.index', $contentId), $result, 'The content image was inserted.');
60 60
     }
61 61
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function update(Request $request, $contentId, $contentImageId)
69 69
     {
70
-        $result  = ContentService::updateImageById($request->all(), $contentId, $contentImageId);
70
+        $result = ContentService::updateImageById($request->all(), $contentId, $contentImageId);
71 71
         return ContentService::notificationRedirect(array('content.{contentId}.images.index', $contentId), $result, 'The content image was updated.');
72 72
     }
73 73
 
74 74
     public function destroy($contentId, $contentImageId)
75 75
     {
76
-        $result  = ContentService::destroyImage($contentImageId);
76
+        $result = ContentService::destroyImage($contentImageId);
77 77
 
78 78
         if ($result) {
79 79
             Notification::success('The file was deleted.');
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ErrorController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
             $query = $this->error->getModel()->select(
23 23
                 [
24 24
                 'id',
25
-                'class', 'file' , 'status_code', 'line', 'message', 'url', 'method']
25
+                'class', 'file', 'status_code', 'line', 'message', 'url', 'method']
26 26
             );
27 27
             
28
-            $datatables = \Datatables::of($query)->addColumn('action', function ($query) {
29
-                $deleteLink = \Form::deleteajax('/admin/general-setting/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
28
+            $datatables = \Datatables::of($query)->addColumn('action', function($query) {
29
+                $deleteLink = \Form::deleteajax('/admin/general-setting/'.$query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
30 30
                 $links = '<a href="/admin/general-setting/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a>  '.$deleteLink;
31 31
             
32 32
                 return $links;
Please login to merge, or discard this patch.