Completed
Push — master ( 0efd86...9d0a53 )
by Maik
01:42
created
src/Generics/Socket/SecureSocket.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function read($length = 1, $offset = null): string
62 62
     {
63
-        return stream_get_contents($this->handle, $length, $offset === null ? - 1 : intval($offset));
63
+        return stream_get_contents($this->handle, $length, $offset === null ? -1 : intval($offset));
64 64
     }
65 65
 
66 66
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function isOpen(): bool
72 72
     {
73
-        return is_resource($this->handle) && ! feof($this->handle);
73
+        return is_resource($this->handle) && !feof($this->handle);
74 74
     }
75 75
 
76 76
     /**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function ready(): bool
92 92
     {
93
-        if (! is_resource($this->handle)) {
93
+        if (!is_resource($this->handle)) {
94 94
             return false;
95 95
         }
96 96
         
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             return false;
111 111
         }
112 112
         
113
-        if (! in_array($this->handle, $read)) {
113
+        if (!in_array($this->handle, $read)) {
114 114
             return false;
115 115
         }
116 116
         
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function write($buffer)
171 171
     {
172
-        if(!$this->isWriteable()) {
172
+        if (!$this->isWriteable()) {
173 173
             throw new SocketException("Stream is not ready for writing");
174 174
         }
175 175
         $len = strlen($buffer);
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function isWriteable(): bool
195 195
     {
196
-        if (! is_resource($this->handle)) {
196
+        if (!is_resource($this->handle)) {
197 197
             return false;
198 198
         }
199 199
         
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             return false;
214 214
         }
215 215
         
216
-        if (! in_array($this->handle, $write)) {
216
+        if (!in_array($this->handle, $write)) {
217 217
             return false;
218 218
         }
219 219
         
Please login to merge, or discard this patch.