Passed
Push — master ( 2db616...058151 )
by Thomas
07:55 queued 12s
created
app/Http/Controllers/Admin/ScheduledPaymentCrudController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function setup()
30 30
     {
31 31
         CRUD::setModel(\App\Models\ScheduledPayment::class);
32
-        CRUD::setRoute(config('backpack.base.route_prefix') . '/scheduled-payment');
32
+        CRUD::setRoute(config('backpack.base.route_prefix').'/scheduled-payment');
33 33
         CRUD::setEntityNameStrings(__('scheduled payment'), __('scheduled payments'));
34 34
         CRUD::enableExportButtons();
35 35
     }
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
             'attribute' => 'lastname',
49 49
             'label' => __('Last Name'),
50 50
             'type' => 'relationship',
51
-            'searchLogic' => function ($query, $column, $searchTerm) {
52
-                $query->orWhereHas('enrollment', function ($q) use ($searchTerm) {
53
-                    $q->whereHas('user', function ($q) use ($searchTerm) {
51
+            'searchLogic' => function($query, $column, $searchTerm) {
52
+                $query->orWhereHas('enrollment', function($q) use ($searchTerm) {
53
+                    $q->whereHas('user', function($q) use ($searchTerm) {
54 54
                         $q->where('lastname', 'like', '%'.$searchTerm.'%');
55 55
                     });
56 56
                 });
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
             'attribute' => 'firstname',
64 64
             'label' => __('First Name'),
65 65
             'type' => 'relationship',
66
-            'searchLogic' => function ($query, $column, $searchTerm) {
67
-                $query->orWhereHas('enrollment', function ($q) use ($searchTerm) {
68
-                    $q->whereHas('user', function ($q) use ($searchTerm) {
66
+            'searchLogic' => function($query, $column, $searchTerm) {
67
+                $query->orWhereHas('enrollment', function($q) use ($searchTerm) {
68
+                    $q->whereHas('user', function($q) use ($searchTerm) {
69 69
                         $q->where('firstname', 'like', '%'.$searchTerm.'%');
70 70
                     });
71 71
                 });
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
             'attribute' => 'email',
80 80
             'label' => __('Email'),
81 81
             'type' => 'relationship',
82
-            'searchLogic' => function ($query, $column, $searchTerm) {
83
-                $query->orWhereHas('enrollment', function ($q) use ($searchTerm) {
84
-                    $q->whereHas('user', function ($q) use ($searchTerm) {
82
+            'searchLogic' => function($query, $column, $searchTerm) {
83
+                $query->orWhereHas('enrollment', function($q) use ($searchTerm) {
84
+                    $q->whereHas('user', function($q) use ($searchTerm) {
85 85
                         $q->where('email', 'like', '%'.$searchTerm.'%');
86 86
                     });
87 87
                 });
Please login to merge, or discard this patch.
app/Models/ScheduledPayment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
     {
97 97
         if (config('app.currency_position') === 'before')
98 98
         {
99
-            return config('app.currency_symbol') . " ". $this->value;
99
+            return config('app.currency_symbol')." ".$this->value;
100 100
         }
101 101
 
102
-        return $this->value . " " . config('app.currency_symbol');
102
+        return $this->value." ".config('app.currency_symbol');
103 103
     }
104 104
 
105 105
     function getDateForHumansAttribute()
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
     public function identifiableAttribute()
127 127
     {
128
-        return $this->date . " (" . $this->value_with_currency . ")";
128
+        return $this->date." (".$this->value_with_currency.")";
129 129
     }
130 130
 
131 131
     /*
Please login to merge, or discard this patch.