public function isYamlFile($item)
    {
        return
            $this->isFile($item) && (
                ends_with(strtolower($item), '.yml') ||
                ends_with(strtolower($item), '.yaml')
            );
    }
public function isYamlFile($item)
    {
        return
            $this->isFile($item) && (
                ends_with(strtolower($item), '.yml') ||
                ends_with(strtolower($item), '.yaml')
            );
    }
public function isYamlFile ( $ item ) { return $ this -> isFile ( $ item ) && ( ends_with ( strtolower ( $ item ) , '.yml' ) || ends_with ( strtolower ( $ item ) , '.yaml' ) ) ; }
Check if the file is a yaml file.

@param $item

@return bool
Check if the file is a yaml file .