Skip to content
Permalink
Browse files

Correct method casing

  • Loading branch information...
Chris Burke
Chris Burke committed Sep 18, 2015
1 parent ff3fe14 commit 11c3d6e40e919aa9e1fb3d67c30182f596768f5b
Showing with 7 additions and 7 deletions.
  1. +4 −4 src/Cache/Engine/FileEngine.php
  2. +1 −1 src/Core/Plugin.php
  3. +2 −2 src/Filesystem/Folder.php
@@ -383,7 +383,7 @@ protected function _setKey($key, $createKey = false)
if (!$createKey && !$path->isFile()) {
return false;
}
if (empty($this->_File) || $this->_File->getBaseName() !== $key) {
if (empty($this->_File) || $this->_File->getBasename() !== $key) {
$exists = file_exists($path->getPathname());
try {
$this->_File = $path->openFile('c+');
@@ -463,13 +463,13 @@ public function clearGroup($group)
\RecursiveIteratorIterator::CHILD_FIRST
);
foreach ($contents as $object) {
$containsGroup = strpos($object->getPathName(), DS . $group . DS) !== false;
$containsGroup = strpos($object->getPathname(), DS . $group . DS) !== false;
$hasPrefix = true;
if (strlen($this->_config['prefix']) !== 0) {
$hasPrefix = strpos($object->getBaseName(), $this->_config['prefix']) === 0;
$hasPrefix = strpos($object->getBasename(), $this->_config['prefix']) === 0;
}
if ($object->isFile() && $containsGroup && $hasPrefix) {
$path = $object->getPathName();
$path = $object->getPathname();
$object = null;
//@codingStandardsIgnoreStart
@unlink($path);
@@ -228,7 +228,7 @@ public static function loadAll(array $options = [])
$dir = new DirectoryIterator($path);
foreach ($dir as $path) {
if ($path->isDir() && !$path->isDot()) {
$plugins[] = $path->getBaseName();
$plugins[] = $path->getBasename();
}
}
}
@@ -182,12 +182,12 @@ public function read($sort = true, $exceptions = false, $fullPath = false)
if ($item->isDot()) {
continue;
}
$name = $item->getFileName();
$name = $item->getFilename();
if ($skipHidden && $name[0] === '.' || isset($exceptions[$name])) {
continue;
}
if ($fullPath) {
$name = $item->getPathName();
$name = $item->getPathname();
}
if ($item->isDir()) {
$dirs[] = $name;

0 comments on commit 11c3d6e

Please sign in to comment.
You can’t perform that action at this time.