Skip to content

Commit e1e5773

Browse files
committed
Removed curly brace usage for string access
1 parent df44c4c commit e1e5773

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/PHPixie/Cache/Drivers/Type/File.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function getItemWithoutCleanup($key)
8383
public function clear()
8484
{
8585
foreach (scandir($this->directory) as $file) {
86-
if($file{0} == '.') {
86+
if($file[0] == '.') {
8787
continue;
8888
}
8989

@@ -111,7 +111,7 @@ public function cleanup()
111111
$now = time();
112112

113113
foreach (scandir($this->directory) as $file) {
114-
if($file{0} == '.') {
114+
if($file[0] == '.') {
115115
continue;
116116
}
117117

@@ -141,4 +141,4 @@ protected function checkFileExpiry($file, $time)
141141
abstract protected function getExpiryTimestamp($file);
142142
abstract protected function getFileData($file);
143143
abstract protected function buildFileContents($value, $timestamp);
144-
}
144+
}

0 commit comments

Comments
 (0)