@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @param $branch |
|
82 | + * @param string|null $branch |
|
83 | 83 | */ |
84 | 84 | protected function replaceEnvConfig($branch) |
85 | 85 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | { |
86 | 86 | $envFilePath = base_path() . '/.env'; |
87 | 87 | |
88 | - $rebuildFunction = function ($data) use ($branch) { |
|
88 | + $rebuildFunction = function($data) use ($branch) { |
|
89 | 89 | if (stristr($data, 'DB_TABLE_EVENTSTORE')) { |
90 | 90 | return "DB_TABLE_EVENTSTORE={$branch}\n"; |
91 | 91 | } |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | return $data; |
94 | 94 | }; |
95 | 95 | |
96 | - $contentArray = array_map($rebuildFunction,file($envFilePath)); |
|
96 | + $contentArray = array_map($rebuildFunction, file($envFilePath)); |
|
97 | 97 | |
98 | - file_put_contents($envFilePath, implode('',$contentArray)); |
|
98 | + file_put_contents($envFilePath, implode('', $contentArray)); |
|
99 | 99 | } |
100 | 100 | } |