Test Setup Failed
Branch master (a8c902)
by Štefan
02:36
created
src/ValidationTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
         }
103 103
     }
104 104
 
105
+    /**
106
+     * @param integer $length
107
+     */
105 108
     public function validateLength($value, $length)
106 109
     {
107 110
         $realLength = strlen($value);
@@ -117,6 +120,9 @@  discard block
 block discarded – undo
117 120
         }
118 121
     }
119 122
 
123
+    /**
124
+     * @param string $string
125
+     */
120 126
     private function throwInvalidArgumentMustBe($string)
121 127
     {
122 128
         throw new InvalidArgumentException((new ReflectionClass($this))->getShortName()." must be ".$string);
Please login to merge, or discard this patch.
example/example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 }
25 25
 
26 26
 try {
27
-    $value = str_repeat('?!@#$%^&', 8);;
27
+    $value = str_repeat('?!@#$%^&', 8); ;
28 28
     $token = new Token($value);
29 29
 } catch (InvalidArgumentException $e) {
30 30
     echo $e->getMessage(); //Token must be valid base_64
Please login to merge, or discard this patch.