Completed
Push — master ( 5903e5...08322c )
by Marko
22:48 queued 07:53
created
Commons/FilesystemInterface.inc 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -302,5 +302,5 @@
 block discarded – undo
302 302
      * @param array $data_array 
303 303
      * @return bool true on success fase on failure
304 304
      */
305
-    public function createStructure($rootpath,$data_array);
305
+    public function createStructure($rootpath, $data_array);
306 306
 }
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,6 +30,7 @@  discard block
 block discarded – undo
30 30
      * Construct with or without current working directory
31 31
      *
32 32
      * @param string $setCwd            
33
+     * @return void
33 34
      */
34 35
     public function __construct($setCwd = false);
35 36
 
@@ -51,7 +52,7 @@  discard block
 block discarded – undo
51 52
      *
52 53
      * @param string $filename            
53 54
      * @param string $dirname            
54
-     * @param mixed $data            
55
+     * @param string $data            
55 56
      * @param int $flags            
56 57
      * @param resource $context            
57 58
      */
@@ -102,6 +103,7 @@  discard block
 block discarded – undo
102 103
      *
103 104
      * @param unknown $pathname            
104 105
      * @param string $shred            
106
+     * @return boolean
105 107
      */
106 108
     public function rm($pathname, $shred = false);
107 109
 
@@ -167,6 +169,7 @@  discard block
 block discarded – undo
167 169
      *
168 170
      * @param string $filename            
169 171
      * @param string $user            
172
+     * @return boolean
170 173
      */
171 174
     public function chown($filename = false, $user = false);
172 175
 
@@ -228,7 +231,7 @@  discard block
 block discarded – undo
228 231
      * which is similar to the rules used by common shells.
229 232
      *
230 233
      * @param string $pattern            
231
-     * @param number $flags            
234
+     * @param integer $flags            
232 235
      * @return array matching paths
233 236
      */
234 237
     public function getGlob($pattern = false, $flags = 0);
Please login to merge, or discard this patch.
Commons/ObjectInterfaces/FileInterface.inc 1 patch
Doc Comments   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -49,6 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Assert that if some wierd reason this is called in file
51 51
      * that we return false
52
+     * @return boolean
52 53
      */
53 54
     public function getLinkTarget();
54 55
 
@@ -82,6 +83,7 @@  discard block
 block discarded – undo
82 83
      * No purpose
83 84
      * inherited from iterator but useless
84 85
      * An FileObject does not have children so this method returns allways NULL.
86
+     * @return boolean
85 87
      */
86 88
     public function getChildren();
87 89
 
@@ -90,7 +92,7 @@  discard block
 block discarded – undo
90 92
      *
91 93
      * Forces a write of all buffered output to the file.
92 94
      *
93
-     * @return Returns TRUE on success or FALSE on failure
95
+     * @return boolean TRUE on success or FALSE on failure
94 96
      */
95 97
     public function fflush();
96 98
 
@@ -146,14 +148,8 @@  discard block
 block discarded – undo
146 148
      *
147 149
      * @param array $fields
148 150
      *            An array of values.
149
-     * @param string $delimiter
150
-     *            The optional delimiter parameter sets the field delimiter (one character only).
151
-     * @param string $enclosure
152
-     *            The optional enclosure parameter sets the field enclosure (one character only).
153
-     * @param string $escape
154
-     *            The optional escape parameter sets the escape character (one character only).
155 151
      *            
156
-     * @return int|bool Returns the length of the written string or FALSE on failure.
152
+     * @return integer Returns the length of the written string or FALSE on failure.
157 153
      *         returns FALSE, and does not write the CSV line to the file, if the delimiter
158 154
      *         or enclosure parameter is not a single character.
159 155
      *        
@@ -313,7 +309,7 @@  discard block
 block discarded – undo
313 309
      * FileObject::setMaxLineLen() is used to read fixed lengths of the file.
314 310
      *
315 311
      *
316
-     * @return Returns the current line number.
312
+     * @return integer the current line number.
317 313
      */
318 314
     public function key();
319 315
 
Please login to merge, or discard this patch.
Commons/ObjectInterfaces/InfoInterface.inc 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@
 block discarded – undo
37 37
      * Gets an InfoObject object for the file
38 38
      *
39 39
      * @param string $class_name            
40
+     * @return \SplFileInfo
40 41
      */
41 42
     public function getFileInfo($class_name = '\HOWI3\libhowi\Filesystem\php5\Objects\InfoObject');
42 43
 }
Please login to merge, or discard this patch.
Commons/ObjectInterfaces/LinkInterface.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * symlink — Creates a symbolic link
31
+     * @return boolean
31 32
      */
32 33
     public function symlink($target = false, $link = false);
33 34
 
@@ -43,6 +44,7 @@  discard block
 block discarded – undo
43 44
 
44 45
     /**
45 46
      * link — Create a hard link
47
+     * @return boolean
46 48
      */
47 49
     public function hardlink($target = false, $link = false);
48 50
 
@@ -68,6 +70,7 @@  discard block
 block discarded – undo
68 70
 
69 71
     /**
70 72
      * readlink — Returns the target of a symbolic link
73
+     * @return false|string
71 74
      */
72 75
     public function readlink($link = false);
73 76
 }
Please login to merge, or discard this patch.
Commons/ObjectInterfaces/TmpInterface.inc 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     /**
54 54
      * tmpfile — Creates a temporary file
55 55
      * 
56
-     * @return filehandler
56
+     * @return resource
57 57
      */
58 58
     public function tmpfile();
59 59
 }
Please login to merge, or discard this patch.
Commons/ResponseObject.inc 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -72,21 +72,33 @@  discard block
 block discarded – undo
72 72
     private $level;
73 73
 
74 74
 
75
+    /**
76
+     * @param boolean $arg
77
+     */
75 78
     public function setStatus($arg)
76 79
     {
77 80
         $this->status = is_bool($arg) ? $arg : false;
78 81
     }
79 82
 
83
+    /**
84
+     * @param integer $code
85
+     */
80 86
     public function setCode($code)
81 87
     {
82 88
         $this->code = is_int($code) ? $code : 0;
83 89
     }
84 90
 
91
+    /**
92
+     * @param string $msg
93
+     */
85 94
     public function setMsg($msg)
86 95
     {
87 96
         $this->message = is_string($msg) ? $msg : 'BUG';
88 97
     }
89 98
 
99
+    /**
100
+     * @param integer $UID
101
+     */
90 102
     public function setUID($UID)
91 103
     {
92 104
         $this->UID = is_int($UID) ? $UID : 'BUG';
@@ -102,6 +114,9 @@  discard block
 block discarded – undo
102 114
         $this->microtime = microtime(true);
103 115
     }
104 116
 
117
+    /**
118
+     * @param string $context
119
+     */
105 120
     public function setContext($context)
106 121
     {
107 122
         $this->context = $context;
Please login to merge, or discard this patch.
Commons/SharedMethodsInterface.inc 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,6 @@  discard block
 block discarded – undo
46 46
      * Gets last access time of file
47 47
      *
48 48
      * @param string $timeformat            
49
-     * @param string $filename            
50 49
      * @return int or formated output
51 50
      */
52 51
     public function getATime($timeformat = false, $pathname = false);
@@ -55,7 +54,6 @@  discard block
 block discarded – undo
55 54
      * Gets inode change time of file
56 55
      *
57 56
      * @param string $timeformat            
58
-     * @param string $filename            
59 57
      * @return int or formated output
60 58
      */
61 59
     public function getCTime($timeformat = false, $pathname = false);
@@ -64,7 +62,6 @@  discard block
 block discarded – undo
64 62
      * Gets file modification time
65 63
      *
66 64
      * @param string $timeformat            
67
-     * @param string $filename            
68 65
      * @return int or formated output
69 66
      */
70 67
     public function getMTime($timeformat = false, $pathname = false);
@@ -81,6 +78,7 @@  discard block
 block discarded – undo
81 78
      *            ommit emty values?
82 79
      * @param string $ago_single            
83 80
      * @param array $clocale            
81
+     * @return string
84 82
      */
85 83
     public function ct_ago($timestamp, $date_format = 'y,m,d,h,i,s', $sfx = true, $ommit_zero = true, $ago_single = true, $clocale = []);
86 84
 
@@ -101,6 +99,7 @@  discard block
 block discarded – undo
101 99
      * Sets the class used with InfoObject::openFile()
102 100
      *
103 101
      * @param string $class_name            
102
+     * @return boolean
104 103
      */
105 104
     public function setFileClass($class_name = "\HOWI3\libhowi\Filesystem\php5\Objects\FileObject");
106 105
 
@@ -108,6 +107,7 @@  discard block
 block discarded – undo
108 107
      * Sets the class used with InfoObject::getFileInfo() and SplFileInfo::getPathInfo()
109 108
      *
110 109
      * @param string $class_name            
110
+     * @return boolean
111 111
      */
112 112
     public function setInfoClass($class_name = "\HOWI3\libhowi\Filesystem\php5\Objects\InfoObject");
113 113
 
Please login to merge, or discard this patch.
Commons/TraitForResponse.inc 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
     /**
174 174
      * Add message to log
175 175
      *
176
-     * @param array $LEVEL
176
+     * @param string $LEVEL
177 177
      *            from private static $LEVEL;
178
-     * @param number $code            
178
+     * @param integer $code            
179 179
      * @param string $context            
180 180
      * @param string $append_msg            
181 181
      * @return void
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     /**
220 220
      * Set loglevel
221 221
      *
222
-     * @param number $level            
222
+     * @param integer $level            
223 223
      */
224 224
     public function setLogLevel($level = 0)
225 225
     {
@@ -274,6 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
     /**
276 276
      * Return event microtime
277
+     * @return string
277 278
      */
278 279
     public function getTime()
279 280
     {
@@ -291,7 +292,6 @@  discard block
 block discarded – undo
291 292
     /**
292 293
      * Get response with or without log 
293 294
      *
294
-     * @param string $key            
295 295
      * @return object
296 296
      */
297 297
     public function response()
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     /**
339 339
      * Set user id
340 340
      *
341
-     * @param number $ID            
341
+     * @param number $UID            
342 342
      * @return void
343 343
      */
344 344
     public function setUID($UID)
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -186,14 +186,14 @@  discard block
 block discarded – undo
186 186
         
187 187
         $this->response->setCode($code);
188 188
         $this->response->setTime();
189
-        $this->response->setMsg($this->{$LEVEL}[$code] . (! empty($append_msg) ? ' - ' . $append_msg : ''));
189
+        $this->response->setMsg($this->{$LEVEL}[$code] . (!empty($append_msg) ? ' - ' . $append_msg : ''));
190 190
         $this->response->setUID($this->getUID());
191 191
         $this->response->setUsername($this->getUsername());
192 192
         $this->response->setContext($context);
193 193
         $this->response->setLevel($LEVEL);
194 194
         
195 195
         $logging = $this->getLogFile();
196
-        if (! empty($logging) && ! empty($to_file))
196
+        if(!empty($logging) && !empty($to_file))
197 197
             $this->logToFile($LEVEL);
198 198
     }
199 199
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $message .= '[msg] ' . $this->getMsg() . ' [/msg]' . "\n";
212 212
         
213 213
         $logging = $this->getLogFile();
214
-        if (empty($logging) || ! is_dir(dirname($logging)))
214
+        if(empty($logging) || !is_dir(dirname($logging)))
215 215
             return false;
216 216
         return file_put_contents($logging, $message, FILE_APPEND);
217 217
     }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     public function setLogFile($filepath = false)
236 236
     {
237 237
         $logfilepath = $this->makeAbsolute($filepath);
238
-        if (empty($filepath) || ! $this->isWritable(dirname($logfilepath))) {
238
+        if(empty($filepath) || !$this->isWritable(dirname($logfilepath))) {
239 239
             $this->error(400, 'setLogFile');
240 240
             return false;
241 241
         }
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      */
327 327
     public function getCode()
328 328
     {
329
-        return ! is_object($this->response) ? 0 : $this->response->getCode();
329
+        return !is_object($this->response) ? 0 : $this->response->getCode();
330 330
     }
331 331
 
332 332
     /**
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
      */
365 365
     public function setStatus($status)
366 366
     {
367
-        if (is_object($this->response))
367
+        if(is_object($this->response))
368 368
             $this->response->setStatus($status);
369 369
     }
370 370
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      */
376 376
     public function setCode($code)
377 377
     {
378
-        if (is_object($this->response))
378
+        if(is_object($this->response))
379 379
             $this->response->setCode($code);
380 380
     }
381 381
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     public function emergency($code = 1, $append_msg = false, $context = false)
390 390
     {
391 391
         $to_file = true;
392
-        if ($this->getLogLevel() < 1)
392
+        if($this->getLogLevel() < 1)
393 393
             $to_file = false;
394 394
         
395 395
         $this->addTrace('EMERGENCY', $code, $context, $append_msg, $to_file);
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
     public function alert($code = 2, $append_msg = false, $context = false)
410 410
     {
411 411
         $to_file = true;
412
-        if ($this->getLogLevel() < 2)
412
+        if($this->getLogLevel() < 2)
413 413
             $to_file = false;
414 414
         $this->addTrace('ALERT', $code, $context, $append_msg, $to_file);
415 415
     }
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     public function critical($code = 3, $append_msg = false, $context = false)
428 428
     {
429 429
         $to_file = true;
430
-        if ($this->getLogLevel() < 3)
430
+        if($this->getLogLevel() < 3)
431 431
             $to_file = false;
432 432
         $this->addTrace('CRITICAL', $code, $context, $append_msg, $to_file);
433 433
     }
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     public function error($code = 4, $append_msg = false, $context = false)
446 446
     {
447 447
         $to_file = true;
448
-        if ($this->getLogLevel() < 4)
448
+        if($this->getLogLevel() < 4)
449 449
             $to_file = false;
450 450
         $this->addTrace('ERROR', $code, $context, $append_msg, $to_file);
451 451
     }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     public function warning($code = 5, $append_msg = false, $context = false)
465 465
     {
466 466
         $to_file = true;
467
-        if ($this->getLogLevel() < 5)
467
+        if($this->getLogLevel() < 5)
468 468
             $to_file = false;
469 469
         $this->addTrace('WARNING', $code, $context, $append_msg, $to_file);
470 470
     }
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
     public function notice($code = 6, $append_msg = false, $context = false)
482 482
     {
483 483
         $to_file = true;
484
-        if ($this->getLogLevel() < 6)
484
+        if($this->getLogLevel() < 6)
485 485
             $to_file = false;
486 486
         $this->addTrace('NOTICE', $code, $context, $append_msg, $to_file);
487 487
     }
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     public function info($code = 7, $append_msg = false, $context = false)
501 501
     {
502 502
         $to_file = true;
503
-        if ($this->getLogLevel() < 7)
503
+        if($this->getLogLevel() < 7)
504 504
             $to_file = false;
505 505
         $this->addTrace('INFO', $code, $context, $append_msg, $to_file);
506 506
     }
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
     public function debug($code = 8, $append_msg = false, $context = false)
518 518
     {
519 519
         $to_file = true;
520
-        if ($this->getLogLevel() < 8)
520
+        if($this->getLogLevel() < 8)
521 521
             $to_file = false;
522 522
         $this->addTrace('DEBUG', $code, $context, $append_msg, $to_file);
523 523
     }
Please login to merge, or discard this patch.
FS.inc 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @name $FS = FS::load( string $pathname | $ser_cwd_by_caller boolean true = false, PHP_VERSION_ID );
34 34
      *      
35
-     * @param string|boolean $pathname|$ser_cwd_by_caller
35
+     * @param string|boolean $ser_cwd_by_caller
36 36
      *            Optional: defaults to false.
37 37
      *            If path is supplied then that will be current working directory.
38 38
      *            If boolean true is supplied it will try to set current working directory as one
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public static function load($ser_cwd_by_caller = false, $PHP_VERSION_ID = PHP_VERSION_ID)
43 43
     {
44
-        if (! empty($ser_cwd_by_caller) && is_bool($ser_cwd_by_caller)) {
44
+        if(!empty($ser_cwd_by_caller) && is_bool($ser_cwd_by_caller)) {
45 45
             $backtrace = debug_backtrace(
46 46
                 defined("DEBUG_BACKTRACE_IGNORE_ARGS") ? DEBUG_BACKTRACE_IGNORE_ARGS : FALSE);
47 47
             $cwd_caller = array_pop($backtrace);
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
         /**
51 51
          * Minimum version of PHP must be atleast 5.5.11
52 52
          */
53
-        if ($PHP_VERSION_ID <= 50511)
53
+        if($PHP_VERSION_ID <= 50511)
54 54
             return call_user_func(
55
-                function () {
55
+                function() {
56 56
                     $self = new self();
57 57
                     $self->emergency(100);
58 58
                     return $self;
Please login to merge, or discard this patch.