From dfeceae5d6b179b9922a8217de9192f24c1b4fc3 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 23 Jun 2020 12:00:13 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Http/Controllers/AdminController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Http/Controllers/AdminController.php b/src/Http/Controllers/AdminController.php index 1b1770268..ded070185 100644 --- a/src/Http/Controllers/AdminController.php +++ b/src/Http/Controllers/AdminController.php @@ -214,7 +214,6 @@ public function postEnvEditor(Request $request) $requestContent->forget($key); } - foreach ($removeContent as $key => $value) { if ($this->validatePolicy('delete', $key)) { $this->writeEnvData($key); @@ -265,7 +264,6 @@ public function writeEnvData($key, $data = null, $new = null) return false; } - if (is_null($new)) { $str = preg_replace("/$key=.*/m", "$key=$data", $str); file_put_contents($envFile, $str);