mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Code quality: Removed superfluous brackets; should not change anything
This commit is contained in:
@@ -1137,7 +1137,7 @@ class Csv {
|
|||||||
: '';
|
: '';
|
||||||
$enclosure_quoted = preg_quote($this->enclosure, '/');
|
$enclosure_quoted = preg_quote($this->enclosure, '/');
|
||||||
$pattern = "/" . $delimiter_quoted . $enclosure_quoted . "|\n|\r/i";
|
$pattern = "/" . $delimiter_quoted . $enclosure_quoted . "|\n|\r/i";
|
||||||
if ($this->enclose_all || preg_match($pattern, $value) || (strpos($value, ' ') === 0 || substr($value, -1) == ' ')) {
|
if ($this->enclose_all || preg_match($pattern, $value) || strpos($value, ' ') === 0 || substr($value, -1) == ' ') {
|
||||||
$value = str_replace($this->enclosure, $this->enclosure . $this->enclosure, $value);
|
$value = str_replace($this->enclosure, $this->enclosure . $this->enclosure, $value);
|
||||||
$value = $this->enclosure . $value . $this->enclosure;
|
$value = $this->enclosure . $value . $this->enclosure;
|
||||||
}
|
}
|
||||||
|
|||||||
9
tests/methods/HasToString.php
Normal file
9
tests/methods/HasToString.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace methods;
|
||||||
|
|
||||||
|
|
||||||
|
class HasToString {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user