src/Task/Archive/Extract.php 1 location
|
@@ 91-95 (lines=5) @@
|
| 88 |
|
*/ |
| 89 |
|
public function run() |
| 90 |
|
{ |
| 91 |
|
if (!file_exists($this->filename)) { |
| 92 |
|
$this->printTaskError("File {filename} does not exist", ['filename' => $this->filename]); |
| 93 |
|
|
| 94 |
|
return false; |
| 95 |
|
} |
| 96 |
|
if (!($mimetype = static::archiveType($this->filename))) { |
| 97 |
|
$this->printTaskError("Could not determine type of archive for {filename}", ['filename' => $this->filename]); |
| 98 |
|
|
src/Task/File/Replace.php 1 location
|
@@ 138-141 (lines=4) @@
|
| 135 |
|
*/ |
| 136 |
|
public function run() |
| 137 |
|
{ |
| 138 |
|
if (!file_exists($this->filename)) { |
| 139 |
|
$this->printTaskError('File {filename} does not exist', ['filename' => $this->filename]); |
| 140 |
|
return false; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
$text = file_get_contents($this->filename); |
| 144 |
|
if ($this->regex) { |