Completed
Push — master ( c36ca8...6ca206 )
by Eric
02:41
created
src/Traits/View/Helpers.php 3 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,13 +113,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,8 +122,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.