@@ -55,7 +55,7 @@ |
||
| 55 | 55 | { |
| 56 | 56 | if ($this->input('password')) { |
| 57 | 57 | $rules = ['password' => 'required|min:5|max:255', |
| 58 | - 'password_confirmation' => 'required|same:password', |
|
| 58 | + 'password_confirmation' => 'required|same:password', |
|
| 59 | 59 | ]; |
| 60 | 60 | if (!Auth::user()->isAdmin()) { |
| 61 | 61 | $rules['current_password'] = 'required|password:user_id'; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * Update a notifications status. |
| 46 | 46 | * |
| 47 | - * @return \Illuminate\Http\Response |
|
| 47 | + * @return \Illuminate\Http\JsonResponse |
|
| 48 | 48 | */ |
| 49 | 49 | public function update($id, $action) |
| 50 | 50 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Create a new notification |
| 57 | 57 | * |
| 58 | - * @return \Illuminate\Http\Response |
|
| 58 | + * @return \Illuminate\Http\JsonResponse |
|
| 59 | 59 | */ |
| 60 | 60 | public function create(Request $request) |
| 61 | 61 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param AdminOnlyRequest $request |
| 47 | 47 | * @param $user_id |
| 48 | 48 | * @param $port_id |
| 49 | - * @return mixed |
|
| 49 | + * @return \Illuminate\Http\RedirectResponse |
|
| 50 | 50 | */ |
| 51 | 51 | public function store(AdminOnlyRequest $request, $user_id) |
| 52 | 52 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param AdminOnlyRequest $request |
| 70 | 70 | * @param $user_id |
| 71 | 71 | * @param $port_id |
| 72 | - * @return mixed |
|
| 72 | + * @return \Illuminate\Http\RedirectResponse |
|
| 73 | 73 | */ |
| 74 | 74 | public function destroy(AdminOnlyRequest $request, $user_id, $port_id) |
| 75 | 75 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param AdminOnlyRequest $request |
| 47 | 47 | * @param $user_id |
| 48 | 48 | * @param $port_id |
| 49 | - * @return mixed |
|
| 49 | + * @return \Illuminate\Http\RedirectResponse |
|
| 50 | 50 | */ |
| 51 | 51 | public function store(AdminOnlyRequest $request, $user_id) |
| 52 | 52 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param AdminOnlyRequest $request |
| 70 | 70 | * @param $user_id |
| 71 | 71 | * @param $port_id |
| 72 | - * @return mixed |
|
| 72 | + * @return \Illuminate\Http\RedirectResponse |
|
| 73 | 73 | */ |
| 74 | 74 | public function destroy(AdminOnlyRequest $request, $user_id, $port_id) |
| 75 | 75 | { |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | * Currently, $key is unused |
| 189 | 189 | * |
| 190 | 190 | * @param string $key The path to check |
| 191 | - * @return string|false false or the source: config | auth |
|
| 191 | + * @return boolean false or the source: config | auth |
|
| 192 | 192 | */ |
| 193 | 193 | public function isReadOnly($key) |
| 194 | 194 | { |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | if (!$this->option('dry-run')) { |
| 72 | - Settings::flush(); // clear the settings cache |
|
| 72 | + Settings::flush(); // clear the settings cache |
|
| 73 | 73 | DbConfig::updateOrCreate(['config_name' => 'settings.migrated'], ['config_value' => true]); |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | // remove entries with missing indexes |
| 84 | 84 | $delete = array_diff_key($current, $new); |
| 85 | 85 | foreach ($delete as $index => $value) { |
| 86 | - Settings::forget($key . '.' . $index); |
|
| 86 | + Settings::forget($key.'.'.$index); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | Settings::set($key, $new); |
@@ -76,7 +76,8 @@ |
||
| 76 | 76 | if ($type == 'settings-value') { |
| 77 | 77 | Settings::set($key, Input::get('value')); |
| 78 | 78 | return response('OK', 200); |
| 79 | - } elseif ($type == 'settings-array') { |
|
| 79 | + } |
|
| 80 | + elseif ($type == 'settings-array') { |
|
| 80 | 81 | $new = Input::get('value'); |
| 81 | 82 | $current = Settings::get($key); |
| 82 | 83 | |