Refactor normalizeDefaultValue() (#328) #1557
Annotations
6 warnings
Run infection.:
src/SqlParser.php#L28
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]),
'[' => $this->sql[$this->position] === '[' ? $this->skipToAfterString(']]') : $this->skipQuotedWithoutEscape(']'),
- '-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
+ '-' => $this->sql[$this->position] === '-' ? --$this->position && $this->skipToAfterChar("\n") : null,
'/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
|
Run infection.:
src/SqlParser.php#L28
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]),
'[' => $this->sql[$this->position] === '[' ? $this->skipToAfterString(']]') : $this->skipQuotedWithoutEscape(']'),
- '-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
+ '-' => $this->sql[$this->position] === '-' ? !(++$this->position && $this->skipToAfterChar("\n")) : null,
'/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
|
Run infection.:
src/SqlParser.php#L28
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]),
'[' => $this->sql[$this->position] === '[' ? $this->skipToAfterString(']]') : $this->skipQuotedWithoutEscape(']'),
- '-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
+ '-' => $this->sql[$this->position] === '-' ? ++$this->position && !$this->skipToAfterChar("\n") : null,
'/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
|
Run infection.:
src/SqlParser.php#L31
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
'"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]),
'[' => $this->sql[$this->position] === '[' ? $this->skipToAfterString(']]') : $this->skipQuotedWithoutEscape(']'),
'-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
- '/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
+ '/' => $this->sql[$this->position] === '*' ? --$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
if ($result !== null) {
|
Run infection.:
src/SqlParser.php#L31
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
'"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]),
'[' => $this->sql[$this->position] === '[' ? $this->skipToAfterString(']]') : $this->skipQuotedWithoutEscape(']'),
'-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
- '/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
+ '/' => $this->sql[$this->position] === '*' ? !(++$this->position && $this->skipToAfterString('*/')) : null,
default => null,
};
if ($result !== null) {
|
Run infection.:
src/SqlParser.php#L31
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
'"', "'" => $this->skipQuotedWithoutEscape($this->sql[$pos]),
'[' => $this->sql[$this->position] === '[' ? $this->skipToAfterString(']]') : $this->skipQuotedWithoutEscape(']'),
'-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
- '/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
+ '/' => $this->sql[$this->position] === '*' ? ++$this->position && !$this->skipToAfterString('*/') : null,
default => null,
};
if ($result !== null) {
|
Loading