Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionLintCountQuery.php
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | $data = queryfx_all( | ||||
| $conn_r, | $conn_r, | ||||
| '%Q', | '%Q', | ||||
| $huge_union_query); | $huge_union_query); | ||||
| return $this->processResults($data); | return $this->processResults($data); | ||||
| } | } | ||||
| protected function buildCustomWhereClause( | protected function buildCustomWhereClause( | ||||
| AphrontDatabaseConnection $conn_r, | AphrontDatabaseConnection $conn, | ||||
| $part) { | $part) { | ||||
| $where = array(); | $where = array(); | ||||
| $where[] = $part; | $where[] = $part; | ||||
| if ($this->codes !== null) { | if ($this->codes !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn_r, | $conn, | ||||
| 'code IN (%Ls)', | 'code IN (%Ls)', | ||||
| $this->codes); | $this->codes); | ||||
| } | } | ||||
| if ($this->branchIDs !== null) { | if ($this->branchIDs !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn_r, | $conn, | ||||
| 'branchID IN (%Ld)', | 'branchID IN (%Ld)', | ||||
| $this->branchIDs); | $this->branchIDs); | ||||
| } | } | ||||
| return $this->formatWhereClause($where); | return $this->formatWhereClause($conn, $where); | ||||
| } | } | ||||
| private function processPaths() { | private function processPaths() { | ||||
| $dirs = array(); | $dirs = array(); | ||||
| $paths = array(); | $paths = array(); | ||||
| foreach ($this->paths as $path) { | foreach ($this->paths as $path) { | ||||
| $path = '/'.$path; | $path = '/'.$path; | ||||
| if (substr($path, -1) == '/') { | if (substr($path, -1) == '/') { | ||||
| Show All 21 Lines | |||||