@@ -75,7 +75,7 @@ |
||
| 75 | 75 | // extract collection(s) from collection parameter |
| 76 | 76 | $collection = null; |
| 77 | 77 | if ($this->searchParams['collection']) { |
| 78 | - foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 78 | + foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 79 | 79 | $collection[] = $this->collectionRepository->findByUid($collectionEntry); |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | * @subpackage dlf |
| 30 | 30 | * @access public |
| 31 | 31 | */ |
| 32 | -class ListViewController extends AbstractController |
|
| 33 | -{ |
|
| 32 | +class ListViewController extends AbstractController { |
|
| 34 | 33 | /** |
| 35 | 34 | * @var CollectionRepository |
| 36 | 35 | */ |
@@ -39,8 +38,7 @@ discard block |
||
| 39 | 38 | /** |
| 40 | 39 | * @param CollectionRepository $collectionRepository |
| 41 | 40 | */ |
| 42 | - public function injectCollectionRepository(CollectionRepository $collectionRepository) |
|
| 43 | - { |
|
| 41 | + public function injectCollectionRepository(CollectionRepository $collectionRepository) { |
|
| 44 | 42 | $this->collectionRepository = $collectionRepository; |
| 45 | 43 | } |
| 46 | 44 | |
@@ -52,8 +50,7 @@ discard block |
||
| 52 | 50 | /** |
| 53 | 51 | * @param MetadataRepository $metadataRepository |
| 54 | 52 | */ |
| 55 | - public function injectMetadataRepository(MetadataRepository $metadataRepository) |
|
| 56 | - { |
|
| 53 | + public function injectMetadataRepository(MetadataRepository $metadataRepository) { |
|
| 57 | 54 | $this->metadataRepository = $metadataRepository; |
| 58 | 55 | } |
| 59 | 56 | |
@@ -68,8 +65,7 @@ discard block |
||
| 68 | 65 | * |
| 69 | 66 | * @return void |
| 70 | 67 | */ |
| 71 | - public function mainAction() |
|
| 72 | - { |
|
| 68 | + public function mainAction() { |
|
| 73 | 69 | $this->searchParams = $this->getParametersSafely('searchParameter'); |
| 74 | 70 | |
| 75 | 71 | // extract collection(s) from collection parameter |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $this->searchParams = $this->getParametersSafely('searchParameter'); |
| 74 | 74 | |
| 75 | 75 | // extract collection(s) from collection parameter |
| 76 | - $collection = null; |
|
| 76 | + $collection = NULL; |
|
| 77 | 77 | if ($this->searchParams['collection']) { |
| 78 | 78 | foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
| 79 | 79 | $collection[] = $this->collectionRepository->findByUid($collectionEntry); |
@@ -87,15 +87,15 @@ discard block |
||
| 87 | 87 | $GLOBALS['TSFE']->fe_user->setKey('ses', 'widgetPage', $widgetPage); |
| 88 | 88 | |
| 89 | 89 | // get all sortable metadata records |
| 90 | - $sortableMetadata = $this->metadataRepository->findByIsSortable(true); |
|
| 90 | + $sortableMetadata = $this->metadataRepository->findByIsSortable(TRUE); |
|
| 91 | 91 | |
| 92 | 92 | // get all metadata records to be shown in results |
| 93 | - $listedMetadata = $this->metadataRepository->findByIsListed(true); |
|
| 93 | + $listedMetadata = $this->metadataRepository->findByIsListed(TRUE); |
|
| 94 | 94 | |
| 95 | 95 | $solrResults = []; |
| 96 | 96 | $numResults = 0; |
| 97 | 97 | if (is_array($this->searchParams) && !empty($this->searchParams)) { |
| 98 | - $solrResults = $this->documentRepository->findSolrByCollection($collection ? : null, $this->settings, $this->searchParams, $listedMetadata); |
|
| 98 | + $solrResults = $this->documentRepository->findSolrByCollection($collection ? : NULL, $this->settings, $this->searchParams, $listedMetadata); |
|
| 99 | 99 | $numResults = $solrResults->getNumFound(); |
| 100 | 100 | } |
| 101 | 101 | |
@@ -22,15 +22,13 @@ discard block |
||
| 22 | 22 | * @subpackage dlf |
| 23 | 23 | * @access public |
| 24 | 24 | */ |
| 25 | -class PageGridController extends AbstractController |
|
| 26 | -{ |
|
| 25 | +class PageGridController extends AbstractController { |
|
| 27 | 26 | /** |
| 28 | 27 | * The main method of the plugin |
| 29 | 28 | * |
| 30 | 29 | * @return void |
| 31 | 30 | */ |
| 32 | - public function mainAction() |
|
| 33 | - { |
|
| 31 | + public function mainAction() { |
|
| 34 | 32 | $this->loadDocument($this->requestData); |
| 35 | 33 | if ( |
| 36 | 34 | $this->isDocMissingOrEmpty() |
@@ -64,8 +62,7 @@ discard block |
||
| 64 | 62 | * |
| 65 | 63 | * @return array The rendered entry ready for fluid |
| 66 | 64 | */ |
| 67 | - protected function getEntry($number, $fileGrpThumbs) |
|
| 68 | - { |
|
| 65 | + protected function getEntry($number, $fileGrpThumbs) { |
|
| 69 | 66 | // Set pagination. |
| 70 | 67 | $entry['pagination'] = htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$number]]['orderlabel']); |
| 71 | 68 | $entry['page'] = $number; |