Skip to content

Commit 11c3d6e

Browse files
author
Chris Burke
committed
Correct method casing
1 parent ff3fe14 commit 11c3d6e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Cache/Engine/FileEngine.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ protected function _setKey($key, $createKey = false)
383383
if (!$createKey && !$path->isFile()) {
384384
return false;
385385
}
386-
if (empty($this->_File) || $this->_File->getBaseName() !== $key) {
386+
if (empty($this->_File) || $this->_File->getBasename() !== $key) {
387387
$exists = file_exists($path->getPathname());
388388
try {
389389
$this->_File = $path->openFile('c+');
@@ -463,13 +463,13 @@ public function clearGroup($group)
463463
\RecursiveIteratorIterator::CHILD_FIRST
464464
);
465465
foreach ($contents as $object) {
466-
$containsGroup = strpos($object->getPathName(), DS . $group . DS) !== false;
466+
$containsGroup = strpos($object->getPathname(), DS . $group . DS) !== false;
467467
$hasPrefix = true;
468468
if (strlen($this->_config['prefix']) !== 0) {
469-
$hasPrefix = strpos($object->getBaseName(), $this->_config['prefix']) === 0;
469+
$hasPrefix = strpos($object->getBasename(), $this->_config['prefix']) === 0;
470470
}
471471
if ($object->isFile() && $containsGroup && $hasPrefix) {
472-
$path = $object->getPathName();
472+
$path = $object->getPathname();
473473
$object = null;
474474
//@codingStandardsIgnoreStart
475475
@unlink($path);

src/Core/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public static function loadAll(array $options = [])
228228
$dir = new DirectoryIterator($path);
229229
foreach ($dir as $path) {
230230
if ($path->isDir() && !$path->isDot()) {
231-
$plugins[] = $path->getBaseName();
231+
$plugins[] = $path->getBasename();
232232
}
233233
}
234234
}

src/Filesystem/Folder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ public function read($sort = true, $exceptions = false, $fullPath = false)
182182
if ($item->isDot()) {
183183
continue;
184184
}
185-
$name = $item->getFileName();
185+
$name = $item->getFilename();
186186
if ($skipHidden && $name[0] === '.' || isset($exceptions[$name])) {
187187
continue;
188188
}
189189
if ($fullPath) {
190-
$name = $item->getPathName();
190+
$name = $item->getPathname();
191191
}
192192
if ($item->isDir()) {
193193
$dirs[] = $name;

0 commit comments

Comments
 (0)