lib/Finder.php
function isExecutable(string $file): bool {
    $fileInfo = new \SplFileInfo($file);
    if (!$fileInfo->isFile()) return false;
    if ($fileInfo->isExecutable()) return true;
    return static::isWindows() ? $this->checkFileExtension($fileInfo) : $this->checkFilePermissions($fileInfo);
  }
function isExecutable(string $file): bool {
    $fileInfo = new \SplFileInfo($file);
    if (!$fileInfo->isFile()) return false;
    if ($fileInfo->isExecutable()) return true;
    return static::isWindows() ? $this->checkFileExtension($fileInfo) : $this->checkFilePermissions($fileInfo);
  }
function isExecutable ( string $ file ) : bool { $ fileInfo = new \ SplFileInfo ( $ file ) ; if ( ! $ fileInfo -> isFile ( ) ) return false ; if ( $ fileInfo -> isExecutable ( ) ) return true ; return static :: isWindows ( ) ? $ this -> checkFileExtension ( $ fileInfo ) : $ this -> checkFilePermissions ( $ fileInfo ) ; }
Gets a value indicating whether the specified file is executable.
@param string $file The path of the file to be checked.
@return bool `true` if the specified file is executable, otherwise `false`.
Gets a value indicating whether the specified file is executable .