diff --git a/filesystem/File.php b/filesystem/File.php index 64cc6ecbe..056e507f9 100755 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -523,18 +523,18 @@ class File extends DataObject { } /** - * returns the size in bytes with no extensions for calculations. + * Return file size in bytes. + * @return int */ function getAbsoluteSize(){ - if(file_exists($this->getFullPath() )) { + if(file_exists($this->getFullPath())) { $size = filesize($this->getFullPath()); return $size; - }else{ + } else { return 0; } } - /** * Select clause for DataObject::get('File') operations/ * Stores an array, suitable for a {@link SQLQuery} object.