Skip to content

Commit

Permalink
Removed curly brace usage for string access
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony committed Dec 25, 2019
1 parent df44c4c commit e1e5773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PHPixie/Cache/Drivers/Type/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function getItemWithoutCleanup($key)
public function clear()
{
foreach (scandir($this->directory) as $file) {
if($file{0} == '.') {
if($file[0] == '.') {
continue;
}

Expand Down Expand Up @@ -111,7 +111,7 @@ public function cleanup()
$now = time();

foreach (scandir($this->directory) as $file) {
if($file{0} == '.') {
if($file[0] == '.') {
continue;
}

Expand Down Expand Up @@ -141,4 +141,4 @@ protected function checkFileExpiry($file, $time)
abstract protected function getExpiryTimestamp($file);
abstract protected function getFileData($file);
abstract protected function buildFileContents($value, $timestamp);
}
}

0 comments on commit e1e5773

Please sign in to comment.