Completed
Push — master ( 00e474...9d3fbd )
by Michael
04:26
created
class/oledrion_plugins.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * Retourne l'instance unique de la classe
116 116
      *
117
-     * @return object
117
+     * @return Oledrion_plugins
118 118
      */
119 119
     public static function getInstance()
120 120
     {
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
      * Déclenchement d'une action et appel des plugins liés
200 200
      *
201 201
      * @param  string                     $eventToFire L'action déclenchée
202
-     * @param  object|Oledrion_parameters $parameters  Les paramètres à passer à chaque plugin
203
-     * @return object                     L'objet lui même pour chaîner
202
+     * @param  Oledrion_parameters $parameters  Les paramètres à passer à chaque plugin
203
+     * @return Oledrion_plugins                     L'objet lui même pour chaîner
204 204
      */
205 205
     public function fireAction($eventToFire, Oledrion_parameters $parameters = null)
206 206
     {
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      * Déclenchement d'un filtre et appel des plugins liés
235 235
      *
236 236
      * @param  string                     $eventToFire Le filtre appelé
237
-     * @param  object|Oledrion_parameters $parameters  Les paramètres à passer à chaque plugin
237
+     * @param  Oledrion_parameters $parameters  Les paramètres à passer à chaque plugin
238 238
      * @return object                     Le contenu de l'objet passé en paramètre
239 239
      */
240 240
     public function fireFilter($eventToFire, Oledrion_parameters $parameters)
Please login to merge, or discard this patch.
class/oledrion_products.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
     /**
745 745
      * Retourne le nombre total de produits récents (éventuellement dans une catégorie)
746 746
      *
747
-     * @param  mixed   $category        Array ou Integer
747
+     * @param  integer   $category        Array ou Integer
748 748
      * @param  integer $excludedProduct ID d'un produit à exclure
749 749
      * @return integer
750 750
      */
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
     /**
818 818
      * Retourne le nombre total de produits publiés dans la base en tenant compte des préférences du module
819 819
      *
820
-     * @param  int|intefer $product_cid Catégorie du produit
820
+     * @param  integer $product_cid Catégorie du produit
821 821
      * @return int         Le nombre de produits publiés
822 822
      */
823 823
     public function getTotalPublishedProductsCount($product_cid = 0)
@@ -1223,7 +1223,7 @@  discard block
 block discarded – undo
1223 1223
     /**
1224 1224
      * Clone d'un produit
1225 1225
      *
1226
-     * @param  object|Oledrion_products $originalProduct Le produit à cloner
1226
+     * @param  Oledrion_products $originalProduct Le produit à cloner
1227 1227
      * @return mixed                    Soit l'objet représentant le nouveau produit soit false
1228 1228
      */
1229 1229
     public function cloneProduct(Oledrion_products $originalProduct)
Please login to merge, or discard this patch.
class/oledrion_products_list.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      * Supprime un produit de toutes les listes
75 75
      *
76 76
      * @param  integer $productlist_product_id
77
-     * @return booelan
77
+     * @return boolean
78 78
      */
79 79
     public function deleteProductFromLists($productlist_product_id)
80 80
     {
Please login to merge, or discard this patch.
class/oledrion_shelf_parameters.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Réinitialisation des valeurs
46 46
      *
47
-     * @return object
47
+     * @return Oledrion_shelf_parameters
48 48
      */
49 49
     public function resetDefaultValues()
50 50
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * Positione la valeur de début
78 78
      *
79 79
      * @param  integer $value
80
-     * @return object
80
+     * @return Oledrion_shelf_parameters
81 81
      */
82 82
     public function setStart($value)
83 83
     {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * Fixe le nombre maximum d'enregistrements à retourner
91 91
      *
92 92
      * @param  integer $value
93
-     * @return object
93
+     * @return Oledrion_shelf_parameters
94 94
      */
95 95
     public function setLimit($value)
96 96
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * Fixe la catégorie à utiliser
104 104
      *
105 105
      * @param  integer $value
106
-     * @return object
106
+     * @return Oledrion_shelf_parameters
107 107
      */
108 108
     public function setCategory($value)
109 109
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * Fixe la zone qui sert de tri
117 117
      *
118 118
      * @param  string $value
119
-     * @return object
119
+     * @return Oledrion_shelf_parameters
120 120
      */
121 121
     public function setSort($value)
122 122
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * Fixe l'ordre de tri
130 130
      *
131 131
      * @param  string $value
132
-     * @return array
132
+     * @return Oledrion_shelf_parameters
133 133
      */
134 134
     public function setOrder($value)
135 135
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * Fixe la liste des produits à exclure
143 143
      *
144 144
      * @param  mixed $value
145
-     * @return string
145
+     * @return Oledrion_shelf_parameters
146 146
      */
147 147
     public function setExcluded($value)
148 148
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * Indique s'il faut retourner les utilisateurs Xoops
156 156
      *
157 157
      * @param  boolean $value
158
-     * @return object
158
+     * @return Oledrion_shelf_parameters
159 159
      */
160 160
     public function setWithXoopsUser($value)
161 161
     {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * Indique s'il faut retourner les produits relatifs
169 169
      *
170 170
      * @param  boolean $value
171
-     * @return object
171
+     * @return Oledrion_shelf_parameters
172 172
      */
173 173
     public function setWithRelatedProducts($value)
174 174
     {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      * Indique s'il faut retourner les quantités
182 182
      *
183 183
      * @param  boolean $value
184
-     * @return object
184
+     * @return Oledrion_shelf_parameters
185 185
      */
186 186
     public function setWithQuantity($value)
187 187
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      * Fixe le type de produits à retourner
195 195
      *
196 196
      * @param  string $value
197
-     * @return object
197
+     * @return Oledrion_shelf_parameters
198 198
      */
199 199
     public function setProductsType($value)
200 200
     {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * Indique s'il faut retourner seulement les mois
208 208
      *
209 209
      * @param  boolean $value
210
-     * @return object
210
+     * @return Oledrion_shelf_parameters
211 211
      */
212 212
     public function setThisMonthOnly($value)
213 213
     {
Please login to merge, or discard this patch.
class/oledrion_utils.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * Access the only instance of this class
43 43
      *
44
-     * @return object
44
+     * @return Oledrion_utils
45 45
      *
46 46
      * @static
47 47
      * @staticvar   object
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     /**
298 298
      * Send an email from a template to a list of recipients
299 299
      *
300
-     * @param         $tplName
300
+     * @param         string $tplName
301 301
      * @param  array  $recipients List of recipients
302 302
      * @param  string $subject    Email's subject
303 303
      * @param  array  $variables  Varirables to give to the template
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
     /**
496 496
      * Vérifie que l'utilisateur courant fait partie du groupe des administrateurs
497 497
      *
498
-     * @return booleean Admin or not
498
+     * @return boolean Admin or not
499 499
      */
500 500
     public static function isAdmin()
501 501
     {
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
      * @param  null    $uploadMaxSize
1134 1134
      * @param  null    $maxWidth
1135 1135
      * @param  null    $maxHeight
1136
-     * @return mixed   True si l'upload s'est bien déroulé sinon le message d'erreur correspondant
1136
+     * @return boolean|string   True si l'upload s'est bien déroulé sinon le message d'erreur correspondant
1137 1137
      */
1138 1138
     public static function uploadFile(
1139 1139
         $indice,
@@ -1293,7 +1293,7 @@  discard block
 block discarded – undo
1293 1293
     }
1294 1294
 
1295 1295
     /**
1296
-     * @param $string
1296
+     * @param string $string
1297 1297
      * @return string
1298 1298
      */
1299 1299
     public static function close_tags($string)
@@ -1637,7 +1637,7 @@  discard block
 block discarded – undo
1637 1637
      *
1638 1638
      * @param  string $path     The file's path
1639 1639
      * @param  string $filename The filename
1640
-     * @return mixed  If the copy succeed, the new filename else false
1640
+     * @return string|false  If the copy succeed, the new filename else false
1641 1641
      * @since 2.1
1642 1642
      */
1643 1643
     public function duplicateFile($path, $filename)
@@ -1720,7 +1720,7 @@  discard block
 block discarded – undo
1720 1720
      * Create the <option> of an html select
1721 1721
      *
1722 1722
      * @param  array $array   Array of index and labels
1723
-     * @param  mixed $default the default value
1723
+     * @param  integer $default the default value
1724 1724
      * @param  bool  $withNull
1725 1725
      * @return string
1726 1726
      * @since 2.3.2009.03.13
@@ -1751,8 +1751,8 @@  discard block
 block discarded – undo
1751 1751
      * Creates an html select
1752 1752
      *
1753 1753
      * @param  string  $selectName Selector's name
1754
-     * @param  array   $array      Options
1755
-     * @param  mixed   $default    Default's value
1754
+     * @param  string[]   $array      Options
1755
+     * @param  integer   $default    Default's value
1756 1756
      * @param  boolean $withNull   Do we include a null option ?
1757 1757
      * @return string
1758 1758
      * @since 2.3.2009.03.13
@@ -1851,7 +1851,7 @@  discard block
 block discarded – undo
1851 1851
      * @package       Oledrion
1852 1852
      * @author        Instant Zero (http://xoops.instant-zero.com)
1853 1853
      * @copyright (c) Instant Zero
1854
-     * @param $fieldname
1854
+     * @param string $fieldname
1855 1855
      * @param $table
1856 1856
      * @return bool
1857 1857
      */
@@ -1887,7 +1887,7 @@  discard block
 block discarded – undo
1887 1887
      * @package       Oledrion
1888 1888
      * @author        Instant Zero (http://xoops.instant-zero.com)
1889 1889
      * @copyright (c) Instant Zero
1890
-     * @param $field
1890
+     * @param string $field
1891 1891
      * @param $table
1892 1892
      * @return
1893 1893
      */
Please login to merge, or discard this patch.
class/tree.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -244,10 +244,10 @@
 block discarded – undo
244 244
 
245 245
     /**
246 246
      * Internal function used by makeTreeAsArray
247
-     * @param        $fieldName
248
-     * @param        $key
247
+     * @param        string $fieldName
248
+     * @param        integer $key
249 249
      * @param        $ret
250
-     * @param        $prefix_orig
250
+     * @param        string $prefix_orig
251 251
      * @param string $prefix_curr
252 252
      */
253 253
     public function _recursiveMakeTreeAsArray($fieldName, $key, &$ret, $prefix_orig, $prefix_curr = '')
Please login to merge, or discard this patch.