src/Filesystem/Adapter/Zip.php
protected function normalizeObject(array $object)
	{
		if (\substr($object['name'], -1) === '/') {
			return [
				'path' => $this->removePathPrefix(\trim($object['name'], '/')),
				'type' => 'dir',
			];
		}

		$result = ['type' => 'file'];
		$normalised = Util::map($object, static::$resultMap);
		$normalised['path'] = $this->removePathPrefix($normalised['path']);

		return \array_merge($result, $normalised);
	}
protected function normalizeObject(array $object)
	{
		if (\substr($object['name'], -1) === '/') {
			return [
				'path' => $this->removePathPrefix(\trim($object['name'], '/')),
				'type' => 'dir',
			];
		}

		$result = ['type' => 'file'];
		$normalised = Util::map($object, static::$resultMap);
		$normalised['path'] = $this->removePathPrefix($normalised['path']);

		return \array_merge($result, $normalised);
	}
protected function normalizeObject ( array $ object ) { if ( \ substr ( $ object [ 'name' ] , - 1 ) === '/' ) { return [ 'path' => $ this -> removePathPrefix ( \ trim ( $ object [ 'name' ] , '/' ) ) , 'type' => 'dir' , ] ; } $ result = [ 'type' => 'file' ] ; $ normalised = Util :: map ( $ object , static :: $ resultMap ) ; $ normalised [ 'path' ] = $ this -> removePathPrefix ( $ normalised [ 'path' ] ) ; return \ array_merge ( $ result , $ normalised ) ; }
Normalize a zip response array.

@param array $object

@return array
Normalize a zip response array .