@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | $objectIdentifiers = $this->documentRepository->getObjectIdentifiers(); |
| 58 | 58 | |
| 59 | - $args = $this->request->getArguments(); |
|
| 59 | + $args = $this->request->getArguments(); |
|
| 60 | 60 | |
| 61 | 61 | // assign result list from elastic search |
| 62 | 62 | $this->view->assign('searchList', $args['results']); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $results = $this->getResultList($query, $type); |
| 93 | 93 | |
| 94 | 94 | $this->view->assign('resultList', $results); |
| 95 | - $this->view->assign('alreadyImported', array()); |
|
| 95 | + $this->view->assign('alreadyImported', array ()); |
|
| 96 | 96 | } catch (\Exception $exception) { |
| 97 | 97 | $severity = \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR; |
| 98 | 98 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | // show extended search template |
| 123 | 123 | $objectIdentifiers = $this->documentRepository->getObjectIdentifiers(); |
| 124 | 124 | |
| 125 | - $args = $this->request->getArguments(); |
|
| 125 | + $args = $this->request->getArguments(); |
|
| 126 | 126 | |
| 127 | 127 | // assign result list from elastic search |
| 128 | 128 | $this->view->assign('searchList', $args['results']); |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - $this->forward("list", null, null, array('results' => $results)); |
|
| 168 | + $this->forward("list", null, null, array ('results' => $results)); |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
@@ -232,10 +232,10 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | if ($extSearch) { |
| 234 | 234 | // redirect to extended search view |
| 235 | - $this->forward("extendedSearch", null, null, array('results' => $results, 'query' => $args['query'])); |
|
| 235 | + $this->forward("extendedSearch", null, null, array ('results' => $results, 'query' => $args['query'])); |
|
| 236 | 236 | } else { |
| 237 | 237 | // redirect to list view |
| 238 | - $this->forward("list", null, null, array('results' => $results, 'query' => $args['query'])); |
|
| 238 | + $this->forward("list", null, null, array ('results' => $results, 'query' => $args['query'])); |
|
| 239 | 239 | } |
| 240 | 240 | } |
| 241 | 241 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $remoteRepository = $this->objectManager->get(FedoraRepository::class); |
| 253 | 253 | $documentTransferManager->setRemoteRepository($remoteRepository); |
| 254 | 254 | |
| 255 | - $args[] = array(); |
|
| 255 | + $args[] = array (); |
|
| 256 | 256 | |
| 257 | 257 | try { |
| 258 | 258 | if ($documentTransferManager->retrieve($documentObjectIdentifier)) { |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | true |
| 282 | 282 | ); |
| 283 | 283 | |
| 284 | - $this->forward('updateIndex', null, null, array('documentObjectIdentifier' => $documentObjectIdentifier)); |
|
| 284 | + $this->forward('updateIndex', null, null, array ('documentObjectIdentifier' => $documentObjectIdentifier)); |
|
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | /** |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | |
| 342 | 342 | $results = $elasticSearch->search($query, ''); |
| 343 | 343 | |
| 344 | - $searchList = array(); |
|
| 344 | + $searchList = array (); |
|
| 345 | 345 | |
| 346 | 346 | // filter out identical document from the search result list |
| 347 | 347 | foreach ($results['hits'] as $entry) { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | $client = $this->clientRepository->findAll()->current(); |
| 398 | 398 | |
| 399 | 399 | // get the latest documents /CREATED_DATE |
| 400 | - $query['body']['sort'] = array('CREATED_DATE' => array('order' => 'desc')); |
|
| 400 | + $query['body']['sort'] = array ('CREATED_DATE' => array ('order' => 'desc')); |
|
| 401 | 401 | |
| 402 | 402 | // add owner id |
| 403 | 403 | $query['body']['query']['bool']['must']['term']['OWNER_ID'] = $client->getOwnerId(); // qucosa |