Test Failed
Push — master ( 591538...755e43 )
by Kirill
02:28
created
src/Stdlib/Scalar/IdScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function parse($value): string
53 53
     {
54
-        if (! \is_scalar($value)) {
54
+        if (!\is_scalar($value)) {
55 55
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
56 56
         }
57 57
 
58
-        return (string)parent::parse($value);
58
+        return (string) parent::parse($value);
59 59
     }
60 60
 
61 61
     /**
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function serialize($value): string
67 67
     {
68
-        if (! \is_scalar($value)) {
68
+        if (!\is_scalar($value)) {
69 69
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
70 70
         }
71 71
 
72
-        return (string)parent::serialize($value);
72
+        return (string) parent::serialize($value);
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
src/Stdlib/Scalar/BooleanScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): bool
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (bool)parent::parse($value);
53
+        return (bool) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): bool
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (bool)parent::serialize($value);
67
+        return (bool) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Stdlib/Scalar/FloatScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): float
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (float)parent::parse($value);
53
+        return (float) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): float
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (float)parent::serialize($value);
67
+        return (float) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Stdlib/Scalar/DateTimeScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
             return $value;
51 51
         }
52 52
 
53
-        if (! \is_scalar($value)) {
53
+        if (!\is_scalar($value)) {
54 54
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
55 55
         }
56 56
 
57
-        $value = (string)parent::parse($value);
57
+        $value = (string) parent::parse($value);
58 58
 
59 59
         try {
60 60
             return new \DateTime($value);
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
             return $value->format(\DateTime::RFC3339);
75 75
         }
76 76
 
77
-        if (! \is_scalar($value)) {
77
+        if (!\is_scalar($value)) {
78 78
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
79 79
         }
80 80
 
81 81
         $value = parent::parse($value);
82 82
 
83 83
         try {
84
-            return (new \DateTime((string)$value))->format(\DateTime::RFC3339);
84
+            return (new \DateTime((string) $value))->format(\DateTime::RFC3339);
85 85
         } catch (\Throwable $e) {
86 86
             throw new TypeConflictException($e->getMessage(), $e->getCode());
87 87
         }
Please login to merge, or discard this patch.
src/Stdlib/Scalar/IntScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): int
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (int)parent::parse($value);
53
+        return (int) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): int
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (int)parent::serialize($value);
67
+        return (int) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Stdlib/Scalar/StringScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): string
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (string)parent::parse($value);
53
+        return (string) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): string
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (string)parent::serialize($value);
67
+        return (string) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.