Passed
Push — master ( ae9f09...aff02c )
by Dedipyaman
01:51
created
src/Type/Password.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
      * @throws \Phypes\Exception\InvalidAggregateRule
25 25
      * @throws \Phypes\Exception\InvalidRuleOption
26 26
      */
27
-    public function __construct(string $password, $options =[], Validator $validator = null)
27
+    public function __construct(string $password, $options = [ ], Validator $validator = null)
28 28
     {
29 29
         if ($validator == null) {
30 30
             // use the default validator
Please login to merge, or discard this patch.
src/Type/Username.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
     private $username;
29 29
 
30 30
 
31
-    public function __construct(string $username, $options = [], Validator $validator = null)
31
+    public function __construct(string $username, $options = [ ], Validator $validator = null)
32 32
     {
33 33
         if ($validator == null) {
34 34
             // use the default validator
35 35
             $validator = new UsernameValidator(
36 36
                 getOptionalValue(self::OPT_MIN_LEN, $options, 4),
37 37
                 getOptionalValue(self::OPT_MAX_LEN, $options, 12),
38
-                getOptionalValue(self::OPT_ALLOWED_SPECIAL_CHARS, $options, ['-', '_']));
38
+                getOptionalValue(self::OPT_ALLOWED_SPECIAL_CHARS, $options, [ '-', '_' ]));
39 39
         }
40 40
 
41 41
         $result = $validator->validate($username, $options);
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @return mixed
18 18
  */
19 19
 function getOptionalValue(int $key, array $arr, $default) {
20
-    return isset($arr[$key]) ? $arr[$key]: $default;
20
+    return isset($arr[ $key ]) ? $arr[ $key ] : $default;
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.