Completed
Push — master ( b5d17f...c9efec )
by Jeremy
32:20 queued 25:57
created
app/Services/SoundServices.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     public static function storeNewSound($soundData)
79 79
     {
80 80
         $lastSound = collect(Sound::sortedSounds()->get())->last();
81
-        $sort_order = ['sort_order' => $lastSound->sort_order + 1];
81
+        $sort_order = [ 'sort_order' => $lastSound->sort_order + 1 ];
82 82
         $newSound = Sound::create(array_merge($soundData, $sort_order));
83 83
 
84 84
         return $newSound;
Please login to merge, or discard this patch.
app/Http/Controllers/SoundsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $sound = SoundServices::getBlankSound();
48 48
 
49
-        return view('pages.sounds.create', ['sound' => $sound]);
49
+        return view('pages.sounds.create', [ 'sound' => $sound ]);
50 50
     }
51 51
 
52 52
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $sound = SoundServices::getSound($id);
79 79
 
80
-        return view('pages.sounds.show', ['sound' => $sound]);
80
+        return view('pages.sounds.show', [ 'sound' => $sound ]);
81 81
     }
82 82
 
83 83
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $sound = SoundServices::getSound($id);
93 93
 
94
-        return view('pages.sounds.edit', ['sound' => $sound]);
94
+        return view('pages.sounds.edit', [ 'sound' => $sound ]);
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
app/Services/UserServices.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public static function checkIsUserAdminOrHigher($userId)
27 27
     {
28 28
         $user = self::getUser($userId);
29
-        if (!$user->hasRole(['admin', 'super.admin'])) {
29
+        if (!$user->hasRole([ 'admin', 'super.admin' ])) {
30 30
             abort(401);
31 31
         }
32 32
     }
Please login to merge, or discard this patch.
app/Providers/TelescopeServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $this->hideSensitiveRequestDetails();
22 22
 
23
-        Telescope::filter(function (IncomingEntry $entry) {
23
+        Telescope::filter(function(IncomingEntry $entry) {
24 24
             if ($this->app->isLocal()) {
25 25
                 return true;
26 26
             }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             return;
44 44
         }
45 45
 
46
-        Telescope::hideRequestParameters(['_token']);
46
+        Telescope::hideRequestParameters([ '_token' ]);
47 47
 
48 48
         Telescope::hideRequestHeaders([
49 49
             'cookie',
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected function gate()
63 63
     {
64
-        Gate::define('viewTelescope', function ($user) {
64
+        Gate::define('viewTelescope', function($user) {
65 65
             return in_array($user->email, [
66 66
                 //
67 67
             ]);
Please login to merge, or discard this patch.
app/Http/Controllers/Api/ApiSoundsController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
         foreach ($sounds as $sound) {
49 49
             $id = $sound->id;
50 50
             foreach ($request->sounds as $soundsNew) {
51
-                if ($soundsNew['id'] == $id) {
52
-                    $sound->update(['sort_order' => $soundsNew['sort_order']]);
51
+                if ($soundsNew[ 'id' ] == $id) {
52
+                    $sound->update([ 'sort_order' => $soundsNew[ 'sort_order' ] ]);
53 53
                 }
54 54
             }
55 55
         }
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
         $this->validate($request, [
77 77
             'sound.enabled' => 'required|boolean',
78 78
         ]);
79
-        $sound = SoundServices::updateSoundStatus($id, $request->sound['enabled']);
79
+        $sound = SoundServices::updateSoundStatus($id, $request->sound[ 'enabled' ]);
80 80
         $status = 'disabled';
81 81
         if ($sound->enabled) {
82 82
             $status = 'enabled';
83 83
         }
84
-        $message = trans('admin.messages.status-updated', ['status' => $status, 'title' => $sound->title]);
84
+        $message = trans('admin.messages.status-updated', [ 'status' => $status, 'title' => $sound->title ]);
85 85
 
86 86
         ActivityLogger::activity($message);
87 87
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         ActivityLogger::activity('Sounds deleted: '.$sound);
108 108
 
109 109
         return response()->json([
110
-            'message' => trans('admin.messages.sound-deleted', ['title' => $sound->title]),
110
+            'message' => trans('admin.messages.sound-deleted', [ 'title' => $sound->title ]),
111 111
         ], 200);
112 112
     }
113 113
 
Please login to merge, or discard this patch.