Completed
Push — master ( 5f640f...f30f41 )
by Pierre-Henry
34:09
created
_protected/app/system/modules/video/forms/processing/VideoFormProcess.php 1 patch
Unused Use Statements   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,13 +15,12 @@
 block discarded – undo
15 15
 namespace PH7;
16 16
 defined('PH7') or exit('Restricted access');
17 17
 
18
-use
19
-PH7\Framework\Util\Various,
20
-PH7\Framework\Mvc\Model\DbConfig,
21
-PH7\Framework\Mvc\Router\Uri,
22
-PH7\Framework\Url\Header,
23
-PH7\Framework\File as F,
24
-PH7\Framework\Video as V;
18
+use PH7\Framework\Util\Various;
19
+use PH7\Framework\Mvc\Model\DbConfig;
20
+use PH7\Framework\Mvc\Router\Uri;
21
+use PH7\Framework\Url\Header;
22
+use PH7\Framework\File as F;
23
+use PH7\Framework\Video as V;
25 24
 
26 25
 class VideoFormProcess extends Form
27 26
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/video/forms/VideoForm.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,10 @@
 block discarded – undo
7 7
  */
8 8
 namespace PH7;
9 9
 
10
-use
11
-PH7\Framework\Session\Session,
12
-PH7\Framework\Mvc\Model\DbConfig,
13
-PH7\Framework\Mvc\Request\Http,
14
-PH7\Framework\Mvc\Router\Uri;
10
+use PH7\Framework\Session\Session;
11
+use PH7\Framework\Mvc\Model\DbConfig;
12
+use PH7\Framework\Mvc\Request\Http;
13
+use PH7\Framework\Mvc\Router\Uri;
15 14
 
16 15
 class VideoForm
17 16
 {
Please login to merge, or discard this patch.
_protected/app/system/modules/video/models/VideoModel.php 1 patch
Doc Comments   +29 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
 class VideoModel extends VideoCoreModel
13 13
 {
14 14
 
15
+    /**
16
+     * @param string $sThumb
17
+     */
15 18
     public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1)
16 19
     {
17 20
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('AlbumsVideos') . '(profileId, name, description, thumb, createdDate, approved)
@@ -25,6 +28,13 @@  discard block
 block discarded – undo
25 28
         return $rStmt->execute();
26 29
     }
27 30
 
31
+    /**
32
+     * @param string $iProfileId
33
+     * @param integer $iAlbumId
34
+     * @param string $sFile
35
+     * @param string $sThumb
36
+     * @param string $sCreatedDate
37
+     */
28 38
     public function addVideo($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sThumb, $sDuration, $sCreatedDate, $iApproved = 1)
29 39
     {
30 40
         $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Videos') . '(profileId, albumId, title, description, file, thumb, duration, createdDate, approved)
@@ -49,6 +59,9 @@  discard block
 block discarded – undo
49 59
         return $rStmt->execute();
50 60
     }
51 61
 
62
+    /**
63
+     * @param string $iProfileId
64
+     */
52 65
     public function getAlbumsName($iProfileId)
53 66
     {
54 67
         $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME);
@@ -66,6 +79,13 @@  discard block
 block discarded – undo
66 79
         return $oData;
67 80
     }
68 81
 
82
+    /**
83
+     * @param string $iProfileId
84
+     * @param string $iAlbumId
85
+     * @param string $iVideoId
86
+     * @param integer $iOffset
87
+     * @param integer $iLimit
88
+     */
69 89
     public function video($iProfileId, $iAlbumId, $iVideoId = null, $iApproved = 1, $iOffset, $iLimit)
70 90
     {
71 91
         $this->cache->start(self::CACHE_GROUP, 'video' . $iProfileId . $iAlbumId . $iVideoId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME);
@@ -130,6 +150,9 @@  discard block
 block discarded – undo
130 150
         return $iData;
131 151
     }
132 152
 
153
+    /**
154
+     * @param integer $iAlbumId
155
+     */
133 156
     public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate)
134 157
     {
135 158
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('AlbumsVideos') . 'SET name =:name, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId');
@@ -141,6 +164,12 @@  discard block
 block discarded – undo
141 164
         return $rStmt->execute();
142 165
     }
143 166
 
167
+    /**
168
+     * @param string $iProfileId
169
+     * @param integer $iAlbumId
170
+     * @param integer $iVideoId
171
+     * @param string $sUpdatedDate
172
+     */
144 173
     public function updateVideo($iProfileId, $iAlbumId, $iVideoId, $sTitle, $sDescription, $sUpdatedDate)
145 174
     {
146 175
         $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Videos') . 'SET title =:title, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId AND videoId=:videoId');
Please login to merge, or discard this patch.
_protected/app/system/modules/xml/inc/class/DateFormat.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @param char $cFormat
41
+     * @param string $cFormat
42 42
      * @param string $sDate
43 43
      * @return string
44 44
      * @throws \PH7\Framework\Date\Exception If the date format is incorrect.
Please login to merge, or discard this patch.
_protected/framework/Acl/Acl.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @desc Add a role
32 32
      * @param string $sName
33
-     * @return object Instance of Role
33
+     * @return Role Instance of Role
34 34
      */
35 35
     public function addRole($sName)
36 36
     {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @desc Add a resource
47 47
      * @param string $sName
48 48
      * @param array $aAllowed
49
-     * @return object Instance of Resource
49
+     * @return Resource Instance of Resource
50 50
      */
51 51
     public function addResource($sName, array $aAllowed)
52 52
     {
Please login to merge, or discard this patch.
_protected/framework/Analytics/Analytics.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     }
255 255
 
256 256
     /**
257
-     * @return mixed (string | null) Returns the keyword else if neither keyword is used, returns NULL
257
+     * @return string (string | null) Returns the keyword else if neither keyword is used, returns NULL
258 258
      */
259 259
     public function checkKeywords()
260 260
     {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      *
318 318
      * @param string $sToFind
319 319
      * @param string $sContents
320
-     * @return boolean
320
+     * @return integer
321 321
      */
322 322
     protected function find($sToFind, $sContents)
323 323
     {
Please login to merge, or discard this patch.
_protected/framework/Analytics/GoogleAnalyticsAPI.class.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,6 @@
 block discarded – undo
361 361
      * For all the parameters : http://code.google.com/intl/fr-FR/apis/analytics/docs/gdata/gdataReferenceDataFeed.html
362 362
      *
363 363
      * @param string $metrics the metrics
364
-     * @param string $uri the url of the website page (ex : /myurl/)
365 364
      *
366 365
      * @return array
367 366
      */
Please login to merge, or discard this patch.
_protected/framework/Benchmark/Benchmark.class.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,6 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Returns the elapsed time, readable or not
64 64
      *
65
-     * @param  boolean $readable Whether the result must be human readable
66 65
      * @param  string  $format   The format to display (printf format)
67 66
      * @return string|float
68 67
      */
@@ -76,7 +75,6 @@  discard block
 block discarded – undo
76 75
     /**
77 76
      * Returns the memory usage at the end checkpoint
78 77
      *
79
-     * @param  boolean $readable Whether the result must be human readable
80 78
      * @param  string  $format   The format to display (printf format)
81 79
      * @return string|float
82 80
      */
@@ -88,7 +86,6 @@  discard block
 block discarded – undo
88 86
     /**
89 87
      * Returns the memory peak, readable or not
90 88
      *
91
-     * @param  boolean $readable Whether the result must be human readable
92 89
      * @param  string  $format   The format to display (printf format)
93 90
      * @return string|float
94 91
      */
Please login to merge, or discard this patch.
_protected/framework/Cache/Cache.class.php 2 patches
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * Enabled/Disabled the cache.
42 42
      *
43 43
      * @param boolean $bIsEnable
44
-     * @return object this
44
+     * @return Cache this
45 45
      */
46 46
     public function enabled($bIsEnable)
47 47
     {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * If you do not use this method, a default directory will be created.
57 57
      *
58 58
      * @param string $sCacheDir
59
-     * @return object this
59
+     * @return Cache this
60 60
      * @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException An explanatory message if the directory does not exist.
61 61
      */
62 62
     public function setCacheDir($sCacheDir)
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * Sets the cache prefix.
74 74
      *
75 75
      * @param string $sPrefix
76
-     * @return object this
76
+     * @return Cache this
77 77
      */
78 78
     public function setPrefix($sPrefix)
79 79
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * Sets the time expire cache.
86 86
      *
87 87
      * @param integer $iExpire (the time with the 'touch' function).
88
-     * @return object this
88
+     * @return Cache this
89 89
      */
90 90
     public function setExpire($iExpire)
91 91
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param string $sGroup The Group Cache (This creates a folder).
102 102
      * @param string $sId (The ID for the file).
103 103
      * @param integer $iTtl Cache lifetime. If NULL, the file never expires.
104
-     * @return object this
104
+     * @return Cache this
105 105
      */
106 106
     public function start($sGroup, $sId, $iTtl)
107 107
     {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * Puts the data in the cache.
160 160
      *
161 161
      * @param string $sData
162
-     * @return string (object | null) If the cache is disabled, returns null otherwise returns a this object.
162
+     * @return null|Cache (object | null) If the cache is disabled, returns null otherwise returns a this object.
163 163
      */
164 164
     public function put($sData)
165 165
     {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     /**
174 174
      * Clear the cache.
175 175
      *
176
-     * @return object this
176
+     * @return Cache this
177 177
      */
178 178
     public function clear()
179 179
     {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      *
250 250
      * @access private
251 251
      * @param boolean $bPrint
252
-     * @return mixed (boolean | string) Returns TRUE or a string if successful, FALSE otherwise.
252
+     * @return string (boolean | string) Returns TRUE or a string if successful, FALSE otherwise.
253 253
      */
254 254
     private function _read($bPrint)
255 255
     {
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      *
311 311
      * If the folder cache does not exist, it creates a folder.
312 312
      * @access private
313
-     * @return object this
313
+     * @return Cache this
314 314
      */
315 315
     private function _checkCacheDir()
316 316
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@
 block discarded – undo
13 13
 namespace PH7\Framework\Cache;
14 14
 defined('PH7') or exit('Restricted access');
15 15
 
16
-use PH7\Framework\Core\Kernel, PH7\Framework\Config\Config, PH7\Framework\File\File;
16
+use PH7\Framework\Core\Kernel;
17
+use PH7\Framework\Config\Config;
18
+use PH7\Framework\File\File;
17 19
 
18 20
 class Cache
19 21
 {
Please login to merge, or discard this patch.