Passed
Push — master ( 9c106a...7b4ed8 )
by Jay
05:53 queued 11s
created
src/Config/Ini/Extended.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace FMUP\Config\Ini;
3 3
 
4
-use FMUP\Config\Exception;
5 4
 use FMUP\Config\Ini;
6 5
 
7 6
 /**
Please login to merge, or discard this patch.
src/Framework.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @return array
78
+     * @return string[]
79 79
      */
80 80
     public function getRoute()
81 81
     {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     }
289 289
 
290 290
     /**
291
-     * @return array
291
+     * @return integer
292 292
      * @codeCoverageIgnore
293 293
      */
294 294
     protected function errorGetLast()
Please login to merge, or discard this patch.
src/Ftp/Driver/Sftp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
 
199 199
     /**
200 200
      * @param string $fileName
201
-     * @param mixed $data
201
+     * @param string $data
202 202
      * @param int $flags
203 203
      * @param resource $context
204 204
      * @return int
Please login to merge, or discard this patch.
src/Logger/Channel/Error.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace FMUP\Logger\Channel;
3 3
 
4
-use FMUP\Request;
5 4
 use Monolog\Formatter\HtmlFormatter;
6 5
 use Monolog\Handler\NativeMailerHandler;
7 6
 use Monolog\Logger;
Please login to merge, or discard this patch.
src/Queue/Driver/Native.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @param Channel $channel
78 78
      * @param string $messageType
79
-     * @return mixed|null
79
+     * @return Message|null
80 80
      * @throws Exception
81 81
      */
82 82
     public function pull(Channel $channel, $messageType = null)
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 
110 110
     /**
111 111
      * @param $queue
112
-     * @param $desiredMsgType
113
-     * @param $msgType
114
-     * @param $maxsize
112
+     * @param integer|null $desiredMsgType
113
+     * @param integer $msgType
114
+     * @param integer $maxsize
115 115
      * @param $message
116
-     * @param bool|true $unSerialize
116
+     * @param boolean $unSerialize
117 117
      * @param int $flags
118
-     * @param null $errorCode
118
+     * @param integer $errorCode
119 119
      * @return bool
120 120
      * @codeCoverageIgnore
121 121
      */
@@ -180,11 +180,11 @@  discard block
 block discarded – undo
180 180
 
181 181
     /**
182 182
      * @param $queue
183
-     * @param $msgType
183
+     * @param integer|null $msgType
184 184
      * @param $message
185
-     * @param bool|true $serialize
186
-     * @param bool|true $blocking
187
-     * @param null $errorCode
185
+     * @param boolean $serialize
186
+     * @param boolean $blocking
187
+     * @param integer|null $errorCode
188 188
      * @return bool
189 189
      * @codeCoverageIgnore
190 190
      */
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
     /**
197 197
      * Secure queue name to be int (due to semaphore)
198
-     * @param string|int $name
198
+     * @param string $name
199 199
      * @return int
200 200
      * @throws Exception
201 201
      */
Please login to merge, or discard this patch.
system/framework.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,6 +74,10 @@  discard block
 block discarded – undo
74 74
     {
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $sys_controller
79
+     * @param string $sys_function
80
+     */
77 81
     protected function instantiate($sys_controller, $sys_function)
78 82
     {
79 83
         // Création d'une instance du controlleur
@@ -116,7 +120,7 @@  discard block
 block discarded – undo
116 120
      * Cette fonction récupère le controleur appelé dans l'URL
117 121
      * Elle va aussi gérer si l'utilisateur doit se connecter ou si le site est en maintenance
118 122
      * (et changer le controleur en conséquence)
119
-     * @return array : Un tableau contenant le dossier, le controleur et la fonction à appeler
123
+     * @return string[] : Un tableau contenant le dossier, le controleur et la fonction à appeler
120 124
      */
121 125
     public function getRoute()
122 126
     {
Please login to merge, or discard this patch.
system/is.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     /**
118 118
      * Fonction vérifiant le numéro de téléphone passé en paramètre
119
-     * @param mixed $valeur : La variable testée
119
+     * @param string $valeur : La variable testée
120 120
      * @return bool
121 121
      *          VRAI si la chaine passée en paramètre est un numéro de téléphone
122 122
      *          valide faisant de 10 à 20 caractères,
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
     /**
207 207
      * Valide que la date donnée au format français (SANS heure) existe bien
208
-     * @param mixed $valeur : La variable testée
208
+     * @param string $valeur : La variable testée
209 209
      * @return bool : VRAI si la valeur passée en paramètre une date au format JJMMAAAA ou JJMMAA, sans séparateur
210 210
      */
211 211
     public static function dateWithoutSeparator($valeur)
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
     /**
311 311
      * Teste si la chaine passée en paramètre est une adresse email valide
312
-     * @param mixed $valeur : La variable testée
312
+     * @param string $valeur : La variable testée
313 313
      * @return bool : VRAI si la valeur passée en paramètre est une adresse email valide
314 314
      */
315 315
     public static function courriel($valeur)
Please login to merge, or discard this patch.
system/model.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,6 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
     /**
167 167
      * Crée des objets à partir d'une matrice (typiquement le résultat d'une requète)
168
+     * @param string $class_name
168 169
      */
169 170
     protected static function objectsFromMatrix($matrix, $class_name, $modeIterator = true)
170 171
     {
@@ -726,7 +727,7 @@  discard block
 block discarded – undo
726 727
     /**
727 728
      * Met à jour le tableau des erreurs d'un objet.
728 729
      * @param {Array} $errors Le tableau d'erreurs à ajouter.
729
-     * @return true
730
+     * @return boolean
730 731
      */
731 732
     public function setErrors($errors)
732 733
     {
@@ -842,7 +843,7 @@  discard block
 block discarded – undo
842 843
      * Renvoi l'autorisation d'un champ pour l'utilisateur en cours
843 844
      *
844 845
      * @param champ à vérifier
845
-     * @return booléen d'autorisation
846
+     * @return boolean d'autorisation
846 847
      */
847 848
     public function isChampModifiable($champ)
848 849
     {
@@ -926,7 +927,7 @@  discard block
 block discarded – undo
926 927
 
927 928
     /**
928 929
      * fonction de log
929
-     * @param $type_action
930
+     * @param string $type_action
930 931
      */
931 932
     public function logerChangement($type_action)
932 933
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
 
18 18
     public function getIsLogue()
19 19
     {
20
-        return (bool) self::$is_logue;
20
+        return (bool)self::$is_logue;
21 21
     }
22 22
 
23 23
     public function setIsLogue($bool = false)
24 24
     {
25
-        self::$is_logue = (bool) $bool;
25
+        self::$is_logue = (bool)$bool;
26 26
         return $this;
27 27
     }
28 28
 
Please login to merge, or discard this patch.
src/Dispatcher/Plugin/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function setVersion($version)
41 41
     {
42
-        $this->version = (string) $version;
42
+        $this->version = (string)$version;
43 43
         return $this;
44 44
     }
45 45
 
Please login to merge, or discard this patch.