Completed
Branch master (b53644)
by Pierre-Henry
33:47
created
_protected/app/system/core/assets/file/UpgradeCoreFile.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     /**
94 94
      * Checks and returns the correct needed version for the current pH7CMS installation.
95 95
      *
96
-     * @return mixed (string | boolean) The version needed number for the current pH7CMS installation.
96
+     * @return string (string | boolean) The version needed number for the current pH7CMS installation.
97 97
      */
98 98
     public function getNextVersion()
99 99
     {
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,13 +12,12 @@
 block discarded – undo
12 12
 namespace PH7;
13 13
 defined('PH7') or exit('Restricted access');
14 14
 
15
-use
16
-PH7\Framework\Core\Kernel,
17
-PH7\Framework\Config\Config,
18
-PH7\Framework\Mvc\Model\DbConfig,
19
-PH7\Framework\Mvc\Request\Http,
20
-PH7\Framework\Security\Version,
21
-PH7\Framework\File as F;
15
+use PH7\Framework\Core\Kernel;
16
+use PH7\Framework\Config\Config;
17
+use PH7\Framework\Mvc\Model\DbConfig;
18
+use PH7\Framework\Mvc\Request\Http;
19
+use PH7\Framework\Security\Version;
20
+use PH7\Framework\File as F;
22 21
 
23 22
 @set_time_limit(0);
24 23
 @ini_set('memory_limit', '528M');
Please login to merge, or discard this patch.
_protected/app/system/core/classes/AdsCore.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * Checks Ads Table.
35 35
      *
36
+     * @param string $sTable
36 37
      * @return mixed (string or void if table is not valid) Returns the table if it is correct.
37 38
      * @throws If the table is not valid, it throws an exception and displays an error message with the method \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() and exit().
38 39
      */
@@ -54,7 +55,7 @@  discard block
 block discarded – undo
54 55
      * Convert table to Ads's ID.
55 56
      *
56 57
      * @param string $sTable
57
-     * @return mixed (string or void if table is not valid) Returns the table if it is correct.
58
+     * @return string (string or void if table is not valid) Returns the table if it is correct.
58 59
      * @throws If the table is not valid, it throws an exception and displays an error message with the method \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() and exit().
59 60
      */
60 61
     public static function convertTableToId($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\Request\Http, PH7\Framework\Pattern\Statik;
10
+use PH7\Framework\Mvc\Request\Http;
11
+use PH7\Framework\Pattern\Statik;
11 12
 
12 13
 class AdsCore extends Framework\Ads\Ads
13 14
 {
Please login to merge, or discard this patch.
_protected/app/system/core/classes/design/CommentDesignCore.php 1 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\Pattern\Statik, PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Pattern\Statik;
11
+use PH7\Framework\Mvc\Router\Uri;
11 12
 
12 13
 class CommentDesignCore
13 14
 {
Please login to merge, or discard this patch.
_protected/app/system/core/classes/design/RatingDesignCore.php 1 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\Layout\Html\Design, PH7\Framework\Pattern\Statik;
10
+use PH7\Framework\Layout\Html\Design;
11
+use PH7\Framework\Pattern\Statik;
11 12
 
12 13
 class RatingDesignCore
13 14
 {
Please login to merge, or discard this patch.
_protected/app/system/core/classes/design/TwoFactorAuthDesignCore.php 1 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\Pattern\Statik, PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Pattern\Statik;
11
+use PH7\Framework\Mvc\Router\Uri;
11 12
 
12 13
 class TwoFactorAuthDesignCore
13 14
 {
Please login to merge, or discard this patch.
app/system/core/forms/processing/ChangePasswordCoreFormProcess.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header;
12
-
13 11
 /** For "user", "affiliate" and "admin" modules **/
14 12
 class ChangePasswordCoreFormProcess extends Form
15 13
 {
Please login to merge, or discard this patch.
_protected/app/system/core/forms/processing/DeleteUserCoreFormProcess.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,11 +8,10 @@
 block discarded – undo
8 8
 namespace PH7;
9 9
 defined('PH7') or exit('Restricted access');
10 10
 
11
-use
12
-PH7\Framework\Mvc\Model\DbConfig,
13
-PH7\Framework\Mail\Mail,
14
-PH7\Framework\Mvc\Router\Uri,
15
-PH7\Framework\Url\Header;
11
+use PH7\Framework\Mvc\Model\DbConfig;
12
+use PH7\Framework\Mail\Mail;
13
+use PH7\Framework\Mvc\Router\Uri;
14
+use PH7\Framework\Url\Header;
16 15
 
17 16
 /** For "user" and "affiliate" modules **/
18 17
 class DeleteUserCoreFormProcess extends Form
Please login to merge, or discard this patch.
_protected/app/system/core/models/AdminCoreModel.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -17,6 +17,10 @@  discard block
 block discarded – undo
17 17
 {
18 18
     const CACHE_GROUP = 'db/sys/mod/admin';
19 19
 
20
+    /**
21
+     * @param integer $iOffset
22
+     * @param integer $iLimit
23
+     */
20 24
     public function browse($iOffset, $iLimit, $sTable = 'Members')
21 25
     {
22 26
         Various::checkModelTable($sTable);
@@ -34,6 +38,11 @@  discard block
 block discarded – undo
34 38
         return $rStmt->fetchAll(\PDO::FETCH_OBJ);
35 39
     }
36 40
 
41
+    /**
42
+     * @param boolean $bCount
43
+     * @param null|integer $iOffset
44
+     * @param null|integer $iLimit
45
+     */
37 46
     public function searchUser($mWhat, $sWhere, $iGroupId, $iBanned, $bCount, $sOrderBy, $sSort, $iOffset, $iLimit)
38 47
     {
39 48
         $bCount = (bool) $bCount;
@@ -74,6 +83,9 @@  discard block
 block discarded – undo
74 83
         }
75 84
     }
76 85
 
86
+    /**
87
+     * @param integer $iBan
88
+     */
77 89
     public function ban($iProfileId, $iBan, $sTable = 'Members')
78 90
     {
79 91
         Various::checkModelTable($sTable);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,8 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Mvc\Model\Engine\Db,
12
-PH7\Framework\Mvc\Model\Engine\Record,
13
-PH7\Framework\Mvc\Model\Engine\Util\Various;
10
+use PH7\Framework\Mvc\Model\Engine\Db;
11
+use PH7\Framework\Mvc\Model\Engine\Util\Various;
14 12
 
15 13
 // Abstract Class
16 14
 class AdminCoreModel extends UserCoreModel
Please login to merge, or discard this patch.
_protected/app/system/core/models/DataCoreModel.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -14,6 +14,11 @@  discard block
 block discarded – undo
14 14
 
15 15
     const TB_PICTURE = 'Pictures', TB_VIDEO = 'Videos', MAX_ITEMS = 1000;
16 16
 
17
+    /**
18
+     * @param string $sTable
19
+     * @param integer $iOffset
20
+     * @param integer $iLimit
21
+     */
17 22
     public function getPicsVids($sTable, $sOrder, $iOffset, $iLimit)
18 23
     {
19 24
         $iOffset = (int) $iOffset;
@@ -29,6 +34,10 @@  discard block
 block discarded – undo
29 34
         return $oData;
30 35
     }
31 36
 
37
+    /**
38
+     * @param integer $iOffset
39
+     * @param integer $iLimit
40
+     */
32 41
     public function getForumsPosts($sOrder, $iOffset, $iLimit)
33 42
     {
34 43
         $iOffset = (int) $iOffset;
Please login to merge, or discard this patch.