Passed
Push — master ( 386b65...f77557 )
by Terry
01:45
created
src/Psr17/StreamFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface
51 51
     {
52
-        if ($mode === '' || ! preg_match('/^[rwaxce]{1}[bt]{0,1}[+]{0,1}+$/', $mode)) {
52
+        if ($mode === '' || !preg_match('/^[rwaxce]{1}[bt]{0,1}[+]{0,1}+$/', $mode)) {
53 53
             throw new InvalidArgumentException(
54 54
                 sprintf(
55 55
                     'Invalid file opening mode "%s"',
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $resource = @fopen($filename, $mode);
62 62
 
63
-        if (! is_resource($resource)) {
63
+        if (!is_resource($resource)) {
64 64
             throw new RuntimeException(
65 65
                 sprintf(
66 66
                     'Unable to open file at "%s"',
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function createStreamFromResource($resource): StreamInterface
79 79
     {
80
-        if (! is_resource($resource)) {
80
+        if (!is_resource($resource)) {
81 81
             $resource = @fopen('php://temp', 'r+');
82 82
         }
83 83
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     protected function assertResource($resource)
97 97
     {
98
-        if (! is_resource($resource)) {
98
+        if (!is_resource($resource)) {
99 99
             throw new RuntimeException(
100 100
                 'Unable to open "php://temp" resource.'
101 101
             );
Please login to merge, or discard this patch.