We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -137,9 +137,9 @@ |
||
| 137 | 137 | switch ($type) { |
| 138 | 138 | case 'newspaper': |
| 139 | 139 | case 'ephemera': |
| 140 | - $this->forward('years', NULL, NULL, $requestData); |
|
| 140 | + $this->forward('years', null, null, $requestData); |
|
| 141 | 141 | case 'year': |
| 142 | - $this->forward('calendar', NULL, NULL, $requestData); |
|
| 142 | + $this->forward('calendar', null, null, $requestData); |
|
| 143 | 143 | case 'issue': |
| 144 | 144 | default: |
| 145 | 145 | break; |
@@ -209,10 +209,10 @@ discard block |
||
| 209 | 209 | // Set default values for page if not set. |
| 210 | 210 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
| 211 | 211 | if ( |
| 212 | - (int)$requestData['page'] > 0 |
|
| 212 | + (int) $requestData['page'] > 0 |
|
| 213 | 213 | || empty($requestData['page']) |
| 214 | 214 | ) { |
| 215 | - $requestData['page'] = MathUtility::forceIntegerInRange((int)$requestData['page'], |
|
| 215 | + $requestData['page'] = MathUtility::forceIntegerInRange((int) $requestData['page'], |
|
| 216 | 216 | 1, $this->doc->numPages, 1); |
| 217 | 217 | } else { |
| 218 | 218 | $requestData['page'] = array_search($requestData['page'], $this->doc->physicalStructure); |
@@ -231,14 +231,14 @@ discard block |
||
| 231 | 231 | !empty($requestData['page']) |
| 232 | 232 | && !empty($this->doc->physicalStructure) |
| 233 | 233 | ) { |
| 234 | - $this->activeEntries = array_merge((array)$this->doc->smLinks['p2l'][$this->doc->physicalStructure[0]], |
|
| 235 | - (array)$this->doc->smLinks['p2l'][$this->doc->physicalStructure[$requestData['page']]]); |
|
| 234 | + $this->activeEntries = array_merge((array) $this->doc->smLinks['p2l'][$this->doc->physicalStructure[0]], |
|
| 235 | + (array) $this->doc->smLinks['p2l'][$this->doc->physicalStructure[$requestData['page']]]); |
|
| 236 | 236 | if ( |
| 237 | 237 | !empty($requestData['double']) |
| 238 | 238 | && $requestData['page'] < $this->doc->numPages |
| 239 | 239 | ) { |
| 240 | 240 | $this->activeEntries = array_merge($this->activeEntries, |
| 241 | - (array)$this->doc->smLinks['p2l'][$this->doc->physicalStructure[$requestData['page'] + 1]]); |
|
| 241 | + (array) $this->doc->smLinks['p2l'][$this->doc->physicalStructure[$requestData['page'] + 1]]); |
|
| 242 | 242 | } |
| 243 | 243 | } |
| 244 | 244 | // Go through table of contents and create all menu entries. |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | ->select('tx_dlf_libraries.label AS label') |
| 48 | 48 | ->from('tx_dlf_libraries') |
| 49 | 49 | ->where( |
| 50 | - $queryBuilder->expr()->eq('tx_dlf_libraries.pid', (int)$this->settings['pages']), |
|
| 51 | - $queryBuilder->expr()->eq('tx_dlf_libraries.uid', (int)$this->settings['library']) |
|
| 50 | + $queryBuilder->expr()->eq('tx_dlf_libraries.pid', (int) $this->settings['pages']), |
|
| 51 | + $queryBuilder->expr()->eq('tx_dlf_libraries.uid', (int) $this->settings['library']) |
|
| 52 | 52 | ) |
| 53 | 53 | ->setMaxResults(1) |
| 54 | 54 | ->execute(); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | if ($resArray['crdate'] == $resArray['tstamp']) { |
| 145 | 145 | $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf') . ' ' . trim($title); |
| 146 | 146 | } else { |
| 147 | - $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf') . ' ' . trim($title); |
|
| 147 | + $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf') . ' ' . trim($title); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $resArray['title'] = $title; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | ->execute(); |
| 97 | 97 | |
| 98 | 98 | // exit if at least one update statement is not successful |
| 99 | - if (!((bool)$updateResult)) { |
|
| 99 | + if (!((bool) $updateResult)) { |
|
| 100 | 100 | return false; |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | protected function migrateFlexformSettings(string $oldValue): string |
| 164 | 164 | { |
| 165 | - $xml = simplexml_load_string ($oldValue); |
|
| 165 | + $xml = simplexml_load_string($oldValue); |
|
| 166 | 166 | |
| 167 | 167 | // get all field elements |
| 168 | 168 | $fields = $xml->xpath("//field"); |
@@ -184,12 +184,12 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | protected function checkForOldSettings(string $flexFormXml): bool |
| 186 | 186 | { |
| 187 | - $xml = simplexml_load_string ($flexFormXml); |
|
| 187 | + $xml = simplexml_load_string($flexFormXml); |
|
| 188 | 188 | |
| 189 | 189 | // get all field elements with value of attribute index not containing "settings." |
| 190 | 190 | $fields = $xml->xpath("//field[not(starts-with(@index, 'settings.'))]"); |
| 191 | 191 | |
| 192 | - return (bool)$fields; |
|
| 192 | + return (bool) $fields; |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | } |