for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Cecil/Cecil package.
*
* Copyright (c) Arnaud Ligny <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cecil\Command\ShowContent;
use RecursiveTreeIterator;
/**
* Replace Filepath by Filename.
* Class FilenameRecursiveTreeIterator
class FilenameRecursiveTreeIterator extends RecursiveTreeIterator
{
* @return mixed
string
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function current()
return str_replace(
$this->getInnerIterator()->current(),
substr(strrchr($this->getInnerIterator()->current(), DIRECTORY_SEPARATOR), 1),
parent::current()
);
}
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.