Test Failed
Pull Request — dev (#194)
by Alexey
07:42
created
app/Http/Controllers/Backend/CampaignController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function show(Campaign $campaign)
91 91
     {
92
-        if (! $campaign->can_edit) {
92
+        if (!$campaign->can_edit) {
93 93
             // Only Super admin can access himself
94 94
             abort(403);
95 95
         }
@@ -201,6 +201,6 @@  discard block
 block discarded – undo
201 201
     public function activeToggle(Campaign $campaign)
202 202
     {
203 203
         $this->authorize('edit campaigns');
204
-        $campaign->update(['active' => ! $campaign->active]);
204
+        $campaign->update(['active' => !$campaign->active]);
205 205
     }
206 206
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/ConfigurationController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 use Illuminate\Http\Request;
7 7
 use App\Model\ConfigurationPageAdmin;
8 8
 
9
-class ConfigurationController extends Controller{
9
+class ConfigurationController extends Controller {
10 10
    
11
-    public function show(){        
11
+    public function show() {        
12 12
         return view('admin.configuration', ConfigurationPageAdmin::getConfigurations());  
13 13
     }
14 14
 	
15 15
 	
16
-    public function store(Request $request){        
16
+    public function store(Request $request) {        
17 17
         ConfigurationPageAdmin::createOrUpdateConfigurations($request);
18 18
         return redirect('/doika/show-configurations');
19 19
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/DevController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@
 block discarded – undo
7 7
 class DevController extends Controller
8 8
 {
9 9
     
10
-    public function getListPage(){
10
+    public function getListPage() {
11 11
         
12 12
         return view('backend.list');    
13 13
 	
14 14
     }
15 15
 	
16
-    public function getCampaignPage(){
16
+    public function getCampaignPage() {
17 17
         
18 18
         return view('backend.campaign');    
19 19
     
20 20
     }
21 21
 	
22
-    public function getConfigurationPage(){
22
+    public function getConfigurationPage() {
23 23
         
24 24
         return view('backend.configuration');    
25 25
     
26 26
     }
27 27
 	
28
-    public function getCreatePage(){
28
+    public function getCreatePage() {
29 29
         
30 30
         return view('backend.create');    
31 31
     
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/AjaxController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $uploadedImage = $request->file('upload');
112 112
 
113 113
         // Resize image below 600px width if needed
114
-        $image = Image::make($uploadedImage->openFile())->widen(600, function ($constraint) {
114
+        $image = Image::make($uploadedImage->openFile())->widen(600, function($constraint) {
115 115
             $constraint->upsize();
116 116
         });
117 117
 
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/PaymentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function show(Payment $payment)
91 91
     {
92
-        if (! $payment->can_edit) {
92
+        if (!$payment->can_edit) {
93 93
             // Only Super admin can access himself
94 94
             abort(403);
95 95
         }
@@ -201,6 +201,6 @@  discard block
 block discarded – undo
201 201
     public function activeToggle(Payment $payment)
202 202
     {
203 203
         $this->authorize('edit payments');
204
-        $payment->update(['active' => ! $payment->active]);
204
+        $payment->update(['active' => !$payment->active]);
205 205
     }
206 206
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/FormSettingController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {
56 56
         $formTypes = collect(config('forms'));
57 57
 
58
-        $formTypes->transform(function ($item) {
58
+        $formTypes->transform(function($item) {
59 59
             return __($item['display_name']);
60 60
         });
61 61
 
Please login to merge, or discard this patch.
app/Http/Requests/UpdateMetaRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         /** @var Meta $meta */
28 28
         $meta = $this->route('meta');
29 29
 
30
-        if (! $meta->metable_type) {
30
+        if (!$meta->metable_type) {
31 31
             return [
32 32
                 'route' => "required|unique:metas,route,{$meta->id}",
33 33
             ];
Please login to merge, or discard this patch.
app/Http/Middleware/ReadOnly.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     private function isReadOnly($request)
40 40
     {
41 41
         // Only Http Verbs different than GET are concerned
42
-        if (! config('app.read_only') || 'GET' === $request->method()) {
42
+        if (!config('app.read_only') || 'GET' === $request->method()) {
43 43
             return false;
44 44
         }
45 45
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return false;
51 51
         }
52 52
 
53
-        return ! $this->inExceptArray($request);
53
+        return !$this->inExceptArray($request);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
app/Utils/RequestSearchQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         }
54 54
 
55 55
         if ($search = $this->request->get('search')) {
56
-            $this->query->where(function (Builder $query) use ($model, $searchables, $search) {
56
+            $this->query->where(function(Builder $query) use ($model, $searchables, $search) {
57 57
                 foreach ($searchables as $key => $searchableColumn) {
58 58
                     $query->orWhere(
59 59
                         $this->getLocalizedColumn($model, $searchableColumn), 'like', "%{$search}%"
Please login to merge, or discard this patch.