private function isEnvironmentFilename(string $filename): bool
    {
        $filenameEnding = substr($filename, strpos($filename, '.'));
        foreach ($this->environments as $environment) {
            if ($filenameEnding === '.' . $environment . '.php') {
                return true;
            }
        }
        return false;
    }
private function isEnvironmentFilename(string $filename): bool
    {
        $filenameEnding = substr($filename, strpos($filename, '.'));
        foreach ($this->environments as $environment) {
            if ($filenameEnding === '.' . $environment . '.php') {
                return true;
            }
        }
        return false;
    }
private function isEnvironmentFilename ( string $ filename ) : bool { $ filenameEnding = substr ( $ filename , strpos ( $ filename , '.' ) ) ; foreach ( $ this -> environments as $ environment ) { if ( $ filenameEnding === '.' . $ environment . '.php' ) { return true ; } } return false ; }
Is environment filename.

@param string $filename
@return bool
Is environment filename .