@@ -165,7 +165,7 @@ |
||
| 165 | 165 | $top = substr($this->buffer, 0, $start); |
| 166 | 166 | $data = substr($this->buffer, $start, $length); |
| 167 | 167 | $bottom = substr($this->buffer, $start + $length); |
| 168 | - $this->buffer = $top . $bottom; |
|
| 168 | + $this->buffer = $top.$bottom; |
|
| 169 | 169 | |
| 170 | 170 | return $data; |
| 171 | 171 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | use Traversable; |
| 16 | 16 | use function Noz\collect, |
| 17 | - Noz\to_array; |
|
| 17 | + Noz\to_array; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * CSV Dialect - Default dialect |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | if (property_exists($this, $attr)) { |
| 105 | 105 | // find the appropriate setter... |
| 106 | 106 | foreach (['set', 'setIs', 'setHas'] as $prefix) { |
| 107 | - $setter = $prefix . ucfirst(strtolower($attr)); |
|
| 107 | + $setter = $prefix.ucfirst(strtolower($attr)); |
|
| 108 | 108 | if (method_exists($this, $setter)) { |
| 109 | 109 | $this->{$setter}($val); |
| 110 | 110 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | if (!$this->isConnected()) { |
| 247 | 247 | /** @var IOException $e */ |
| 248 | 248 | $e = null; |
| 249 | - $errhandler = function () use (&$e) { |
|
| 249 | + $errhandler = function() use (&$e) { |
|
| 250 | 250 | $e = new IOException(sprintf( |
| 251 | 251 | 'Could not open connection for %s using mode %s', |
| 252 | 252 | $this->getUri(), |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | |
| 550 | 550 | return $this; |
| 551 | 551 | } |
| 552 | - throw new InvalidArgumentException('Context options must be an array, got: ' . gettype($options)); |
|
| 552 | + throw new InvalidArgumentException('Context options must be an array, got: '.gettype($options)); |
|
| 553 | 553 | } |
| 554 | 554 | |
| 555 | 555 | /** |
@@ -573,7 +573,7 @@ discard block |
||
| 573 | 573 | |
| 574 | 574 | return $this; |
| 575 | 575 | } |
| 576 | - throw new InvalidArgumentException('Context parameters must be an array, got: ' . gettype($params)); |
|
| 576 | + throw new InvalidArgumentException('Context parameters must be an array, got: '.gettype($params)); |
|
| 577 | 577 | } |
| 578 | 578 | |
| 579 | 579 | /** |
@@ -902,7 +902,7 @@ discard block |
||
| 902 | 902 | if (is_null($lazy)) { |
| 903 | 903 | $lazy = true; |
| 904 | 904 | } |
| 905 | - $this->lazy = (bool) $lazy; |
|
| 905 | + $this->lazy = (bool) $lazy; |
|
| 906 | 906 | |
| 907 | 907 | return $this; |
| 908 | 908 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | } |
| 52 | 52 | $buffer .= $byte; |
| 53 | 53 | // Break when a new line is found or the max length - 1 is reached |
| 54 | - if (array_reduce($eol, function ($carry, $eol) use ($buffer) { |
|
| 54 | + if (array_reduce($eol, function($carry, $eol) use ($buffer) { |
|
| 55 | 55 | if (!$carry) { |
| 56 | 56 | $eollen = 0 - strlen($eol); |
| 57 | 57 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function writeLine($line, $eol = PHP_EOL) |
| 37 | 37 | { |
| 38 | - return $this->write($line . $eol); |
|
| 38 | + return $this->write($line.$eol); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | abstract public function isWritable(); |