src/Adapter/PhpFilesystemAdapter.php
/**
     * Return's the size of the file with the passed name.
     *
     * @param string $filename The name of the file to return the size for
     *
     * @return int The size of the file in bytes
     * @throws \Exception  Is thrown, if the size can not be calculated
     * @link https://php.net/filesize
     */
Return's the size of the file with the passed name.
@param string $filename The name of the file to return the size for


Return ' s the size of the file with the passed name . @param string $filename The name of the file to return the size for
public function size($filename)
    {
        if (is_int($size = filesize($filename))) {
            return $size;
        }
        throw new \Exception(sprintf('Can\'t calculate size of file "%s"', $filename));
    }
public function size ( $ filename ) { if ( is_int ( $ size = filesize ( $ filename ) ) ) { return $ size ; } throw new \ Exception ( sprintf ( 'Can\'t calculate size of file "%s"' , $ filename ) ) ; }
Return's the size of the file with the passed name.
Return ' s the size of the file with the passed name .
// calculate the size of the file and return it // throw an exception if the size can not be calculated