Completed
Push — master ( f30f41...c0e84a )
by Pierre-Henry
35:53
created
_protected/app/system/core/models/GameCoreModel.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -14,6 +14,12 @@
 block discarded – undo
14 14
 
15 15
     const CACHE_GROUP = 'db/sys/mod/game', CACHE_TIME = 93312000;
16 16
 
17
+    /**
18
+     * @param string $sTitle
19
+     * @param string $iGameId
20
+     * @param integer $iOffset
21
+     * @param integer $iLimit
22
+     */
17 23
     public function get($sTitle = null, $iGameId = null, $iOffset, $iLimit, $sOrder = SearchCoreModel::NAME)
18 24
     {
19 25
         $iOffset = (int) $iOffset;
Please login to merge, or discard this patch.
_protected/app/system/core/models/LikeCoreModel.php 1 patch
Doc Comments   +10 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,10 @@  discard block
 block discarded – undo
40 46
         return $rStmt->execute();
41 47
     }
42 48
 
49
+    /**
50
+     * @param string $sKey
51
+     * @param string $fLastIp
52
+     */
43 53
     public function insert($sKey, $fLastIp)
44 54
     {
45 55
         $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/app/system/core/models/MailCoreModel.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 class MailCoreModel extends Framework\Mvc\Model\Engine\Model
14 14
 {
15 15
 
16
+    /**
17
+     * @param string $iProfileId
18
+     */
16 19
     public static function countUnreadMsg($iProfileId)
17 20
     {
18 21
         $rStmt = Db::getInstance()->prepare('SELECT COUNT(status) AS unread FROM' . Db::prefix('Messages') . 'WHERE recipient = :recipient AND status = \'1\' AND NOT FIND_IN_SET(\'recipient\', toDelete)');
Please login to merge, or discard this patch.
_protected/app/system/core/models/RatingCoreModel.php 2 patches
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -15,6 +15,10 @@  discard block
 block discarded – undo
15 15
 
16 16
     const CACHE_GROUP = 'db/sys/core/rating', CACHE_TIME = 604800;
17 17
 
18
+    /**
19
+     * @param integer $iId
20
+     * @param string $sTable
21
+     */
18 22
     public function getVote($iId, $sTable)
19 23
     {
20 24
         $this->cache->start(self::CACHE_GROUP, 'getVote' . $iId . $sTable, static::
@@ -38,6 +42,10 @@  discard block
 block discarded – undo
38 42
         return $iData;
39 43
     }
40 44
 
45
+    /**
46
+     * @param integer $iId
47
+     * @param string $sTable
48
+     */
41 49
     public function getScore($iId, $sTable)
42 50
     {
43 51
         $this->cache->start(self::CACHE_GROUP, 'getScore' . $iId . $sTable, static::
@@ -61,6 +69,10 @@  discard block
 block discarded – undo
61 69
         return $fData;
62 70
     }
63 71
 
72
+    /**
73
+     * @param integer $iId
74
+     * @param string $sTable
75
+     */
64 76
     public function updateVotes($iId, $sTable)
65 77
     {
66 78
 
@@ -73,6 +85,10 @@  discard block
 block discarded – undo
73 85
         return $rStmt->execute();
74 86
     }
75 87
 
88
+    /**
89
+     * @param integer $iId
90
+     * @param string $sTable
91
+     */
76 92
     public function updateScore($fScore, $iId, $sTable)
77 93
     {
78 94
         $sTable = Various::checkTable($sTable);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,8 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use PH7\Framework\Mvc\Model\Engine\Db, PH7\Framework\Mvc\Model\Engine\Util\Various;
10
+use PH7\Framework\Mvc\Model\Engine\Db;
11
+use PH7\Framework\Mvc\Model\Engine\Util\Various;
11 12
 
12 13
 // Abstract Class
13 14
 class RatingCoreModel extends Framework\Mvc\Model\Engine\Model
Please login to merge, or discard this patch.
_protected/app/system/core/models/UserCoreModel.php 2 patches
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $sEmail
57 57
      * @param string $sPassword
58 58
      * @param string $sTable Default 'Members'
59
-     * @return mixed (boolean "true" or string "message")
59
+     * @return string|boolean (boolean "true" or string "message")
60 60
      */
61 61
     public function login($sEmail, $sPassword, $sTable = 'Members')
62 62
     {
@@ -388,6 +388,7 @@  discard block
 block discarded – undo
388 388
      *
389 389
      * @param integer iProfileId
390 390
      * @param integer $iStatus Values: 0 = Offline, 1 = Online, 2 = Busy, 3 = Away
391
+     * @param integer $iProfileId
391 392
      * @return void
392 393
      */
393 394
     public function setUserStatus($iProfileId, $iStatus)
@@ -528,7 +529,7 @@  discard block
 block discarded – undo
528 529
      *
529 530
      * @param string $sEmail User's email address.
530 531
      * @param string $sTable Default 'Members'
531
-     * @return mixed (object | boolean) Returns the data member (email, username, firstName, hashValidation) on success, otherwise returns false if there is an error.
532
+     * @return string (object | boolean) Returns the data member (email, username, firstName, hashValidation) on success, otherwise returns false if there is an error.
532 533
      */
533 534
     public function getHashValidation($sEmail, $sTable = 'Members')
534 535
     {
@@ -682,7 +683,7 @@  discard block
 block discarded – undo
682 683
      *
683 684
      * @param integer $iProfileId
684 685
      * @param integer $iApproved (1 = approved | 0 = pending | NULL = approved and pending) Default NULL
685
-     * @return object The Avatar (SQL alias is pic), profileId and approvedAvatar
686
+     * @return string The Avatar (SQL alias is pic), profileId and approvedAvatar
686 687
      */
687 688
     public function getAvatar($iProfileId, $iApproved = null)
688 689
     {
@@ -936,7 +937,7 @@  discard block
 block discarded – undo
936 937
      * @param string $sOrder
937 938
      * @param integer $iOffset
938 939
      * @param integer $iLimit
939
-     * @return mixed (object | integer) object for the users list returned or integer for the total number users returned.
940
+     * @return integer (object | integer) object for the users list returned or integer for the total number users returned.
940 941
      */
941 942
     public function getGeoProfiles($sCountry, $sCity, $bCount, $sOrder, $iOffset, $iLimit)
942 943
     {
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,12 +10,11 @@
 block discarded – undo
10 10
  */
11 11
 namespace PH7;
12 12
 
13
-use
14
-PH7\Framework\Mvc\Model\Engine\Db,
15
-PH7\Framework\Mvc\Model\DbConfig,
16
-PH7\Framework\Mvc\Model\Engine\Util\Various,
17
-PH7\Framework\Date\CDateTime,
18
-PH7\Framework\Security\Security;
13
+use PH7\Framework\Mvc\Model\Engine\Db;
14
+use PH7\Framework\Mvc\Model\DbConfig;
15
+use PH7\Framework\Mvc\Model\Engine\Util\Various;
16
+use PH7\Framework\Date\CDateTime;
17
+use PH7\Framework\Security\Security;
19 18
 
20 19
 // Abstract Class
21 20
 class UserCoreModel extends Framework\Mvc\Model\Engine\Model
Please login to merge, or discard this patch.
_protected/app/system/core/models/VideoCoreModel.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,6 +18,12 @@
 block discarded – undo
18 18
     CREATED = 'createdDate',
19 19
     UPDATED = 'updatedDate';
20 20
 
21
+    /**
22
+     * @param string $iProfileId
23
+     * @param string $iAlbumId
24
+     * @param integer $iOffset
25
+     * @param integer $iLimit
26
+     */
21 27
     public function album($iProfileId = null, $iAlbumId = null, $iApproved = 1, $iOffset, $iLimit, $sOrder = self::CREATED)
22 28
     {
23 29
         $this->cache->start(self::CACHE_GROUP, 'album' . $iProfileId . $iAlbumId . $iApproved . $iOffset . $iLimit .$sOrder, static::CACHE_TIME);
Please login to merge, or discard this patch.
_protected/app/system/modules/admin123/assets/ajax/AdsAjax.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use PH7\Framework\Mvc\Request\Http, PH7\Framework\Mvc\Model\Design;
11
+use PH7\Framework\Mvc\Request\Http;
12
+use PH7\Framework\Mvc\Model\Design;
12 13
 
13 14
 class AdsAjax
14 15
 {
Please login to merge, or discard this patch.
modules/admin123/assets/ajax/fileManager/elFinderVolumeDriver.class.php 1 patch
Doc Comments   +15 added lines, -21 removed lines patch added patch discarded remove patch
@@ -969,7 +969,6 @@  discard block
 block discarded – undo
969 969
      * Return file info or false on error
970 970
      *
971 971
      * @param  string   $hash      file hash
972
-     * @param  bool     $realpath  add realpath field to file info
973 972
      * @return array|false
974 973
      * @author Dmitry (dio) Levashov
975 974
      **/
@@ -991,7 +990,6 @@  discard block
 block discarded – undo
991 990
      * Return folder info
992 991
      *
993 992
      * @param  string   $hash  folder hash
994
-     * @param  bool     $hidden  return hidden file info
995 993
      * @return array|false
996 994
      * @author Dmitry (dio) Levashov
997 995
      **/
@@ -1311,7 +1309,6 @@  discard block
 block discarded – undo
1311 1309
      *
1312 1310
      * @param  Resource $fp      file pointer
1313 1311
      * @param  string   $dst     destination folder hash
1314
-     * @param  string   $src     file name
1315 1312
      * @param  string   $tmpname file tmp name - required to detect mime type
1316 1313
      * @return array|false
1317 1314
      * @author Dmitry (dio) Levashov
@@ -1399,7 +1396,6 @@  discard block
 block discarded – undo
1399 1396
      * Paste files
1400 1397
      *
1401 1398
      * @param  Object  $volume  source volume
1402
-     * @param  string  $source  file hash
1403 1399
      * @param  string  $dst     destination dir hash
1404 1400
      * @param  bool    $rmSrc   remove source after copy?
1405 1401
      * @return array|false
@@ -1497,7 +1493,7 @@  discard block
 block discarded – undo
1497 1493
      * Return file contents
1498 1494
      *
1499 1495
      * @param  string  $hash  file hash
1500
-     * @return string|false
1496
+     * @return boolean|string
1501 1497
      * @author Dmitry (dio) Levashov
1502 1498
      **/
1503 1499
     public function getContents($hash) {
@@ -1721,7 +1717,7 @@  discard block
 block discarded – undo
1721 1717
      * Return image dimensions
1722 1718
      *
1723 1719
      * @param  string  $hash  file hash
1724
-     * @return array
1720
+     * @return false|string
1725 1721
      * @author Dmitry (dio) Levashov
1726 1722
      **/
1727 1723
     public function dimensions($hash) {
@@ -1817,7 +1813,8 @@  discard block
 block discarded – undo
1817 1813
      * Not implemented
1818 1814
      *
1819 1815
      * @param  string  path
1820
-     * @return mixed
1816
+     * @param string $path
1817
+     * @return string
1821 1818
      * @author Dmitry (dio) Levashov
1822 1819
      **/
1823 1820
     protected function crypt($path) {
@@ -1829,7 +1826,8 @@  discard block
 block discarded – undo
1829 1826
      * Not implemented
1830 1827
      *
1831 1828
      * @param  mixed  hash
1832
-     * @return mixed
1829
+     * @param string $hash
1830
+     * @return string
1833 1831
      * @author Dmitry (dio) Levashov
1834 1832
      **/
1835 1833
     protected function uncrypt($hash) {
@@ -1857,7 +1855,6 @@  discard block
 block discarded – undo
1857 1855
     /**
1858 1856
      * Return new unique name based on file name and suffix
1859 1857
      *
1860
-     * @param  string  $path    file path
1861 1858
      * @param  string  $suffix  suffix append to name
1862 1859
      * @return string
1863 1860
      * @author Dmitry (dio) Levashov
@@ -2329,7 +2326,7 @@  discard block
 block discarded – undo
2329 2326
      * @param  string  $src   source path
2330 2327
      * @param  string  $dst   destination dir path
2331 2328
      * @param  string  $name  new file name (optionaly)
2332
-     * @return string|false
2329
+     * @return string|boolean
2333 2330
      * @author Dmitry (dio) Levashov
2334 2331
      **/
2335 2332
     protected function copy($src, $dst, $name) {
@@ -2378,7 +2375,7 @@  discard block
 block discarded – undo
2378 2375
      * @param  string  $src   source path
2379 2376
      * @param  string  $dst   destination dir path
2380 2377
      * @param  string  $name  new file name
2381
-     * @return string|false
2378
+     * @return string|boolean
2382 2379
      * @author Dmitry (dio) Levashov
2383 2380
      **/
2384 2381
     protected function move($src, $dst, $name) {
@@ -2402,7 +2399,7 @@  discard block
 block discarded – undo
2402 2399
      * @param  string  $src          source file hash
2403 2400
      * @param  string  $destination  destination dir path
2404 2401
      * @param  string  $name         file name
2405
-     * @return string|false
2402
+     * @return boolean|string
2406 2403
      * @author Dmitry (dio) Levashov
2407 2404
      **/
2408 2405
     protected function copyFrom($volume, $src, $destination, $name) {
@@ -2543,7 +2540,7 @@  discard block
 block discarded – undo
2543 2540
      *
2544 2541
      * @param  string  $path  thumnbnail path
2545 2542
      * @param  array   $stat  file stat
2546
-     * @return string|bool
2543
+     * @return boolean
2547 2544
      * @author Dmitry (dio) Levashov
2548 2545
      **/
2549 2546
     protected function canCreateTmb($path, $stat) {
@@ -2560,7 +2557,7 @@  discard block
 block discarded – undo
2560 2557
      *
2561 2558
      * @param  string  $path  thumnbnail path
2562 2559
      * @param  array   $stat  file stat
2563
-     * @return string|bool
2560
+     * @return boolean
2564 2561
      * @author Dmitry (dio) Levashov
2565 2562
      **/
2566 2563
     protected function canResize($path, $stat) {
@@ -2571,7 +2568,6 @@  discard block
 block discarded – undo
2571 2568
      * Create thumnbnail and return it's URL on success
2572 2569
      *
2573 2570
      * @param  string  $path  file path
2574
-     * @param  string  $mime  file mime type
2575 2571
      * @return string|false
2576 2572
      * @author Dmitry (dio) Levashov
2577 2573
      **/
@@ -2988,7 +2984,7 @@  discard block
 block discarded – undo
2988 2984
      *
2989 2985
      * @param  string  $command       command line
2990 2986
      * @param  array   $output        stdout strings
2991
-     * @param  array   $return_var    process exit code
2987
+     * @param  integer   $return_var    process exit code
2992 2988
      * @param  array   $error_output  stderr strings
2993 2989
      * @return int     exit code
2994 2990
      * @author Alexey Sukhotin
@@ -3027,7 +3023,6 @@  discard block
 block discarded – undo
3027 3023
     /**
3028 3024
      * Remove thumbnail
3029 3025
      *
3030
-     * @param  string  $path  file path
3031 3026
      * @return void
3032 3027
      * @author Dmitry (dio) Levashov
3033 3028
      **/
@@ -3064,7 +3059,7 @@  discard block
 block discarded – undo
3064 3059
     * @param  string  $haystack  The string being checked.
3065 3060
     * @param  string  $needle    The string to find in haystack.
3066 3061
     * @param  int     $offset    The search offset. If it is not specified, 0 is used.
3067
-    * @return int|bool
3062
+    * @return integer
3068 3063
     * @author Alexey Sukhotin
3069 3064
     **/
3070 3065
     protected function stripos($haystack , $needle , $offset = 0) {
@@ -3216,7 +3211,6 @@  discard block
 block discarded – undo
3216 3211
      * Open file and return file pointer
3217 3212
      *
3218 3213
      * @param  string  $path  file path
3219
-     * @param  bool    $write open file for writing
3220 3214
      * @return resource|false
3221 3215
      * @author Dmitry (dio) Levashov
3222 3216
      **/
@@ -3269,7 +3263,7 @@  discard block
 block discarded – undo
3269 3263
      * Copy file into another file (only inside one volume)
3270 3264
      *
3271 3265
      * @param  string  $source  source file path
3272
-     * @param  string  $target  target dir path
3266
+     * @param  string  $targetDir  target dir path
3273 3267
      * @param  string  $name    file name
3274 3268
      * @return bool
3275 3269
      * @author Dmitry (dio) Levashov
@@ -3281,7 +3275,7 @@  discard block
 block discarded – undo
3281 3275
      * Return new file path or false.
3282 3276
      *
3283 3277
      * @param  string  $source  source file path
3284
-     * @param  string  $target  target dir path
3278
+     * @param  string  $targetDir  target dir path
3285 3279
      * @param  string  $name    file name
3286 3280
      * @return string|bool
3287 3281
      * @author Dmitry (dio) Levashov
Please login to merge, or discard this patch.
admin123/assets/ajax/fileManager/elFinderVolumeLocalFileSystem.class.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -391,7 +391,6 @@  discard block
 block discarded – undo
391 391
      * Open file and return file pointer
392 392
      *
393 393
      * @param  string  $path  file path
394
-     * @param  bool    $write open file for writing
395 394
      * @return resource|false
396 395
      * @author Dmitry (dio) Levashov
397 396
      **/
@@ -417,7 +416,7 @@  discard block
 block discarded – undo
417 416
      *
418 417
      * @param  string  $path  parent dir path
419 418
      * @param string  $name  new directory name
420
-     * @return string|bool
419
+     * @return string|false
421 420
      * @author Dmitry (dio) Levashov
422 421
      **/
423 422
     protected function _mkdir($path, $name) {
@@ -436,7 +435,7 @@  discard block
 block discarded – undo
436 435
      *
437 436
      * @param  string  $path  parent dir path
438 437
      * @param string  $name  new file name
439
-     * @return string|bool
438
+     * @return string|false
440 439
      * @author Dmitry (dio) Levashov
441 440
      **/
442 441
     protected function _mkfile($path, $name) {
@@ -481,9 +480,9 @@  discard block
 block discarded – undo
481 480
      * Return new file path or false.
482 481
      *
483 482
      * @param  string  $source  source file path
484
-     * @param  string  $target  target dir path
483
+     * @param  string  $targetDir  target dir path
485 484
      * @param  string  $name    file name
486
-     * @return string|bool
485
+     * @return string|false
487 486
      * @author Dmitry (dio) Levashov
488 487
      **/
489 488
     protected function _move($source, $targetDir, $name) {
@@ -520,7 +519,7 @@  discard block
 block discarded – undo
520 519
      * @param  resource  $fp   file pointer
521 520
      * @param  string    $dir  target dir path
522 521
      * @param  string    $name file name
523
-     * @return bool|string
522
+     * @return false|string
524 523
      * @author Dmitry (dio) Levashov
525 524
      **/
526 525
     protected function _save($fp, $dir, $name, $mime, $w, $h) {
@@ -543,7 +542,7 @@  discard block
 block discarded – undo
543 542
      * Get file contents
544 543
      *
545 544
      * @param  string  $path  file path
546
-     * @return string|false
545
+     * @return string
547 546
      * @author Dmitry (dio) Levashov
548 547
      **/
549 548
     protected function _getContents($path) {
@@ -816,7 +815,7 @@  discard block
 block discarded – undo
816 815
      * @param  array   $files  files names list
817 816
      * @param  string  $name   archive name
818 817
      * @param  array   $arc    archiver options
819
-     * @return string|bool
818
+     * @return string|false
820 819
      * @author Dmitry (dio) Levashov,
821 820
      * @author Alexey Sukhotin
822 821
      **/
Please login to merge, or discard this patch.