From ed3ac6924fde93cda432ac3279e8b1b01e85b889 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 25 Nov 2008 07:43:50 +0000 Subject: [PATCH] MINOR Code formatting cleanup in File->getAbsoluteSize() MINOR phpDoc comments for File->getAbsoluteSize() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66630 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/File.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.