We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -111,12 +111,12 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | $rows = $result->fetchAll(); |
| 113 | 113 | |
| 114 | - if((count($rows) === 0) || !array_key_exists('xpath', $rows[0])) { |
|
| 114 | + if ((count($rows) === 0) || !array_key_exists('xpath', $rows[0])) { |
|
| 115 | 115 | return $uids; |
| 116 | 116 | } |
| 117 | - foreach($rows as $row) { |
|
| 118 | - if($row['format'] === 0 && $row['xpath']) { |
|
| 119 | - $uids[] = (int)$row['uid']; |
|
| 117 | + foreach ($rows as $row) { |
|
| 118 | + if ($row['format'] === 0 && $row['xpath']) { |
|
| 119 | + $uids[] = (int) $row['uid']; |
|
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | return $uids; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | ->from('tx_dlf_solrcores') |
| 139 | 139 | ->execute(); |
| 140 | 140 | |
| 141 | - while($resArray = $result->fetch()) { |
|
| 141 | + while ($resArray = $result->fetch()) { |
|
| 142 | 142 | // Instantiate search object. |
| 143 | 143 | $solr = Solr::getInstance($resArray['index_name']); |
| 144 | 144 | if (!$solr->ready) { |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | ->from('INFORMATION_SCHEMA.COLUMNS') |
| 191 | 191 | ->where('TABLE_NAME = "tx_dlf_metadata"') |
| 192 | 192 | ->execute(); |
| 193 | - while($resArray = $result->fetch()) { |
|
| 193 | + while ($resArray = $result->fetch()) { |
|
| 194 | 194 | if ( |
| 195 | 195 | $resArray['column_name'] === 'tokenized' |
| 196 | 196 | || $resArray['column_name'] === 'stored' |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | // Get all old metadata configuration records. |
| 333 | 333 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_dlf_metadata'); |
| 334 | 334 | $result = $queryBuilder |
| 335 | - ->select('tx_dlf_metadata.uid AS uid', 'tx_dlf_metadata.pid AS pid','tx_dlf_metadata.cruser_id AS cruser_id', 'tx_dlf_metadata.encoded AS encoded', 'tx_dlf_metadata.xpath AS xpath', 'tx_dlf_metadata.xpath_sorting AS xpath_sorting') |
|
| 335 | + ->select('tx_dlf_metadata.uid AS uid', 'tx_dlf_metadata.pid AS pid', 'tx_dlf_metadata.cruser_id AS cruser_id', 'tx_dlf_metadata.encoded AS encoded', 'tx_dlf_metadata.xpath AS xpath', 'tx_dlf_metadata.xpath_sorting AS xpath_sorting') |
|
| 336 | 336 | ->from('tx_dlf_metadata') |
| 337 | 337 | ->where( |
| 338 | 338 | $queryBuilder->expr()->in( |