diff --git a/app/Http/Controllers/Admin/ServersController.php b/app/Http/Controllers/Admin/ServersController.php index 2efd1f876..6b1808516 100644 --- a/app/Http/Controllers/Admin/ServersController.php +++ b/app/Http/Controllers/Admin/ServersController.php @@ -213,7 +213,7 @@ class ServersController extends Controller return view('admin.servers.view.database', [ 'hosts' => Models\DatabaseServer::all(), - 'server' => $server + 'server' => $server, ]); } @@ -493,7 +493,7 @@ class ServersController extends Controller $repo->updateStartup($id, $request->except('_token'), true); Alert::success('Startup variables were successfully modified and assigned for this server.')->flash(); - } catch(DisplayException $ex) { + } catch (DisplayException $ex) { Alert::danger($ex->getMessage())->flash(); } catch (TransferException $ex) { Log::warning($ex); @@ -522,7 +522,7 @@ class ServersController extends Controller Alert::success('A new database was assigned to this server successfully.')->flash(); } catch (DisplayValidationException $ex) { return redirect()->route('admin.servers.view.database', $id)->withInput()->withErrors(json_decode($ex->getMessage()))->withInput(); - } catch(DisplayException $ex) { + } catch (DisplayException $ex) { Alert::danger($ex->getMessage())->flash(); } catch (\Exception $ex) { Log::error($ex); diff --git a/app/Repositories/DatabaseRepository.php b/app/Repositories/DatabaseRepository.php index 4fd01c240..b0d85b60f 100644 --- a/app/Repositories/DatabaseRepository.php +++ b/app/Repositories/DatabaseRepository.php @@ -114,7 +114,8 @@ class DatabaseRepository DB::connection('dynamic')->statement(sprintf('DROP DATABASE IF EXISTS `%s`', $database->database)); DB::connection('dynamic')->statement(sprintf('DROP USER IF EXISTS `%s`@`%s`', $database->username, $database->remote)); DB::connection('dynamic')->statement('FLUSH PRIVILEGES'); - } catch (\Exception $ex) {} + } catch (\Exception $ex) { + } DB::rollBack(); throw $ex; diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index d911140a6..0e4e0f099 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -624,7 +624,7 @@ class ServerRepository } if ($server->option->variables) { - foreach($server->option->variables as &$variable) { + foreach ($server->option->variables as &$variable) { $set = isset($data['env_' . $variable->id]); // Variable is required but was not passed into the function.