src/Util/ContentListingFormatter.php
private function residesInDirectory(array $entry)
    {
        if ($this->directory === '') {
            return true;
        }

        return $this->caseSensitive
            ? strpos($entry['path'], $this->directory . '/') === 0
            : stripos($entry['path'], $this->directory . '/') === 0;
    }
private function residesInDirectory(array $entry)
    {
        if ($this->directory === '') {
            return true;
        }

        return $this->caseSensitive
            ? strpos($entry['path'], $this->directory . '/') === 0
            : stripos($entry['path'], $this->directory . '/') === 0;
    }
private function residesInDirectory ( array $ entry ) { if ( $ this -> directory === '' ) { return true ; } return $ this -> caseSensitive ? strpos ( $ entry [ 'path' ] , $ this -> directory . '/' ) === 0 : stripos ( $ entry [ 'path' ] , $ this -> directory . '/' ) === 0 ; }
Check if the entry resides within the parent directory.

@param array $entry

@return bool
Check if the entry resides within the parent directory .