Completed
Branch master (1016ef)
by Pierre-Henry
35:32
created
_repository/module/fake-admin-panel/config/Permission.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,9 @@
 block discarded – undo
11 11
 
12 12
 namespace PH7;
13 13
 
14
-use
15
-PH7\Framework\Layout\Html\Design,
16
-PH7\Framework\Mvc\Router\Uri,
17
-PH7\Framework\Url\Header;
14
+use PH7\Framework\Layout\Html\Design;
15
+use PH7\Framework\Mvc\Router\Uri;
16
+use PH7\Framework\Url\Header;
18 17
 
19 18
 class Permission extends PermissionCore
20 19
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/admin123/forms/processing/AdsFormProcess.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,11 +9,10 @@
 block discarded – undo
9 9
 
10 10
 defined('PH7') or exit('Restricted access');
11 11
 
12
-use
13
-PH7\Framework\Cache\Cache,
14
-PH7\Framework\Mvc\Request\Http,
15
-PH7\Framework\Mvc\Router\Uri,
16
-PH7\Framework\Url\Header;
12
+use PH7\Framework\Cache\Cache;
13
+use PH7\Framework\Mvc\Request\Http;
14
+use PH7\Framework\Mvc\Router\Uri;
15
+use PH7\Framework\Url\Header;
17 16
 
18 17
 class AdsFormProcess extends Form
19 18
 {
Please login to merge, or discard this patch.
app/system/modules/admin123/forms/processing/DisableModuleFormProcess.php 1 patch
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,9 +9,8 @@
 block discarded – undo
9 9
 
10 10
 defined('PH7') or exit('Restricted access');
11 11
 
12
-use
13
-PH7\Framework\Cache\Cache,
14
-PH7\Framework\Mvc\Model\Module as ModuleModel;
12
+use PH7\Framework\Cache\Cache;
13
+use PH7\Framework\Mvc\Model\Module as ModuleModel;
15 14
 
16 15
 class DisableModuleFormProcess extends Form
17 16
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/blog/controllers/MainController.php 1 patch
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,12 +7,11 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Parse\Emoticon,
12
-PH7\Framework\Navigation\Page,
13
-PH7\Framework\Analytics\Statistic,
14
-PH7\Framework\Mvc\Router\Uri,
15
-PH7\Framework\Url\Header;
10
+use PH7\Framework\Parse\Emoticon;
11
+use PH7\Framework\Navigation\Page;
12
+use PH7\Framework\Analytics\Statistic;
13
+use PH7\Framework\Mvc\Router\Uri;
14
+use PH7\Framework\Url\Header;
16 15
 
17 16
 class MainController extends Controller
18 17
 {
Please login to merge, or discard this patch.
_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/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.