Passed
Push — master ( cba042...21ee73 )
by Matthijs
05:57
created
app/Http/Controllers/Backend/InvoiceController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
             
31 31
             
32 32
             $datatables = \DataTables::of($invoice)
33
-            ->addColumn('price_with_tax', function ($order) {
33
+            ->addColumn('price_with_tax', function($order) {
34 34
                 $money = '€ '.$order->price_with_tax;
35 35
                 return $money;
36 36
             })
37
-            ->addColumn('action', function ($invoice) {
38
-                $deleteLink = \Form::deleteajax('/invoice/'. $invoice->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
37
+            ->addColumn('action', function($invoice) {
38
+                $deleteLink = \Form::deleteajax('/invoice/'.$invoice->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger'));
39 39
                 $download = '<a href="/invoice/'.$invoice->id.'/download" class="btn btn-default btn-sm btn-info"><i class="entypo-pencil"></i>Download</a>  ';
40 40
                 $links = '<a href="/invoice/'.$invoice->id.'" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Show</a>  '.$download;
41 41
             
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function store(Request $request)
72 72
     {
73
-        $result  = InvoiceService::create($request->all());
73
+        $result = InvoiceService::create($request->all());
74 74
 
75 75
         if (isset($result->id)) {
76 76
             Notification::success('The invoice was inserted.');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     public function update(Request $request, $invoiceId)
94 94
     {
95
-        $result  = InvoiceService::updateById($request->all(), $invoiceId);
95
+        $result = InvoiceService::updateById($request->all(), $invoiceId);
96 96
 
97 97
         if (isset($result->id)) {
98 98
             Notification::success('The invoice was updated.');
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function destroy($invoiceId)
107 107
     {
108
-        $result  = InvoiceService::destroy($invoiceId);
108
+        $result = InvoiceService::destroy($invoiceId);
109 109
 
110 110
         if ($result) {
111 111
             Notification::success('The invoice was deleted.');
Please login to merge, or discard this patch.