Skip to content

Commit 601d295

Browse files
committed
refactor: break long lines
1 parent 916a7b0 commit 601d295

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

system/Database/BaseConnection.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,11 +1142,19 @@ public function escapeIdentifiers($item)
11421142

11431143
foreach ($this->reservedIdentifiers as $id) {
11441144
if (strpos($item, '.' . $id) !== false) {
1145-
return preg_replace('/' . $this->pregEscapeChar[0] . '?([^' . $this->pregEscapeChar[1] . '\.]+)' . $this->pregEscapeChar[1] . '?\./i', $this->pregEscapeChar[2] . '$1' . $this->pregEscapeChar[3] . '.', $item);
1145+
return preg_replace(
1146+
'/' . $this->pregEscapeChar[0] . '?([^' . $this->pregEscapeChar[1] . '\.]+)' . $this->pregEscapeChar[1] . '?\./i',
1147+
$this->pregEscapeChar[2] . '$1' . $this->pregEscapeChar[3] . '.',
1148+
$item
1149+
);
11461150
}
11471151
}
11481152

1149-
return preg_replace('/' . $this->pregEscapeChar[0] . '?([^' . $this->pregEscapeChar[1] . '\.]+)' . $this->pregEscapeChar[1] . '?(\.)?/i', $this->pregEscapeChar[2] . '$1' . $this->pregEscapeChar[3] . '$2', $item);
1153+
return preg_replace(
1154+
'/' . $this->pregEscapeChar[0] . '?([^' . $this->pregEscapeChar[1] . '\.]+)' . $this->pregEscapeChar[1] . '?(\.)?/i',
1155+
$this->pregEscapeChar[2] . '$1' . $this->pregEscapeChar[3] . '$2',
1156+
$item
1157+
);
11501158
}
11511159

11521160
/**

0 commit comments

Comments
 (0)