src/Check/FileCheck.php 1 location
|
@@ 56-61 (lines=6) @@
|
| 53 |
|
return $result; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
if (array_key_exists('writable', $this->options)) { |
| 57 |
|
if (!is_writable($this->filename)) { |
| 58 |
|
$result->setSuccess(false); |
| 59 |
|
$result->setError("$this->filename is not writable!"); |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
return $result; |
| 64 |
|
} |
src/Check/LogfileCheck.php 1 location
|
@@ 109-113 (lines=5) @@
|
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
if (null !== $this->writable && !is_writable($this->filename)) { |
| 110 |
|
$result->setSuccess(false); |
| 111 |
|
$result->setError($this->filename." is not writable!"); |
| 112 |
|
return $result; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
if (null !== $this->unwantedRegex) { |
| 116 |
|
$fp = fopen($this->filename, 'r'); |