@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | $pageOptions = []; |
76 | 76 | for ($i = 1; $i <= $this->document->getDoc()->numPages; $i++) { |
77 | - $pageOptions[$i] = '[' . $i . ']' . ($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel'] ? ' - ' . htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel']) : ''); |
|
77 | + $pageOptions[$i] = '['.$i.']'.($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel'] ? ' - '.htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel']) : ''); |
|
78 | 78 | } |
79 | 79 | $this->view->assign('pageOptions', $pageOptions); |
80 | 80 |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | // Load current document. |
36 | 36 | $this->loadDocument($this->requestData); |
37 | 37 | if ( |
38 | - $this->document === null |
|
39 | - || $this->document->getDoc() === null |
|
38 | + $this->document === NULL |
|
39 | + || $this->document->getDoc() === NULL |
|
40 | 40 | ) { |
41 | 41 | // Quit without doing anything if required variables are not set. |
42 | 42 | return ''; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | // prepare feature array for fluid |
82 | 82 | $features = []; |
83 | 83 | foreach (explode(',', $this->settings['features']) as $feature) { |
84 | - $features[$feature] = true; |
|
84 | + $features[$feature] = TRUE; |
|
85 | 85 | } |
86 | 86 | $this->view->assign('features', $features); |
87 | 87 | } |
@@ -23,8 +23,7 @@ discard block |
||
23 | 23 | * @subpackage dlf |
24 | 24 | * @access public |
25 | 25 | */ |
26 | -class NavigationController extends AbstractController |
|
27 | -{ |
|
26 | +class NavigationController extends AbstractController { |
|
28 | 27 | /** |
29 | 28 | * Method to get the page select values and use them with chash |
30 | 29 | * @param \Kitodo\Dlf\Domain\Model\PageSelectForm|NULL $pageSelectForm |
@@ -53,8 +52,7 @@ discard block |
||
53 | 52 | * |
54 | 53 | * @return void |
55 | 54 | */ |
56 | - public function mainAction() |
|
57 | - { |
|
55 | + public function mainAction() { |
|
58 | 56 | // Load current document. |
59 | 57 | $this->loadDocument($this->requestData); |
60 | 58 | if ( |
@@ -140,7 +140,7 @@ |
||
140 | 140 | } |
141 | 141 | } |
142 | 142 | // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries. |
143 | - $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'] . 'IFSUB'); |
|
143 | + $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'].'IFSUB'); |
|
144 | 144 | } |
145 | 145 | return $entryArray; |
146 | 146 | } |
@@ -24,8 +24,7 @@ discard block |
||
24 | 24 | * @subpackage dlf |
25 | 25 | * @access public |
26 | 26 | */ |
27 | -class TableOfContentsController extends AbstractController |
|
28 | -{ |
|
27 | +class TableOfContentsController extends AbstractController { |
|
29 | 28 | /** |
30 | 29 | * This holds the active entries according to the currently selected page |
31 | 30 | * |
@@ -39,8 +38,7 @@ discard block |
||
39 | 38 | * |
40 | 39 | * @return void |
41 | 40 | */ |
42 | - public function mainAction() |
|
43 | - { |
|
41 | + public function mainAction() { |
|
44 | 42 | // Load current document. |
45 | 43 | $this->loadDocument($this->requestData); |
46 | 44 | if ( |
@@ -66,8 +64,7 @@ discard block |
||
66 | 64 | * @access protected |
67 | 65 | * @return array HMENU array |
68 | 66 | */ |
69 | - protected function makeMenuArray() |
|
70 | - { |
|
67 | + protected function makeMenuArray() { |
|
71 | 68 | // Set default values for page if not set. |
72 | 69 | // $this->requestData['page'] may be integer or string (physical structure @ID) |
73 | 70 | if ( |
@@ -143,8 +140,7 @@ discard block |
||
143 | 140 | * |
144 | 141 | * @return array HMENU array for menu entry |
145 | 142 | */ |
146 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
147 | - { |
|
143 | + protected function getMenuEntry(array $entry, $recursive = false) { |
|
148 | 144 | $entry = $this->resolveMenuEntry($entry); |
149 | 145 | |
150 | 146 | $entryArray = []; |
@@ -238,8 +234,7 @@ discard block |
||
238 | 234 | * @param array $entry |
239 | 235 | * @return array |
240 | 236 | */ |
241 | - protected function resolveMenuEntry($entry) |
|
242 | - { |
|
237 | + protected function resolveMenuEntry($entry) { |
|
243 | 238 | // If the menu entry points to the parent document, |
244 | 239 | // resolve to the parent UID set on indexation. |
245 | 240 | $doc = $this->document->getDoc(); |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | // Load current document. |
45 | 45 | $this->loadDocument($this->requestData); |
46 | 46 | if ( |
47 | - $this->document === null |
|
48 | - || $this->document->getDoc() === null |
|
47 | + $this->document === NULL |
|
48 | + || $this->document->getDoc() === NULL |
|
49 | 49 | ) { |
50 | 50 | // Quit without doing anything if required variables are not set. |
51 | 51 | return; |
@@ -102,12 +102,12 @@ discard block |
||
102 | 102 | } |
103 | 103 | // Go through table of contents and create all menu entries. |
104 | 104 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
105 | - $menuArray[] = $this->getMenuEntry($entry, true); |
|
105 | + $menuArray[] = $this->getMenuEntry($entry, TRUE); |
|
106 | 106 | } |
107 | 107 | } else { |
108 | 108 | // Go through table of contents and create top-level menu entries. |
109 | 109 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
110 | - $menuArray[] = $this->getMenuEntry($entry, false); |
|
110 | + $menuArray[] = $this->getMenuEntry($entry, FALSE); |
|
111 | 111 | } |
112 | 112 | // Build table of contents from database. |
113 | 113 | $result = $this->documentRepository->getTableOfContentsFromDb($this->document->getUid(), $this->document->getPid(), $this->settings); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | 'pagination' => '', |
127 | 127 | 'targetUid' => $resArray['uid'] |
128 | 128 | ]; |
129 | - $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, false); |
|
129 | + $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, FALSE); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @return array HMENU array for menu entry |
145 | 145 | */ |
146 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
146 | + protected function getMenuEntry(array $entry, $recursive = FALSE) |
|
147 | 147 | { |
148 | 148 | $entry = $this->resolveMenuEntry($entry); |
149 | 149 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | } |
202 | 202 | // Build sub-menu if available and called recursively. |
203 | 203 | if ( |
204 | - $recursive === true |
|
204 | + $recursive === TRUE |
|
205 | 205 | && !empty($entry['children']) |
206 | 206 | ) { |
207 | 207 | // Build sub-menu only if one of the following conditions apply: |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | if (in_array($child['id'], $this->activeEntries)) { |
220 | 220 | $entryArray['ITEM_STATE'] = 'ACT'; |
221 | 221 | } |
222 | - $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, true); |
|
222 | + $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, TRUE); |
|
223 | 223 | } |
224 | 224 | } |
225 | 225 | // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries. |
@@ -139,10 +139,10 @@ discard block |
||
139 | 139 | ) { |
140 | 140 | // Get current configuration. |
141 | 141 | $result = $queryBuilder |
142 | - ->select($table . '.is_listed AS is_listed') |
|
142 | + ->select($table.'.is_listed AS is_listed') |
|
143 | 143 | ->from($table) |
144 | 144 | ->where( |
145 | - $queryBuilder->expr()->eq($table . '.uid', intval($id)), |
|
145 | + $queryBuilder->expr()->eq($table.'.uid', intval($id)), |
|
146 | 146 | Helper::whereExpression($table) |
147 | 147 | ) |
148 | 148 | ->setMaxResults(1) |
@@ -164,10 +164,10 @@ discard block |
||
164 | 164 | ) { |
165 | 165 | // Get current configuration. |
166 | 166 | $result = $queryBuilder |
167 | - ->select($table . '.index_autocomplete AS index_autocomplete') |
|
167 | + ->select($table.'.index_autocomplete AS index_autocomplete') |
|
168 | 168 | ->from($table) |
169 | 169 | ->where( |
170 | - $queryBuilder->expr()->eq($table . '.uid', intval($id)), |
|
170 | + $queryBuilder->expr()->eq($table.'.uid', intval($id)), |
|
171 | 171 | Helper::whereExpression($table) |
172 | 172 | ) |
173 | 173 | ->setMaxResults(1) |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | if ($solr->ready) { |
243 | 243 | // Delete Solr document. |
244 | 244 | $updateQuery = $solr->service->createUpdate(); |
245 | - $updateQuery->addDeleteQuery('uid:' . $id); |
|
245 | + $updateQuery->addDeleteQuery('uid:'.$id); |
|
246 | 246 | $updateQuery->addCommit(); |
247 | 247 | $solr->service->update($updateQuery); |
248 | 248 | } |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $document->setDoc($doc); |
255 | 255 | Indexer::add($document); |
256 | 256 | } else { |
257 | - $this->logger->error('Failed to re-index document with UID ' . $id); |
|
257 | + $this->logger->error('Failed to re-index document with UID '.$id); |
|
258 | 258 | } |
259 | 259 | } |
260 | 260 | } |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | if ($solr->ready) { |
322 | 322 | // Delete Solr document. |
323 | 323 | $updateQuery = $solr->service->createUpdate(); |
324 | - $updateQuery->addDeleteQuery('uid:' . $id); |
|
324 | + $updateQuery->addDeleteQuery('uid:'.$id); |
|
325 | 325 | $updateQuery->addCommit(); |
326 | 326 | $solr->service->update($updateQuery); |
327 | 327 | if ($command == 'delete') { |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | $document->setDoc($doc); |
337 | 337 | Indexer::add($document); |
338 | 338 | } else { |
339 | - $this->logger->error('Failed to re-index document with UID ' . $id); |
|
339 | + $this->logger->error('Failed to re-index document with UID '.$id); |
|
340 | 340 | } |
341 | 341 | break; |
342 | 342 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | // Nothing to do here. |
388 | 388 | } |
389 | 389 | } |
390 | - $this->logger->warning('Core ' . $resArray['core'] . ' could not be deleted from Apache Solr'); |
|
390 | + $this->logger->warning('Core '.$resArray['core'].' could not be deleted from Apache Solr'); |
|
391 | 391 | } |
392 | 392 | } |
393 | 393 | } |
@@ -34,8 +34,7 @@ discard block |
||
34 | 34 | * @subpackage dlf |
35 | 35 | * @access public |
36 | 36 | */ |
37 | -class DataHandler implements LoggerAwareInterface |
|
38 | -{ |
|
37 | +class DataHandler implements LoggerAwareInterface { |
|
39 | 38 | use LoggerAwareTrait; |
40 | 39 | |
41 | 40 | /** |
@@ -43,8 +42,7 @@ discard block |
||
43 | 42 | */ |
44 | 43 | protected $documentRepository; |
45 | 44 | |
46 | - protected function getDocumentRepository() |
|
47 | - { |
|
45 | + protected function getDocumentRepository() { |
|
48 | 46 | if ($this->documentRepository === null) { |
49 | 47 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
50 | 48 | $this->documentRepository = $objectManager->get(DocumentRepository::class); |
@@ -65,8 +63,7 @@ discard block |
||
65 | 63 | * |
66 | 64 | * @return void |
67 | 65 | */ |
68 | - public function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray) |
|
69 | - { |
|
66 | + public function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray) { |
|
70 | 67 | if ($status == 'new') { |
71 | 68 | switch ($table) { |
72 | 69 | // Field post-processing for table "tx_dlf_documents". |
@@ -195,8 +192,7 @@ discard block |
||
195 | 192 | * |
196 | 193 | * @return void |
197 | 194 | */ |
198 | - public function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray) |
|
199 | - { |
|
195 | + public function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray) { |
|
200 | 196 | if ($status == 'update') { |
201 | 197 | switch ($table) { |
202 | 198 | // After database operations for table "tx_dlf_documents". |
@@ -275,8 +271,7 @@ discard block |
||
275 | 271 | * |
276 | 272 | * @return void |
277 | 273 | */ |
278 | - public function processCmdmap_postProcess($command, $table, $id) |
|
279 | - { |
|
274 | + public function processCmdmap_postProcess($command, $table, $id) { |
|
280 | 275 | if ( |
281 | 276 | in_array($command, ['move', 'delete', 'undelete']) |
282 | 277 | && $table == 'tx_dlf_documents' |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | protected function getDocumentRepository() |
47 | 47 | { |
48 | - if ($this->documentRepository === null) { |
|
48 | + if ($this->documentRepository === NULL) { |
|
49 | 49 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
50 | 50 | $this->documentRepository = $objectManager->get(DocumentRepository::class); |
51 | 51 | } |
@@ -249,8 +249,8 @@ discard block |
||
249 | 249 | } else { |
250 | 250 | // Reindex document. |
251 | 251 | $document = $this->getDocumentRepository()->findByUid($id); |
252 | - $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], true); |
|
253 | - if ($document !== null && $doc !== null) { |
|
252 | + $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], TRUE); |
|
253 | + if ($document !== NULL && $doc !== NULL) { |
|
254 | 254 | $document->setDoc($doc); |
255 | 255 | Indexer::add($document); |
256 | 256 | } else { |
@@ -331,8 +331,8 @@ discard block |
||
331 | 331 | case 'undelete': |
332 | 332 | // Reindex document. |
333 | 333 | $document = $this->getDocumentRepository()->findByUid($id); |
334 | - $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], true); |
|
335 | - if ($document !== null && $doc !== null) { |
|
334 | + $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], TRUE); |
|
335 | + if ($document !== NULL && $doc !== NULL) { |
|
336 | 336 | $document->setDoc($doc); |
337 | 337 | Indexer::add($document); |
338 | 338 | } else { |
@@ -374,9 +374,9 @@ discard block |
||
374 | 374 | $query = $solr->service->createCoreAdmin(); |
375 | 375 | $action = $query->createUnload(); |
376 | 376 | $action->setCore($resArray['core']); |
377 | - $action->setDeleteDataDir(true); |
|
378 | - $action->setDeleteIndex(true); |
|
379 | - $action->setDeleteInstanceDir(true); |
|
377 | + $action->setDeleteDataDir(TRUE); |
|
378 | + $action->setDeleteIndex(TRUE); |
|
379 | + $action->setDeleteInstanceDir(TRUE); |
|
380 | 380 | $query->setAction($action); |
381 | 381 | try { |
382 | 382 | $response = $solr->service->coreAdmin($query); |
@@ -126,8 +126,8 @@ |
||
126 | 126 | ->select(...explode(',', $fields)) |
127 | 127 | ->from($table) |
128 | 128 | ->where( |
129 | - $queryBuilder->expr()->eq($table . '.pid', intval($this->storagePid)), |
|
130 | - $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]), |
|
129 | + $queryBuilder->expr()->eq($table.'.pid', intval($this->storagePid)), |
|
130 | + $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]), |
|
131 | 131 | $andWhere |
132 | 132 | ) |
133 | 133 | ->orderBy($sorting) |
@@ -28,8 +28,7 @@ discard block |
||
28 | 28 | * @subpackage dlf |
29 | 29 | * @access public |
30 | 30 | */ |
31 | -class ItemsProcFunc implements LoggerAwareInterface |
|
32 | -{ |
|
31 | +class ItemsProcFunc implements LoggerAwareInterface { |
|
33 | 32 | use LoggerAwareTrait; |
34 | 33 | |
35 | 34 | /** |
@@ -46,8 +45,7 @@ discard block |
||
46 | 45 | * |
47 | 46 | * @return void |
48 | 47 | */ |
49 | - public function toolList(&$params) |
|
50 | - { |
|
48 | + public function toolList(&$params) { |
|
51 | 49 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] as $class => $label) { |
52 | 50 | $params['items'][] = [Helper::getLanguageService()->sL($label), $class]; |
53 | 51 | } |
@@ -97,8 +95,7 @@ discard block |
||
97 | 95 | * |
98 | 96 | * @return void |
99 | 97 | */ |
100 | - public function extendedSearchList(&$params) |
|
101 | - { |
|
98 | + public function extendedSearchList(&$params) { |
|
102 | 99 | $this->generateList( |
103 | 100 | $params, |
104 | 101 | 'label,index_name', |
@@ -139,8 +136,7 @@ discard block |
||
139 | 136 | * |
140 | 137 | * @return void |
141 | 138 | */ |
142 | - protected function generateList(&$params, $fields, $table, $sorting, $andWhere = '') |
|
143 | - { |
|
139 | + protected function generateList(&$params, $fields, $table, $sorting, $andWhere = '') { |
|
144 | 140 | $this->getTyposcriptConfigFromPluginSiteRoot($params); |
145 | 141 | |
146 | 142 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
@@ -22,7 +22,7 @@ |
||
22 | 22 | // parameters are available in $this->data['parameterArray']['fieldConf']['config']['parameters'] |
23 | 23 | $result = $this->initializeResultArray(); |
24 | 24 | if (!empty($this->data['databaseRow']['thumbnail'])) { |
25 | - $result['html'] = '<img alt="Thumbnail" title="" src="' . $this->data['databaseRow']['thumbnail'] . '" />'; |
|
25 | + $result['html'] = '<img alt="Thumbnail" title="" src="'.$this->data['databaseRow']['thumbnail'].'" />'; |
|
26 | 26 | } else { |
27 | 27 | $result['html'] = ''; |
28 | 28 | } |
@@ -14,10 +14,8 @@ |
||
14 | 14 | |
15 | 15 | use TYPO3\CMS\Backend\Form\Element\AbstractFormElement; |
16 | 16 | |
17 | -class ThumbnailCustomElement extends AbstractFormElement |
|
18 | -{ |
|
19 | - public function render() |
|
20 | - { |
|
17 | +class ThumbnailCustomElement extends AbstractFormElement { |
|
18 | + public function render() { |
|
21 | 19 | // Custom TCA properties and other data can be found in $this->data, for example the above |
22 | 20 | // parameters are available in $this->data['parameterArray']['fieldConf']['config']['parameters'] |
23 | 21 | $result = $this->initializeResultArray(); |
@@ -29,8 +29,7 @@ discard block |
||
29 | 29 | * @subpackage dlf |
30 | 30 | * @access public |
31 | 31 | */ |
32 | -class ConfigurationForm |
|
33 | -{ |
|
32 | +class ConfigurationForm { |
|
34 | 33 | |
35 | 34 | /** |
36 | 35 | * Check if a connection to a Solr server could be established with the given credentials. |
@@ -39,8 +38,7 @@ discard block |
||
39 | 38 | * |
40 | 39 | * @return string Message informing the user of success or failure |
41 | 40 | */ |
42 | - public function checkSolrConnection() |
|
43 | - { |
|
41 | + public function checkSolrConnection() { |
|
44 | 42 | $solr = Solr::getInstance(); |
45 | 43 | if ($solr->ready) { |
46 | 44 | Helper::addMessage( |
@@ -65,8 +63,7 @@ discard block |
||
65 | 63 | * |
66 | 64 | * @return void |
67 | 65 | */ |
68 | - public function __construct() |
|
69 | - { |
|
66 | + public function __construct() { |
|
70 | 67 | // Load backend localization file. |
71 | 68 | Helper::getLanguageService()->includeLLFile('EXT:dlf/Resources/Private/Language/locallang_be.xlf'); |
72 | 69 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @var \Kitodo\Dlf\Common\Doc|null |
42 | 42 | */ |
43 | - protected $doc = null; |
|
43 | + protected $doc = NULL; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @var string |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> |
157 | 157 | * @Extbase\ORM\Lazy |
158 | 158 | */ |
159 | - protected $collections = null; |
|
159 | + protected $collections = NULL; |
|
160 | 160 | |
161 | 161 | /** |
162 | 162 | * @var string |
@@ -192,14 +192,12 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * constructor |
194 | 194 | */ |
195 | - public function __construct() |
|
196 | - { |
|
195 | + public function __construct() { |
|
197 | 196 | // Do not remove the next line: It would break the functionality |
198 | 197 | $this->initStorageObjects(); |
199 | 198 | } |
200 | 199 | |
201 | - protected function initStorageObjects() |
|
202 | - { |
|
200 | + protected function initStorageObjects() { |
|
203 | 201 | $this->collections = new ObjectStorage(); |
204 | 202 | } |
205 | 203 | |
@@ -577,8 +575,7 @@ discard block |
||
577 | 575 | * |
578 | 576 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> $collections |
579 | 577 | */ |
580 | - public function getCollections() |
|
581 | - { |
|
578 | + public function getCollections() { |
|
582 | 579 | return $this->collections; |
583 | 580 | } |
584 | 581 | |
@@ -607,8 +604,7 @@ discard block |
||
607 | 604 | * |
608 | 605 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> collections |
609 | 606 | */ |
610 | - public function removeCollection(Collection $collection) |
|
611 | - { |
|
607 | + public function removeCollection(Collection $collection) { |
|
612 | 608 | $this->collections->detach($collection); |
613 | 609 | } |
614 | 610 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference |
63 | 63 | */ |
64 | - protected $thumbnail = null; |
|
64 | + protected $thumbnail = NULL; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @var int |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | // order by oai_name |
49 | 49 | $query->setOrderings( |
50 | - array('sorting' => QueryInterface::ORDER_ASCENDING) |
|
50 | + array ('sorting' => QueryInterface::ORDER_ASCENDING) |
|
51 | 51 | ); |
52 | 52 | |
53 | 53 | return $query->execute(); |
@@ -25,8 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
27 | 27 | */ |
28 | - public function findBySettings($settings = []) |
|
29 | - { |
|
28 | + public function findBySettings($settings = []) { |
|
30 | 29 | $query = $this->createQuery(); |
31 | 30 | |
32 | 31 | $constraints = []; |