Lines Matching full:if
31 if (!$this->isWritable) throw new IndexLockException();
33 if (!str_ends_with($value, "\n")) {
39 if (!$fh) {
46 if ($ih) {
52 // if wanted line is beyond the current line count, insert empty lines inbetween
53 if ($rid > $ln) {
61 if ($conf['fperm']) {
70 if (!file_exists($this->filename)) {
74 if (!$fh) {
79 if (++$ln == $rid) {
96 if (!file_exists($this->filename)) {
100 if (!$fh) {
105 if (++$ln === $next) {
108 if ($next === false) break;
129 if (file_exists($this->filename)) {
131 if (!$fh) {
136 if (isset($values[$line])) {
145 if (!$this->isWritable) return $result;
147 // if there are still values, they have not been found and will be appended
149 if (!file_put_contents($this->filename, "$value\n", FILE_APPEND)) {
163 if (file_exists($this->filename)) {
165 if (!$fh) {
170 if (preg_match($re, $line)) {
189 if (isset($this->ridCache[$value])) {
196 if (count($this->ridCache) > 10) {
206 if (!file_exists($this->filename)) return 0;
208 if (!$fh) return 0;
218 if (!file_exists($this->filename)) return;
220 if (!$fh) return;