Passed
Push — master ( 0c2816...068789 )
by Zaahid
02:04 queued 13s
created
src/ChunkSplitStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@
 block discarded – undo
68 68
         if ($this->tell() !== 0) {
69 69
             $next = $this->lineLength - ($this->position % ($this->lineLength + $this->lineEndingLength));
70 70
             if (strlen($string) > $next) {
71
-                $firstLine = substr($string, 0, $next) . $this->lineEnding;
71
+                $firstLine = substr($string, 0, $next).$this->lineEnding;
72 72
                 $string = substr($string, $next);
73 73
             }
74 74
         }
75 75
         // chunk_split always ends with the passed line ending
76
-        $chunked = $firstLine . chunk_split($string, $this->lineLength, $this->lineEnding);
76
+        $chunked = $firstLine.chunk_split($string, $this->lineLength, $this->lineEnding);
77 77
         return substr($chunked, 0, strlen($chunked) - $this->lineEndingLength);
78 78
     }
79 79
 
Please login to merge, or discard this patch.
src/Base64Stream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      */
155 155
     public function write($string)
156 156
     {
157
-        $bytes = $this->remainder . $string;
157
+        $bytes = $this->remainder.$string;
158 158
         $len = strlen($bytes);
159 159
         if (($len % 3) !== 0) {
160 160
             $this->remainder = substr($bytes, -($len % 3));
Please login to merge, or discard this patch.
src/UUStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     {
222 222
         $encoded = preg_replace('/\r\n|\r|\n/', "\r\n", rtrim(convert_uuencode($bytes)));
223 223
         // removes ending '`' line
224
-        $this->stream->write("\r\n" . rtrim(substr($encoded, 0, -1)));
224
+        $this->stream->write("\r\n".rtrim(substr($encoded, 0, -1)));
225 225
     }
226 226
 
227 227
     /**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     private function handleRemainder($string)
236 236
     {
237
-        $write = $this->remainder . $string;
237
+        $write = $this->remainder.$string;
238 238
         $nRem = strlen($write) % 45;
239 239
         $this->remainder = '';
240 240
         if ($nRem !== 0) {
Please login to merge, or discard this patch.
src/QuotedPrintableStream.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function readEncodedChars($length, $pre = '')
90 90
     {
91
-        $str = $pre . $this->stream->read($length);
91
+        $str = $pre.$this->stream->read($length);
92 92
         $len = strlen($str);
93 93
         if ($len > 0 && !preg_match('/^[0-9a-f]{2}$|^[\r\n]{1,2}.?$/is', $str) && $this->stream->isSeekable()) {
94 94
             $this->stream->seek(-$len, SEEK_CUR);
95
-            return '3D';    // '=' character
95
+            return '3D'; // '=' character
96 96
         }
97 97
         return $str;
98 98
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     public function write($string)
183 183
     {
184 184
         $encodedLine = quoted_printable_encode($this->lastLine);
185
-        $lineAndString = rtrim(quoted_printable_encode($this->lastLine . $string), "\r\n");
185
+        $lineAndString = rtrim(quoted_printable_encode($this->lastLine.$string), "\r\n");
186 186
         $write = substr($lineAndString, strlen($encodedLine));
187 187
         $this->stream->write($write);
188 188
         $written = strlen($string);
Please login to merge, or discard this patch.
src/PregReplaceFilterStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     private function fillBuffer($length)
88 88
     {
89
-        $fill = (int)max([$length, 8192]);
89
+        $fill = (int) max([$length, 8192]);
90 90
         while ($this->buffer->getSize() < $length) {
91 91
             $read = $this->stream->read($fill);
92 92
             if ($read === false || $read === '') {
Please login to merge, or discard this patch.
PhpCsFixer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // Ensure there is no code on the same line as the PHP open tag and it is followed by a blank line.
25 25
         'blank_line_after_opening_tag' => true,
26 26
         // An empty line feed must precede any configured statement.
27
-        'blank_line_before_statement' => ['statements'=>['break','case','continue','declare','default','exit','do','exit','for','foreach','goto','if','return','switch','throw','try','while','yield']],
27
+        'blank_line_before_statement' => ['statements'=>['break', 'case', 'continue', 'declare', 'default', 'exit', 'do', 'exit', 'for', 'foreach', 'goto', 'if', 'return', 'switch', 'throw', 'try', 'while', 'yield']],
28 28
         // A single space or none should be between cast and variable.
29 29
         'cast_spaces' => ['space'=>'none'],
30 30
         // Class, trait and interface elements must be separated with one or none blank line.
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // Function defined by PHP should be called using the correct casing.
111 111
         'native_function_casing' => true,
112 112
         // Add leading `\` before function invocation to speed up resolving.
113
-        'native_function_invocation' => ['include'=>['@all','trans']],
113
+        'native_function_invocation' => ['include'=>['@all', 'trans']],
114 114
         // Native type hints for functions should use the correct case.
115 115
         'native_function_type_declaration_casing' => true,
116 116
         // All instances created with new keyword must be followed by braces.
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         // There should not be space before or after object operators `->` and `?->`.
193 193
         'object_operator_without_whitespace' => true,
194 194
         // Orders the elements of classes/interfaces/traits.
195
-        'ordered_class_elements' => ['order'=>['use_trait','constant_public','constant_protected','constant_private','property_public','property_protected','property_private','construct','destruct','magic','phpunit','method_public','method_protected','method_private']],
195
+        'ordered_class_elements' => ['order'=>['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property_public', 'property_protected', 'property_private', 'construct', 'destruct', 'magic', 'phpunit', 'method_public', 'method_protected', 'method_private']],
196 196
         // Ordering `use` statements.
197 197
         'ordered_imports' => true,
198 198
         // Orders the interfaces in an `implements` or `interface extends` clause.
Please login to merge, or discard this patch.