Skip to content

Commit

Permalink
CS updates to General.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesJohns committed Aug 20, 2013
1 parent 6382c1c commit 8ddca3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/BoxUK/Describr/Plugins/BoxUK/GeneralPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ private function addAutoTagsByFileSize()
return;
}

$sizeInKb = filesize ($this->fullPathToFileOnDisk) / 1024;
$sizeInKb = filesize($this->fullPathToFileOnDisk) / 1024;

$function = 'getSizeOf' . ucfirst($this->getFileType());
if(!function_exists($function)) {
if (!function_exists($function)) {
$function = 'getSizeOf';
}
$fileSizeDescription = $this->$function($sizeInKb);
Expand All @@ -110,7 +110,7 @@ protected function getSizeOf($sizeInKb)
$fileSizeDescription = 'Extra Large';
if ($sizeInKb < 32) {
$fileSizeDescription = 'Extra Small';
}else if ($sizeInKb < 128) {
} elseif ($sizeInKb < 128) {
$fileSizeDescription = 'Small';
} elseif ($sizeInKb < 512) {
$fileSizeDescription = 'Medium';
Expand All @@ -130,7 +130,7 @@ protected function getSizeOfImage($sizeInKb)
$fileSizeDescription = 'Extra Large';
if ($sizeInKb < 16) {
$fileSizeDescription = 'Extra Small';
}else if ($sizeInKb < 32) {
} elseif ($sizeInKb < 32) {
$fileSizeDescription = 'Small';
} elseif ($sizeInKb < 64) {
$fileSizeDescription = 'Medium';
Expand Down Expand Up @@ -160,7 +160,7 @@ protected function getSizeOfDocument($sizeInKb)
$fileSizeDescription = 'Extra Large';
if ($sizeInKb < 32) {
$fileSizeDescription = 'Extra Small';
}else if ($sizeInKb < 256) {
} elseif ($sizeInKb < 256) {
$fileSizeDescription = 'Small';
} elseif ($sizeInKb < 1024) {
$fileSizeDescription = 'Medium';
Expand All @@ -180,7 +180,7 @@ protected function getSizeOfMovie($sizeInKb)
$fileSizeDescription = 'Extra Large';
if ($sizeInKb < 128) {
$fileSizeDescription = 'Extra Small';
}else if ($sizeInKb < 512) {
} elseif ($sizeInKb < 512) {
$fileSizeDescription = 'Small';
} elseif ($sizeInKb < 2048) {
$fileSizeDescription = 'Medium';
Expand Down

0 comments on commit 8ddca3e

Please sign in to comment.