Completed
Branch master (1c45ce)
by Pierre-Henry
32:38
created
_protected/app/system/modules/note/controllers/MainController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 
10 10
 use PH7\Framework\Security\Ban\Ban;
11 11
 use PH7\Framework\Navigation\Page;
12
-use PH7\Framework\Cache\Cache;
13 12
 use PH7\Framework\Analytics\Statistic;
14 13
 use PH7\Framework\Security\CSRF\Token as SecurityToken;
15 14
 use PH7\Framework\Mvc\Router\Uri;
Please login to merge, or discard this patch.
_protected/app/system/modules/user/controllers/BrowseController.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Navigation\Page,
12
-PH7\Framework\Mvc\Router\Uri,
13
-PH7\Framework\Url\Header;
10
+use PH7\Framework\Navigation\Page;
11
+use PH7\Framework\Mvc\Router\Uri;
12
+use PH7\Framework\Url\Header;
14 13
 
15 14
 class BrowseController extends Controller
16 15
 {
Please login to merge, or discard this patch.
_protected/framework/Image/Image.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     }
419 419
 
420 420
     /**
421
-     * @return string
421
+     * @return resource
422 422
      */
423 423
     public function getFileName()
424 424
     {
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     /**
429 429
      * Determine and get the type of the image (even an unallowed image type) by reading the first bytes and checking its signature.
430 430
      *
431
-     * @return string|bool When a correct signature is found, returns the appropriate value, FALSE otherwise.
431
+     * @return integer When a correct signature is found, returns the appropriate value, FALSE otherwise.
432 432
      */
433 433
     public function getType()
434 434
     {
Please login to merge, or discard this patch.
_protected/app/system/modules/admin123/models/ModeratorModel.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@  discard block
 block discarded – undo
12 12
 class ModeratorModel extends ModeratorCoreModel
13 13
 {
14 14
 
15
+    /**
16
+     * @param integer $iOffset
17
+     * @param integer $iLimit
18
+     */
15 19
     public function getAlbumsPicture($iOffset, $iLimit)
16 20
     {
17 21
         $iOffset = (int)$iOffset;
@@ -25,6 +29,10 @@  discard block
 block discarded – undo
25 29
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
26 30
     }
27 31
 
32
+    /**
33
+     * @param integer $iOffset
34
+     * @param integer $iLimit
35
+     */
28 36
     public function getPictures($iOffset, $iLimit)
29 37
     {
30 38
         $iOffset = (int)$iOffset;
@@ -38,6 +46,10 @@  discard block
 block discarded – undo
38 46
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
39 47
     }
40 48
 
49
+    /**
50
+     * @param integer $iOffset
51
+     * @param integer $iLimit
52
+     */
41 53
     public function getAlbumsVideo($iOffset, $iLimit)
42 54
     {
43 55
         $iOffset = (int)$iOffset;
@@ -51,6 +63,10 @@  discard block
 block discarded – undo
51 63
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
52 64
     }
53 65
 
66
+    /**
67
+     * @param integer $iOffset
68
+     * @param integer $iLimit
69
+     */
54 70
     public function getVideos($iOffset, $iLimit)
55 71
     {
56 72
         $iOffset = (int)$iOffset;
@@ -64,6 +80,10 @@  discard block
 block discarded – undo
64 80
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
65 81
     }
66 82
 
83
+    /**
84
+     * @param integer $iOffset
85
+     * @param integer $iLimit
86
+     */
67 87
     public function getAvatars($iOffset, $iLimit)
68 88
     {
69 89
         $iOffset = (int)$iOffset;
@@ -76,6 +96,10 @@  discard block
 block discarded – undo
76 96
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
77 97
     }
78 98
 
99
+    /**
100
+     * @param integer $iOffset
101
+     * @param integer $iLimit
102
+     */
79 103
     public function getBackgrounds($iOffset, $iLimit)
80 104
     {
81 105
         $iOffset = (int)$iOffset;
Please login to merge, or discard this patch.
_protected/framework/Layout/Html/Design.class.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,6 +260,11 @@  discard block
 block discarded – undo
260 260
         }
261 261
     }
262 262
 
263
+    /**
264
+     * @param string $sModule
265
+     * @param string $sController
266
+     * @param string $sAction
267
+     */
263 268
     public function url($sModule, $sController, $sAction, $sVars = null, $bClear = true)
264 269
     {
265 270
         $sUrl = Uri::get($sModule, $sController, $sAction, $sVars, $bClear);
@@ -527,7 +532,7 @@  discard block
 block discarded – undo
527 532
      * @internal If it's an IPv6, show only the beginning, otherwise it would be too long in the template.
528 533
      * @param string $sIp Allows to speciy another IP address than the client one.
529 534
      * @param boolean $bPrint Print or Return the HTML code. Default TRUE
530
-     * @return mixed (string | void)
535
+     * @return null|string (string | void)
531 536
      */
532 537
     public function ip($sIp = null, $bPrint = true)
533 538
     {
@@ -544,7 +549,7 @@  discard block
 block discarded – undo
544 549
      * Show the geolocation of the user (with link that points to the Country controller).
545 550
      *
546 551
      * @param boolean $bPrint Print or Return the HTML code. Default TRUE
547
-     * @return mixed (string | void)
552
+     * @return null|string (string | void)
548 553
      */
549 554
     public function geoIp($bPrint = true)
550 555
     {
@@ -576,7 +581,7 @@  discard block
 block discarded – undo
576 581
     /**
577 582
      * Get the User Avatar.
578 583
      *
579
-     * @param string $sUername
584
+     * @param string $sUsername
580 585
      * @param string $sSex
581 586
      * @param integer $iSize
582 587
      * @return void Html contents. URL avatar default 150px or the user avatar.
Please login to merge, or discard this patch.
_protected/app/system/core/models/LikeCoreModel.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
     const CACHE_GROUP = 'db/sys/core/like';
17 17
 
18
+    /**
19
+     * @param string $sKey
20
+     */
18 21
     public function select($sKey)
19 22
     {
20 23
         $this->cache->start(self::CACHE_GROUP, 'select' . $sKey, 3600*168);
@@ -32,6 +35,9 @@  discard block
 block discarded – undo
32 35
         return $oData;
33 36
     }
34 37
 
38
+    /**
39
+     * @param string $sKey
40
+     */
35 41
     public function update($sKey, $fLastIp)
36 42
     {
37 43
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Likes') . 'SET votes = votes + 1 , lastVote = NOW() , lastIp =:lastIp WHERE keyId =:key');
@@ -40,6 +46,9 @@  discard block
 block discarded – undo
40 46
         return $rStmt->execute();
41 47
     }
42 48
 
49
+    /**
50
+     * @param string $sKey
51
+     */
43 52
     public function insert($sKey, $fLastIp)
44 53
     {
45 54
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Likes') . 'SET keyId =:key ,votes=1 , lastVote = NOW(), lastIp =:lastIp');
Please login to merge, or discard this patch.
_protected/framework/Compress/Compress.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@  discard block
 block discarded – undo
68 68
         $this->_bIsGoogleClosure = (bool) Config::getInstance()->values['cache']['enable.js.closure_compiler_service'];
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $sPhp
73
+     */
71 74
     public function parsePhp($sPhp)
72 75
     {
73 76
         $sPhp = preg_replace('#/\*.*+\*#', '', $sPhp); # Removing PHP comments
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
         return $sHtml;
91 94
     }
92 95
 
96
+    /**
97
+     * @param string|boolean $sContent
98
+     */
93 99
     public function parseCss($sContent)
94 100
     {
95 101
         if ($this->_bJavaCompiler)
@@ -144,6 +150,9 @@  discard block
 block discarded – undo
144 150
         return $sCssMinified;
145 151
     }
146 152
 
153
+    /**
154
+     * @param string|boolean $sContent
155
+     */
147 156
     public function parseJs($sContent)
148 157
     {
149 158
         if ($this->_bJavaCompiler)
Please login to merge, or discard this patch.
_protected/framework/File/File.class.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Check if file exists.
130 130
      *
131
-     * @param array|string $mFile
131
+     * @param string $mFile
132 132
      * @return boolean TRUE if file exists, FALSE otherwise.
133 133
      */
134 134
     public function existFile($mFile)
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      * Creates a directory if they are in an array. If it does not exist and
281 281
      * allows the creation of nested directories specified in the pathname.
282 282
      *
283
-     * @param string|array $mDir
283
+     * @param string $mDir
284 284
      * @param integer (octal) $iMode Default: 0777
285 285
      * @return void
286 286
      * @throws Exception If the file cannot be created.
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      *
331 331
      * @param string $sFrom File or directory.
332 332
      * @param string $sTo File or directory.
333
-     * @return integer|boolean Returns the last line on success, and FALSE on failure.
333
+     * @return string|false Returns the last line on success, and FALSE on failure.
334 334
      */
335 335
     public function systemCopy($sFrom, $sTo)
336 336
     {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      *
373 373
      * @param string $sFrom File or directory.
374 374
      * @param string $sTo File or directory.
375
-     * @return integer|boolean Returns the last line on success, and FALSE on failure.
375
+     * @return string|false Returns the last line on success, and FALSE on failure.
376 376
      */
377 377
     public function systemRename($sFrom, $sTo)
378 378
     {
@@ -426,6 +426,7 @@  discard block
 block discarded – undo
426 426
      * Get the creation/modification time of a file in the Unix timestamp.
427 427
      *
428 428
      * @param string Full path of the file.
429
+     * @param string $sFile
429 430
      * @return integer|boolean Returns the time the file was last modified, or FALSE if it not found.
430 431
      */
431 432
     public function getModifTime($sFile)
@@ -438,6 +439,7 @@  discard block
 block discarded – undo
438 439
      * Shortened form of self::getModifTime()
439 440
      *
440 441
      * @param string Full path of the file.
442
+     * @param string $sFile
441 443
      * @return integer Returns the latest modification time of the file in Unix timestamp.
442 444
      */
443 445
     public static function version($sFile)
Please login to merge, or discard this patch.
_protected/framework/Loader/Autoloader.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -182,6 +182,7 @@
 block discarded – undo
182 182
      * For all classes, hack to remove the namespace, slash and backslash.
183 183
      *
184 184
      * @param string The class name to clean.
185
+     * @param string $sClass
185 186
      * @return string The class cleaned.
186 187
      */
187 188
     private function _clean($sClass)
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,10 +13,9 @@
 block discarded – undo
13 13
 namespace PH7\Framework\Loader;
14 14
 defined('PH7') or exit('Restricted access');
15 15
 
16
-use
17
-PH7\Framework\File\File,
18
-PH7\Framework\Registry\Registry,
19
-PH7\Framework\Date\Various as VDate;
16
+use PH7\Framework\File\File;
17
+use PH7\Framework\Registry\Registry;
18
+use PH7\Framework\Date\Various as VDate;
20 19
 
21 20
 /**
22 21
  * We include the Singleton trait before use, because at this stage the class can not load the trait automatically.
Please login to merge, or discard this patch.