public function getStagedFilesOfType($suffix) : array
    {
        if (!$this->typesResolved) {
            $this->resolveFileTypes();
        }
        return isset($this->types[$suffix]) ? $this->types[$suffix] : [];
    }
public function getStagedFilesOfType($suffix) : array
    {
        if (!$this->typesResolved) {
            $this->resolveFileTypes();
        }
        return isset($this->types[$suffix]) ? $this->types[$suffix] : [];
    }
public function getStagedFilesOfType ( $ suffix ) : array { if ( ! $ this -> typesResolved ) { $ this -> resolveFileTypes ( ) ; } return isset ( $ this -> types [ $ suffix ] ) ? $ this -> types [ $ suffix ] : [ ] ; }
Return list of changed files of a given type.

@param  string $suffix
@return array
Return list of changed files of a given type .