Skip to content

Commit

Permalink
Merge pull request #1204 from LaravelRUS/analysis-7a51PE
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
daaner authored Jun 23, 2020
2 parents 8303a5e + dfeceae commit e76d7fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit e76d7fd

Please sign in to comment.