Completed
Push — master ( 047d33...8be84a )
by Guido
03:34
created
src/Commands/CommandInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,5 +13,8 @@
 block discarded – undo
13 13
  */
14 14
 interface CommandInterface
15 15
 {
16
+    /**
17
+     * @return void
18
+     */
16 19
     public function execute();
17 20
 }
Please login to merge, or discard this patch.
src/Helpers/annotations/AnnotationUtil.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     /**
10 10
      * @param $className
11
-     * @param $method
11
+     * @param string $method
12 12
      * @param $annotationName
13 13
      * @throws \ReflectionException
14 14
      * @return array|boolean
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
         return $this->getAnnotationFromArray($comments, $annotationName);
22 22
     }
23 23
 
24
+    /**
25
+     * @param \PHPUnit\Framework\MockObject\MockObject $httpRequest
26
+     */
24 27
     public function validateMethods(array $allowedMethods, $httpRequest)
25 28
     {
26 29
         if (count($allowedMethods) < 1) {
@@ -44,6 +47,9 @@  discard block
 block discarded – undo
44 47
         return [];
45 48
     }
46 49
 
50
+    /**
51
+     * @param string $string
52
+     */
47 53
     private function getArrayFromComment($string)
48 54
     {
49 55
         $filteredString = str_replace(array('(', ')', '"', ','), '', $string);
Please login to merge, or discard this patch.
src/Helpers/security/CSRFFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 class CSRFFactory
6 6
 {
7 7
     /**
8
-     * @return string
8
+     * @return CSRFToken
9 9
      * @throws \Exception
10 10
      */
11 11
     public function createToken(): CSRFToken
Please login to merge, or discard this patch.
src/Helpers/security/CSRFToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     private $token;
9 9
 
10 10
     /**
11
-     * @return mixed
11
+     * @return string
12 12
      */
13 13
     public function getTokenValue()
14 14
     {
Please login to merge, or discard this patch.
src/Events/UserRegisteredEvent.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -42,6 +42,10 @@
 block discarded – undo
42 42
         return boolval($this->devMode);
43 43
     }
44 44
 
45
+    /**
46
+     * @param string $username
47
+     * @param string $email
48
+     */
45 49
     public function __construct($username, $email, $devMode = false)
46 50
     {
47 51
         $this->username = $username;
Please login to merge, or discard this patch.
src/Helpers/locale/Locale.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
     public static $locales;
16 16
     public static $currentLocale;
17 17
 
18
+    /**
19
+     * @param string $locale
20
+     */
18 21
     public static function setCurrentLocale($locale)
19 22
     {
20 23
         self::$currentLocale = $locale;
Please login to merge, or discard this patch.
src/Models/User.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return mixed
51
+     * @return string
52 52
      */
53 53
     public function getEmail()
54 54
     {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-     * @return mixed
157
+     * @return boolean
158 158
      */
159 159
     public function getEnabled()
160 160
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     }
163 163
 
164 164
     /**
165
-     * @param mixed $enabled
165
+     * @param boolean $enabled
166 166
      */
167 167
     public function setEnabled($enabled): void
168 168
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php namespace Gvera\Models;
2 2
 
3
-use Gvera\Services\UserService;
4
-
5 3
 /**
6 4
  * @Entity
7 5
  * @Table(name="users")
Please login to merge, or discard this patch.
src/Helpers/routes/RouteManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 
36 36
     /**
37
-     * @return mixed
37
+     * @return false|string
38 38
      */
39 39
     public function getRoute($pathLike)
40 40
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @return string|bool
67
+     * @return false|string
68 68
      */
69 69
     private function defineRoute($route, $pathLikeArray)
70 70
     {
Please login to merge, or discard this patch.
src/Validations/Examples.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Gvera\Exceptions\EmptyValidationStrategiesException;
6 6
 use Gvera\Exceptions\InvalidValidationMethodException;
7 7
 use Gvera\Helpers\validation\IsNotEmptyValidationStrategy;
8
-use Gvera\Helpers\validation\ValidationService;
9 8
 
10 9
 class Examples extends ControllerValidationAbstract
11 10
 {
Please login to merge, or discard this patch.