lib/Finder.php
private function checkFileExtension(\SplFileInfo $fileInfo): bool {
    $extension = mb_strtolower($fileInfo->getExtension());
    return mb_strlen($extension) ? in_array(".$extension", $this->getExtensions()->getArrayCopy()) : false;
  }
private function checkFileExtension(\SplFileInfo $fileInfo): bool {
    $extension = mb_strtolower($fileInfo->getExtension());
    return mb_strlen($extension) ? in_array(".$extension", $this->getExtensions()->getArrayCopy()) : false;
  }
private function checkFileExtension ( \ SplFileInfo $ fileInfo ) : bool { $ extension = mb_strtolower ( $ fileInfo -> getExtension ( ) ) ; return mb_strlen ( $ extension ) ? in_array ( ".$extension" , $ this -> getExtensions ( ) -> getArrayCopy ( ) ) : false ; }
Checks that the specified file is executable according to the executable file extensions.
@param \SplFileInfo $fileInfo The file to be checked.
@return bool Value indicating whether the specified file is executable.
Checks that the specified file is executable according to the executable file extensions .