@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 |
||
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 | ]); |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | foreach ($sounds as $sound) { |
52 | 52 | $id = $sound->id; |
53 | 53 | foreach ($request->sounds as $soundsNew) { |
54 | - if ($soundsNew['id'] == $id) { |
|
55 | - $sound->update(['sort_order' => $soundsNew['sort_order']]); |
|
54 | + if ($soundsNew[ 'id' ] == $id) { |
|
55 | + $sound->update([ 'sort_order' => $soundsNew[ 'sort_order' ] ]); |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | } |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | $this->validate($request, [ |
80 | 80 | 'sound.enabled' => 'required|boolean', |
81 | 81 | ]); |
82 | - $sound = SoundServices::updateSoundStatus($id, $request->sound['enabled']); |
|
82 | + $sound = SoundServices::updateSoundStatus($id, $request->sound[ 'enabled' ]); |
|
83 | 83 | $status = 'disabled'; |
84 | 84 | if ($sound->enabled) { |
85 | 85 | $status = 'enabled'; |
86 | 86 | } |
87 | - $message = trans('admin.messages.status-updated', ['status' => $status, 'title' => $sound->title]); |
|
87 | + $message = trans('admin.messages.status-updated', [ 'status' => $status, 'title' => $sound->title ]); |
|
88 | 88 | |
89 | 89 | ActivityLogger::activity($message); |
90 | 90 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | ActivityLogger::activity('Sounds deleted: '.$sound); |
111 | 111 | |
112 | 112 | return response()->json([ |
113 | - 'message' => trans('admin.messages.sound-deleted', ['title' => $sound->title]), |
|
113 | + 'message' => trans('admin.messages.sound-deleted', [ 'title' => $sound->title ]), |
|
114 | 114 | ], 200); |
115 | 115 | } |
116 | 116 | |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | |
128 | 128 | $file = $request->file('audio_data'); |
129 | 129 | |
130 | - if($request->hasFile('audio_data') && $file->isValid()){ |
|
131 | - $uniqueid=uniqid(); |
|
130 | + if ($request->hasFile('audio_data') && $file->isValid()) { |
|
131 | + $uniqueid = uniqid(); |
|
132 | 132 | $original_name = $file->getClientOriginalName(); |
133 | 133 | $extension = 'wav'; |
134 | 134 | $name = $original_name.'.'.$extension; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $storedFile = $file->storeAs('recordings', $name, 'sound-files'); |
147 | 147 | |
148 | 148 | return response()->json([ |
149 | - 'message' => 'File Recorded: ' . $name, |
|
149 | + 'message' => 'File Recorded: '.$name, |
|
150 | 150 | ], 202); |
151 | 151 | } |
152 | 152 |