Completed
Pull Request — master (#5)
by Hannes
02:00
created
src/Rule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function __construct()
41 41
     {
42
-        $this->onException(function (\Exception $exception) {
42
+        $this->onException(function(\Exception $exception) {
43 43
             throw new Exception(sprintf($this->exceptionMessage, $exception->getMessage()), 0, $exception);
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/AbstractValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.
src/ArrayValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function __construct(array $validators = [])
28 28
     {
29 29
         foreach ($validators as $name => $validator) {
30
-            $this->addValidator((string)$name, $validator);
30
+            $this->addValidator((string) $name, $validator);
31 31
         }
32 32
     }
33 33
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                     isset($tainted[$name]) ? $tainted[$name] : null
69 69
                 );
70 70
             } catch (Exception $exception) {
71
-                $exception->pushValidatorName((string)$name);
71
+                $exception->pushValidatorName((string) $name);
72 72
                 $this->fireException($exception);
73 73
             } catch (\Exception $exception) {
74 74
                 $this->fireException($exception);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if (!$this->ignoreUnknown && $diff = array_diff_key($tainted, $this->validators)) {
79 79
             $this->fireException(
80
-                new Exception('Unknown input item(s): ' . implode(array_keys($diff), ', '))
80
+                new Exception('Unknown input item(s): '.implode(array_keys($diff), ', '))
81 81
             );
82 82
         }
83 83
 
Please login to merge, or discard this patch.
src/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.