mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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
This commit is contained in:
parent
53cef6b435
commit
ed3ac6924f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user