@@ -269,10 +269,10 @@ |
||
269 | 269 | 'readOnly' => 1, |
270 | 270 | 'fieldControl' => [ |
271 | 271 | 'elementBrowser' => [ |
272 | - 'disabled' => true |
|
272 | + 'disabled' => TRUE |
|
273 | 273 | ] |
274 | 274 | ], |
275 | - 'hideDeleteIcon' => true |
|
275 | + 'hideDeleteIcon' => TRUE |
|
276 | 276 | ], |
277 | 277 | ], |
278 | 278 | 'volume' => [ |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_metadata.wrap', |
145 | 145 | 'config' => [ |
146 | 146 | 'behaviour' => [ |
147 | - 'allowLanguageSynchronization' => true |
|
147 | + 'allowLanguageSynchronization' => TRUE |
|
148 | 148 | ], |
149 | 149 | 'type' => 'text', |
150 | 150 | 'cols' => 48, |
@@ -152,8 +152,8 @@ discard block |
||
152 | 152 | 'wrap' => 'off', |
153 | 153 | 'eval' => 'trim', |
154 | 154 | 'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>", |
155 | - 'fixedFont' => true, |
|
156 | - 'enableTabulator' => true |
|
155 | + 'fixedFont' => TRUE, |
|
156 | + 'enableTabulator' => TRUE |
|
157 | 157 | ], |
158 | 158 | ], |
159 | 159 | 'index_tokenized' => [ |
@@ -157,14 +157,14 @@ |
||
157 | 157 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_collections.description', |
158 | 158 | 'config' => [ |
159 | 159 | 'behaviour' => [ |
160 | - 'allowLanguageSynchronization' => true |
|
160 | + 'allowLanguageSynchronization' => TRUE |
|
161 | 161 | ], |
162 | 162 | 'type' => 'text', |
163 | 163 | 'cols' => 30, |
164 | 164 | 'rows' => 10, |
165 | 165 | 'wrap' => 'virtual', |
166 | 166 | 'default' => '', |
167 | - 'enableRichtext' => true, |
|
167 | + 'enableRichtext' => TRUE, |
|
168 | 168 | ], |
169 | 169 | ], |
170 | 170 | 'thumbnail' => [ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | public function getContent($url) |
44 | 44 | { |
45 | 45 | $fileContents = GeneralUtility::getUrl($url); |
46 | - if ($fileContents !== false) { |
|
46 | + if ($fileContents !== FALSE) { |
|
47 | 47 | return $fileContents; |
48 | 48 | } else { |
49 | 49 | return ''; |
@@ -24,8 +24,8 @@ |
||
24 | 24 | 'suggests' => [] |
25 | 25 | ], |
26 | 26 | 'state' => 'stable', |
27 | - 'uploadfolder' => false, |
|
28 | - 'clearCacheOnLoad' => false, |
|
27 | + 'uploadfolder' => FALSE, |
|
28 | + 'clearCacheOnLoad' => FALSE, |
|
29 | 29 | 'author' => 'Sebastian Meyer (Maintainer)', |
30 | 30 | 'author_email' => '[email protected]', |
31 | 31 | 'author_company' => 'Kitodo. Key to digital objects e. V.', |
@@ -44,7 +44,7 @@ |
||
44 | 44 | ]; |
45 | 45 | // Get input parameters and decrypt core name. |
46 | 46 | $parameters = $request->getParsedBody(); |
47 | - if ($parameters === null) { |
|
47 | + if ($parameters === NULL) { |
|
48 | 48 | throw new \InvalidArgumentException('No parameters passed!', 1632322297); |
49 | 49 | } |
50 | 50 | $encrypted = (string) $parameters['encrypted']; |
@@ -220,7 +220,7 @@ |
||
220 | 220 | // Register AJAX eID handlers. |
221 | 221 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class . '::main'; |
222 | 222 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class . '::main'; |
223 | -if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['enableInternalProxy'] ?? false) { |
|
223 | +if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['enableInternalProxy'] ?? FALSE) { |
|
224 | 224 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class . '::main'; |
225 | 225 | } |
226 | 226 | // Use Caching Framework for Solr queries |
@@ -140,11 +140,11 @@ |
||
140 | 140 | // For performance, don't download content up-front. Rather, we'll |
141 | 141 | // download and upload simultaneously. |
142 | 142 | // https://docs.guzzlephp.org/en/6.5/request-options.html#stream |
143 | - 'stream' => true, |
|
143 | + 'stream' => TRUE, |
|
144 | 144 | |
145 | 145 | // Don't throw exceptions when a non-success status code is |
146 | 146 | // received. We handle these manually. |
147 | - 'http_errors' => false, |
|
147 | + 'http_errors' => FALSE, |
|
148 | 148 | ]); |
149 | 149 | } catch (\Exception $e) { |
150 | 150 | return new JsonResponse(['message' => 'Could not fetch resource of given URL.'], 500); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function collectTables(): array |
64 | 64 | { |
65 | 65 | $sqlReader = $this->objectManager->get(SqlReader::class); |
66 | - $sqlCode = $sqlReader->getTablesDefinitionString(true); |
|
66 | + $sqlCode = $sqlReader->getTablesDefinitionString(TRUE); |
|
67 | 67 | $createTableStatements = $sqlReader->getCreateTableStatementArray($sqlCode); |
68 | 68 | |
69 | 69 | $tableToClassName = $this->getTableClassMap(); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | continue; |
80 | 80 | } |
81 | 81 | |
82 | - $className = $tableToClassName[$tableName] ?? null; |
|
82 | + $className = $tableToClassName[$tableName] ?? NULL; |
|
83 | 83 | |
84 | 84 | $result[] = $this->getTableInfo($table, $className); |
85 | 85 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $isPrimary = []; |
121 | 121 | if (!is_null($primaryKey = $table->getPrimaryKey())) { |
122 | 122 | foreach ($primaryKey->getUnquotedColumns() as $primaryColumn) { |
123 | - $isPrimary[$primaryColumn] = true; |
|
123 | + $isPrimary[$primaryColumn] = TRUE; |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
@@ -141,21 +141,21 @@ discard block |
||
141 | 141 | $result = (object) [ |
142 | 142 | 'name' => $tableName, |
143 | 143 | 'columns' => $columns, |
144 | - 'modelClass' => null, |
|
144 | + 'modelClass' => NULL, |
|
145 | 145 | 'sqlComment' => $table->getComment() ?? '', |
146 | 146 | 'classComment' => '', |
147 | 147 | 'feComment' => $this->languageService->sL($GLOBALS['TCA'][$tableName]['ctrl']['title'] ?? ''), |
148 | 148 | ]; |
149 | 149 | |
150 | 150 | // Integrate doc-comments from model class and its fields |
151 | - if ($className !== null) { |
|
151 | + if ($className !== NULL) { |
|
152 | 152 | $reflection = new ReflectionClass($className); |
153 | 153 | |
154 | 154 | $dataMap = $this->dataMapper->getDataMap($className); |
155 | 155 | |
156 | 156 | foreach ($reflection->getProperties() as $property) { |
157 | 157 | $column = $dataMap->getColumnMap($property->getName()); |
158 | - if ($column !== null) { |
|
158 | + if ($column !== NULL) { |
|
159 | 159 | $result->columns[$column->getColumnName()]->fieldComment = $this->parseDocComment($property->getDocComment()); |
160 | 160 | } |
161 | 161 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $lines = explode("\n", $docComment); |
178 | 178 | foreach ($lines as $line) { |
179 | 179 | // Stop parsing at first tag |
180 | - if ($line !== '' && strpos($line, '@') !== false) { |
|
180 | + if ($line !== '' && strpos($line, '@') !== FALSE) { |
|
181 | 181 | break; |
182 | 182 | } |
183 | 183 | |
@@ -249,6 +249,4 @@ discard block |
||
249 | 249 | |
250 | 250 | $section->addTable($rows, $header); |
251 | 251 | } |
252 | - return $page; |
|
253 | - } |
|
254 | -} |
|
252 | + return $page |
|
255 | 253 | \ No newline at end of file |