mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing unused statement, thanks jrbasso
This commit is contained in:
parent
2e49a96634
commit
3f9813a9ec
2 changed files with 1 additions and 2 deletions
|
@ -494,7 +494,6 @@ class DboSource extends DataSource {
|
||||||
return $this->startQuote . implode($this->endQuote . '.' . $this->startQuote, $items) . $this->endQuote;
|
return $this->startQuote . implode($this->endQuote . '.' . $this->startQuote, $items) . $this->endQuote;
|
||||||
}
|
}
|
||||||
if (preg_match('/^\w+\.\*$/', $data)) { // string.*
|
if (preg_match('/^\w+\.\*$/', $data)) { // string.*
|
||||||
$items = explode('.', $data);
|
|
||||||
return $this->startQuote . str_replace('.*', $this->endQuote . '.*', $data);
|
return $this->startQuote . str_replace('.*', $this->endQuote . '.*', $data);
|
||||||
}
|
}
|
||||||
if (preg_match('/^(\w+)\((.*)\)$/', $data, $matches)) { // Functions
|
if (preg_match('/^(\w+)\((.*)\)$/', $data, $matches)) { // Functions
|
||||||
|
|
|
@ -789,7 +789,7 @@ class Set {
|
||||||
if (empty($val2)) {
|
if (empty($val2)) {
|
||||||
return (array)$val1;
|
return (array)$val1;
|
||||||
}
|
}
|
||||||
$intersection = array_intersect_key($val1,$val2);
|
$intersection = array_intersect_key($val1, $val2);
|
||||||
while (list($key,) = each($intersection)) {
|
while (list($key,) = each($intersection)) {
|
||||||
if ($val1[$key] == $val2[$key]) {
|
if ($val1[$key] == $val2[$key]) {
|
||||||
unset($val1[$key]);
|
unset($val1[$key]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue