Passed
Push — master ( 719ce4...56a1e9 )
by Thomas
08:09
created
app/Http/Controllers/Admin/InvoiceCrudController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         CRUD::setModel(Invoice::class);
30 30
         CRUD::setRoute(config('backpack.base.route_prefix').'/invoice');
31 31
         CRUD::setEntityNameStrings(__('invoice'), __('invoices'));
32
-        if (! config('invoicing.price_categories_enabled')) {
32
+        if (!config('invoicing.price_categories_enabled')) {
33 33
             $this->crud->addButtonFromView('top', 'createInvoice', 'createInvoice', 'start');
34 34
         }
35 35
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 'label'=> __('Date range'),
105 105
             ],
106 106
             false,
107
-            function ($value) { // if the filter is active, apply these constraints
107
+            function($value) { // if the filter is active, apply these constraints
108 108
                 $dates = json_decode($value, null, 512, JSON_THROW_ON_ERROR);
109 109
 
110 110
                 if ($dates->from) {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $invoice = Invoice::findOrFail($id)->load('payments');
149 149
 
150
-        if (! backpack_user()->can('enrollments.edit')) {
150
+        if (!backpack_user()->can('enrollments.edit')) {
151 151
             abort(403);
152 152
         }
153 153
 
Please login to merge, or discard this patch.