mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-12 00:04:11 +02:00
Merge pull request #51 from lucasmichot/remove-useless-variable
Remove useless variable
This commit is contained in:
@@ -780,8 +780,6 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
|
||||
return false;
|
||||
}
|
||||
|
||||
$encoding = $this->encoding;
|
||||
|
||||
foreach ($needles as $needle) {
|
||||
if ($this->contains($needle, $caseSensitive)) {
|
||||
return true;
|
||||
@@ -806,8 +804,6 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
|
||||
return false;
|
||||
}
|
||||
|
||||
$encoding = $this->encoding;
|
||||
|
||||
foreach ($needles as $needle) {
|
||||
if (!$this->contains($needle, $caseSensitive)) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user