Passed
Branch master (46a695)
by Julien
03:29
created
Category
src/Checks/CollectionCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
 class CollectionCheck implements FluentCheck
17 17
 {
18
-    use TypeCheck,ConstraintCheck,  WithMessage;
18
+    use TypeCheck, ConstraintCheck, WithMessage;
19 19
     /**
20 20
      * @var iterable
21 21
      */
Please login to merge, or discard this patch.
src/Constraint/Arrays/ContainsNoDuplicateItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             $array = \array_udiff(
24 24
                 $array,
25 25
                 [$element],
26
-                function ($first, $second) {
26
+                function($first, $second) {
27 27
                     return $first <=> $second;
28 28
                 }
29 29
             );
Please login to merge, or discard this patch.
src/Constraint/Arrays/IsSubset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function evaluate($other, string $description = '', bool $returnResult = false): ?bool
21 21
     {
22
-        $other        = ArrayUtility::toArray($other);
22
+        $other = ArrayUtility::toArray($other);
23 23
         $set = ArrayUtility::toArray($this->set);
24 24
 
25 25
         if (ArrayUtility::isAssociative($other)) {
Please login to merge, or discard this patch.
src/Constraint/Arrays/ArrayUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public static function isAssociative(array $array)
9 9
     {
10 10
         $size = \count($array);
11
-        $filteredKeys = \array_filter(\array_keys($array), function ($int) {return $int === (int) $int;});
11
+        $filteredKeys = \array_filter(\array_keys($array), function($int) {return $int === (int) $int; });
12 12
         return \count($filteredKeys) !== $size;
13 13
     }
14 14
 
Please login to merge, or discard this patch.
src/Constraint/Arrays/ContainsSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         //type cast $other & $this->subset as an array to allow
24 24
         //support in standard array functions.
25
-        $other        = ArrayUtility::toArray($other);
25
+        $other = ArrayUtility::toArray($other);
26 26
         $set = ArrayUtility::toArray($this->set);
27 27
 
28 28
         if (ArrayUtility::isAssociative($other)) {
Please login to merge, or discard this patch.
src/Constraint/Json/MatchesSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $validator = new Validator();
45 45
         $validator->check($other, $this->schema);
46 46
 
47
-        return \implode("\n", \array_map(function ($error) {
47
+        return \implode("\n", \array_map(function($error) {
48 48
             return \sprintf("[%s] %s", $error['property'], $error['message']);
49 49
         }, $validator->getErrors()));
50 50
     }
Please login to merge, or discard this patch.
src/Exporter/HttpResponseExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $replace = '';
30 30
         if ($this->withHeaders || $this->withContent) {
31 31
             $properties = parent::toArray($value);
32
-            $whitespace = \str_repeat(' ', (int)(4 * ($indentation + 1)));
32
+            $whitespace = \str_repeat(' ', (int) (4 * ($indentation + 1)));
33 33
             if (isset($properties['headers']) && \count($properties['headers'])) {
34 34
                 $replace = "\n$whitespace'headers' (\n";
35 35
                 foreach ($properties['headers'] as $name => $values) {
Please login to merge, or discard this patch.