Code Duplication    Length = 12-12 lines in 2 locations

src/DataSource/DibiFluentDataSource.php 1 location

@@ 163-174 (lines=12) @@
160
		$or = [];
161
162
		foreach ($condition as $column => $value) {
163
			if (class_exists(Helpers::class) === true) {
164
				$column = Helpers::escape(
165
					$driver,
166
					$column,
167
					\dibi::IDENTIFIER
168
				);
169
			} else {
170
				$column = $driver->escape(
171
					$column,
172
					\dibi::IDENTIFIER
173
				);
174
			}
175
176
			if ($filter->isExactSearch()) {
177
				$this->data_source->where("$column = %s", $value);

src/DataSource/DibiFluentMssqlDataSource.php 1 location

@@ 126-137 (lines=12) @@
123
		$or = [];
124
125
		foreach ($condition as $column => $value) {
126
			if (class_exists(Helpers::class) === true) {
127
				$column = Helpers::escape(
128
					$driver,
129
					$column,
130
					\dibi::IDENTIFIER
131
				);
132
			} else {
133
				$column = $driver->escape(
134
					$column,
135
					\dibi::IDENTIFIER
136
				);
137
			}
138
139
			if ($filter->isExactSearch()) {
140
				$this->data_source->where("$column = %s", $value);