Completed
Push — master ( 3024c9...954431 )
by Michael
04:21
created
class/utilities.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * Access the only instance of this class
44 44
      *
45
-     * @return XoopsObject
45
+     * @return XoopstubeUtilities
46 46
      *
47 47
      * @static
48 48
      * @staticvar   object
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     /**
417 417
      * Vérifie que l'utilisateur courant fait partie du groupe des administrateurs
418 418
      *
419
-     * @return booleean Admin or not
419
+     * @return boolean Admin or not
420 420
      */
421 421
     public static function isAdmin()
422 422
     {
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
     }
444 444
 
445 445
     /**
446
-     * @return bool|string
446
+     * @return string
447 447
      */
448 448
     public static function getCurrentSQLDateTime()
449 449
     {
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      *
485 485
      * @param $dateTime
486 486
      *
487
-     * @return bool|string
487
+     * @return string
488 488
      */
489 489
     public static function sqlDateTimeToFrench($dateTime)
490 490
     {
@@ -1011,7 +1011,7 @@  discard block
 block discarded – undo
1011 1011
      * @param null    $maxWidth
1012 1012
      * @param null    $maxHeight
1013 1013
      *
1014
-     * @return mixed True si l'upload s'est bien déroulé sinon le message d'erreur correspondant
1014
+     * @return boolean|string True si l'upload s'est bien déroulé sinon le message d'erreur correspondant
1015 1015
      */
1016 1016
     public static function uploadFile($indice, $dstpath = XOOPS_UPLOAD_PATH, $mimeTypes = null, $uploadMaxSize = null, $maxWidth = null, $maxHeight = null)
1017 1017
     {
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
      * @param integer $startingDate Date de départ (timestamp)
1116 1116
      *
1117 1117
      * @internal param int $durations Durée en jours
1118
-     * @return bool|string
1118
+     * @return string
1119 1119
      */
1120 1120
     public static function addDaysToDate($duration = 1, $startingDate = 0)
1121 1121
     {
@@ -1158,7 +1158,7 @@  discard block
 block discarded – undo
1158 1158
     }
1159 1159
 
1160 1160
     /**
1161
-     * @param $string
1161
+     * @param string $string
1162 1162
      *
1163 1163
      * @return string
1164 1164
      */
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
      * @param string $path     The file's path
1514 1514
      * @param string $filename The filename
1515 1515
      *
1516
-     * @return mixed If the copy succeed, the new filename else false
1516
+     * @return string|false If the copy succeed, the new filename else false
1517 1517
      * @since 2.1
1518 1518
      */
1519 1519
     public static function duplicateFile($path, $filename)
@@ -1600,7 +1600,7 @@  discard block
 block discarded – undo
1600 1600
      * Create the <option> of an html select
1601 1601
      *
1602 1602
      * @param array $array   Array of index and labels
1603
-     * @param mixed $default the default value
1603
+     * @param integer $default the default value
1604 1604
      * @param bool  $withNull
1605 1605
      *
1606 1606
      * @return string
@@ -2471,7 +2471,7 @@  discard block
 block discarded – undo
2471 2471
      * @param string $extra
2472 2472
      * @param int    $scount
2473 2473
      *
2474
-     * @return bool|null
2474
+     * @return false|null
2475 2475
      */
2476 2476
     public static function xtubeRenderAdminMenu($header = '', $menu = '', $extra = '', $scount = 4)
2477 2477
     {
@@ -2873,7 +2873,7 @@  discard block
 block discarded – undo
2873 2873
      * @param string $_this
2874 2874
      * @param        $align
2875 2875
      *
2876
-     * @return bool|null
2876
+     * @return false|null
2877 2877
      */
2878 2878
     public static function xtubeSetPageNavigationCategoryList($pubrowamount, $start, $art = 'art', $_this = '', $align)
2879 2879
     {
@@ -3010,7 +3010,7 @@  discard block
 block discarded – undo
3010 3010
      * @param string $_this
3011 3011
      * @param        $align
3012 3012
      *
3013
-     * @return bool|null
3013
+     * @return false|null
3014 3014
      */
3015 3015
     public static function xtubeSetPageNavigationVideoList($pubrowamount, $start, $art = 'art', $_this = '', $align)
3016 3016
     {
@@ -3077,7 +3077,7 @@  discard block
 block discarded – undo
3077 3077
 
3078 3078
     // Check if Tag module is installed
3079 3079
     /**
3080
-     * @return bool
3080
+     * @return null|boolean
3081 3081
      */
3082 3082
     public static function xtubeIsModuleTagInstalled()
3083 3083
     {
Please login to merge, or discard this patch.