@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Set it up |
| 79 | 79 | * |
| 80 | - * @param \mithra62\Language $lang |
|
| 81 | - * @param \mithra62\Files $file |
|
| 82 | - * @param \mithra62\Settings $setting |
|
| 83 | - * @param \mithra62\Encrypt $encrypt |
|
| 80 | + * @param \JaegerApp\Language $lang |
|
| 81 | + * @param \JaegerApp\Files $file |
|
| 82 | + * @param \JaegerApp\Settings $setting |
|
| 83 | + * @param \JaegerApp\Encrypt $encrypt |
|
| 84 | 84 | * @param \mithra62\AbstractPlatform $platform |
| 85 | 85 | */ |
| 86 | 86 | public function __construct(\JaegerApp\Language $lang, \JaegerApp\Files $file, \JaegerApp\Settings $setting, \JaegerApp\Encrypt $encrypt, \JaegerApp\Platforms\AbstractPlatform $platform) |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @param number $time |
| 193 | 193 | * @param string $html |
| 194 | - * @param number $truncate |
|
| 194 | + * @param integer $truncate |
|
| 195 | 195 | * @return string |
| 196 | 196 | */ |
| 197 | 197 | public function m62TimeFormat($time, $html = true, $truncate = 1) |
@@ -113,13 +113,13 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public function m62FileSize($string, $html = true) |
| 115 | 115 | { |
| 116 | - if( $string == '' ) |
|
| 116 | + if ($string == '') |
|
| 117 | 117 | { |
| 118 | 118 | return $this->m62Lang('na'); |
| 119 | 119 | } |
| 120 | 120 | $formatted_size = $this->file->filesizeFormat($string); |
| 121 | 121 | $return = ''; |
| 122 | - if( $html ) |
|
| 122 | + if ($html) |
|
| 123 | 123 | { |
| 124 | 124 | $return = '<span class="backup_pro_filesize" title="' . number_format($string) . ' bytes">' . $formatted_size . '</span>'; |
| 125 | 125 | } |
@@ -261,15 +261,15 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | public function m62Options($type, $translate = true) |
| 263 | 263 | { |
| 264 | - if( !isset($this->options[$type]) ) |
|
| 264 | + if (!isset($this->options[$type])) |
|
| 265 | 265 | { |
| 266 | 266 | return array(); //@todo add exception |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | $options = $this->options[$type]; |
| 270 | - if( $translate ) |
|
| 270 | + if ($translate) |
|
| 271 | 271 | { |
| 272 | - foreach($options As $key => $value) |
|
| 272 | + foreach ($options As $key => $value) |
|
| 273 | 273 | { |
| 274 | 274 | $options[$key] = $this->m62Lang($value); |
| 275 | 275 | } |
@@ -122,8 +122,7 @@ |
||
| 122 | 122 | if( $html ) |
| 123 | 123 | { |
| 124 | 124 | $return = '<span class="backup_pro_filesize" title="' . number_format($string) . ' bytes">' . $formatted_size . '</span>'; |
| 125 | - } |
|
| 126 | - else |
|
| 125 | + } else |
|
| 127 | 126 | { |
| 128 | 127 | $return = $formatted_size; |
| 129 | 128 | } |