Completed
Branch master (b38d03)
by Pierre-Henry
34:04
created
_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.
_protected/framework/Navigation/Browser.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * Are we capable to receive gzipped data?
79 79
      *
80
-     * @return string|boolean Returns the encoding if it is accepted, false otherwise. Maybe additional check for Mac OS...
80
+     * @return false|string Returns the encoding if it is accepted, false otherwise. Maybe additional check for Mac OS...
81 81
      */
82 82
     public function encoding()
83 83
     {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-     * @return string|null The HTTP User Agent is it exists, otherwise the NULL value.
147
+     * @return string The HTTP User Agent is it exists, otherwise the NULL value.
148 148
      */
149 149
     public function getUserAgent()
150 150
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Api.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     /**
80 80
      * @param string $sUrl
81 81
      *
82
-     * @return string|boolean The embed URL if id is valid, false otherwise.
82
+     * @return false|string The embed URL if id is valid, false otherwise.
83 83
      */
84 84
     public function getEmbedUrl($sUrl)
85 85
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Dailymotion.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @param string $sUrl
24 24
      *
25
-     * @return string|boolean Returns the video embed URL if it was found, FALSE otherwise.
25
+     * @return false|string Returns the video embed URL if it was found, FALSE otherwise.
26 26
      */
27 27
     public function getVideo($sUrl)
28 28
     {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * @param string $sUrl
63 63
      *
64
-     * @return integer|boolean Returns the ID of the video if it was found, FALSE otherwise.
64
+     * @return string|false Returns the ID of the video if it was found, FALSE otherwise.
65 65
      */
66 66
     public function getVideoId($sUrl)
67 67
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Metacafe.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @param string $sUrl
24 24
      *
25
-     * @return string|boolean Returns the embed video URL if found, FALSE otherwise.
25
+     * @return false|string Returns the embed video URL if found, FALSE otherwise.
26 26
      */
27 27
     public function getVideo($sUrl)
28 28
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * @param string $sUrl
128 128
      *
129
-     * @return integer|boolean Returns the ID of the video if it was found, FALSE otherwise.
129
+     * @return string|false Returns the ID of the video if it was found, FALSE otherwise.
130 130
      */
131 131
     public function getVideoId($sUrl)
132 132
     {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @param string $sUrl
141 141
      *
142
-     * @return boolean|string
142
+     * @return false|string
143 143
      */
144 144
     public function getEmbedUrl($sUrl)
145 145
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Vimeo.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @param string $sUrl
24 24
      *
25
-     * @return string|boolean Returns the video embed URL if it was found and is valid, FALSE otherwise.
25
+     * @return false|string Returns the video embed URL if it was found and is valid, FALSE otherwise.
26 26
      */
27 27
     public function getVideo($sUrl)
28 28
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * @param string $sUrl
72 72
      *
73
-     * @return integer|boolean Returns the ID of the video if it was found, FALSE otherwise.
73
+     * @return string|false Returns the ID of the video if it was found, FALSE otherwise.
74 74
      */
75 75
     public function getVideoId($sUrl)
76 76
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Youtube.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * @param string $sUrl
28 28
      *
29
-     * @return string|boolean Returns the embed video URL if found, FALSE otherwise.
29
+     * @return false|string Returns the embed video URL if found, FALSE otherwise.
30 30
      */
31 31
     public function getVideo($sUrl)
32 32
     {
Please login to merge, or discard this patch.
_protected/framework/Analytics/Analytics.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
      * @param string $sToFind
348 348
      * @param string $sContents
349 349
      *
350
-     * @return boolean
350
+     * @return integer
351 351
      */
352 352
     protected function find($sToFind, $sContents)
353 353
     {
Please login to merge, or discard this patch.