@@ -25,8 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @access public |
| 27 | 27 | */ |
| 28 | -class IiifUrlReader implements UrlReaderInterface |
|
| 29 | -{ |
|
| 28 | +class IiifUrlReader implements UrlReaderInterface { |
|
| 30 | 29 | /** |
| 31 | 30 | * @access protected |
| 32 | 31 | * @var IiifUrlReader Singleton instance of the class |
@@ -36,8 +35,7 @@ discard block |
||
| 36 | 35 | /** |
| 37 | 36 | * @see UrlReaderInterface::getContent() |
| 38 | 37 | */ |
| 39 | - public function getContent($url) |
|
| 40 | - { |
|
| 38 | + public function getContent($url) { |
|
| 41 | 39 | $fileContents = GeneralUtility::getUrl($url); |
| 42 | 40 | if ($fileContents !== false) { |
| 43 | 41 | return $fileContents; |
@@ -20,8 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class Page |
|
| 24 | -{ |
|
| 23 | +class Page { |
|
| 25 | 24 | |
| 26 | 25 | /** |
| 27 | 26 | * @access private |
@@ -57,8 +56,7 @@ discard block |
||
| 57 | 56 | * |
| 58 | 57 | * @return void |
| 59 | 58 | */ |
| 60 | - public function __construct(int $id, array $page) |
|
| 61 | - { |
|
| 59 | + public function __construct(int $id, array $page) { |
|
| 62 | 60 | $this->id = $id; |
| 63 | 61 | $this->name = $page['id']; |
| 64 | 62 | $this->width = $page['width']; |
@@ -20,8 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class Highlight |
|
| 24 | -{ |
|
| 23 | +class Highlight { |
|
| 25 | 24 | |
| 26 | 25 | /** |
| 27 | 26 | * @access private |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * |
| 63 | 62 | * @return void |
| 64 | 63 | */ |
| 65 | - public function __construct(array $highlight) |
|
| 66 | - { |
|
| 64 | + public function __construct(array $highlight) { |
|
| 67 | 65 | // there is also possibility to access parentRegionIdx |
| 68 | 66 | // $this->parentRegionId = $highlight['parentRegionIdx']; |
| 69 | 67 | $this->xBeginPosition = $highlight['ulx']; |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @access public |
| 24 | 24 | */ |
| 25 | -class ResultDocument |
|
| 26 | -{ |
|
| 25 | +class ResultDocument { |
|
| 27 | 26 | |
| 28 | 27 | /** |
| 29 | 28 | * @access private |
@@ -108,8 +107,7 @@ discard block |
||
| 108 | 107 | * |
| 109 | 108 | * @return void |
| 110 | 109 | */ |
| 111 | - public function __construct(Document $record, array $highlighting, array $fields) |
|
| 112 | - { |
|
| 110 | + public function __construct(Document $record, array $highlighting, array $fields) { |
|
| 113 | 111 | $this->id = $record[$fields['id']]; |
| 114 | 112 | $this->uid = $record[$fields['uid']]; |
| 115 | 113 | $this->page = $record[$fields['page']]; |
@@ -42,8 +42,7 @@ discard block |
||
| 42 | 42 | * @property-read bool $ready flag if the Solr service is instantiated successfully |
| 43 | 43 | * @property-read Client $service this holds the Solr service object |
| 44 | 44 | */ |
| 45 | -class Solr implements LoggerAwareInterface |
|
| 46 | -{ |
|
| 45 | +class Solr implements LoggerAwareInterface { |
|
| 47 | 46 | use LoggerAwareTrait; |
| 48 | 47 | |
| 49 | 48 | /** |
@@ -518,8 +517,7 @@ discard block |
||
| 518 | 517 | * |
| 519 | 518 | * @return mixed Value of $this->$var |
| 520 | 519 | */ |
| 521 | - public function __get(string $var) |
|
| 522 | - { |
|
| 520 | + public function __get(string $var) { |
|
| 523 | 521 | $method = 'magicGet' . ucfirst($var); |
| 524 | 522 | if ( |
| 525 | 523 | !property_exists($this, $var) |
@@ -578,8 +576,7 @@ discard block |
||
| 578 | 576 | * |
| 579 | 577 | * @return void |
| 580 | 578 | */ |
| 581 | - protected function __construct(?string $core) |
|
| 582 | - { |
|
| 579 | + protected function __construct(?string $core) { |
|
| 583 | 580 | // Solarium requires different code for version 5 and 6. |
| 584 | 581 | $isSolarium5 = Client::checkExact('5'); |
| 585 | 582 | // Get Solr connection parameters from configuration. |
@@ -18,8 +18,7 @@ discard block |
||
| 18 | 18 | * @property int $limit |
| 19 | 19 | * @property int $offset |
| 20 | 20 | */ |
| 21 | -class SolrSearchQuery implements QueryInterface |
|
| 22 | -{ |
|
| 21 | +class SolrSearchQuery implements QueryInterface { |
|
| 23 | 22 | /** |
| 24 | 23 | * @access private |
| 25 | 24 | * @var SolrSearch |
@@ -47,8 +46,7 @@ discard block |
||
| 47 | 46 | * |
| 48 | 47 | * @return void |
| 49 | 48 | */ |
| 50 | - public function __construct($solrSearch) |
|
| 51 | - { |
|
| 49 | + public function __construct($solrSearch) { |
|
| 52 | 50 | $this->solrSearch = $solrSearch; |
| 53 | 51 | |
| 54 | 52 | $this->offset = 0; |
@@ -70,8 +68,7 @@ discard block |
||
| 70 | 68 | */ |
| 71 | 69 | // TODO: Return type (array) of method SolrSearchQuery::execute() should be compatible with return type (iterable<object>&TYPO3\CMS\Extbase\Persistence\QueryResultInterface) of method TYPO3\CMS\Extbase\Persistence\QueryInterface::execute() |
| 72 | 70 | // @phpstan-ignore-next-line |
| 73 | - public function execute($returnRawQueryResult = false) |
|
| 74 | - { |
|
| 71 | + public function execute($returnRawQueryResult = false) { |
|
| 75 | 72 | $this->solrSearch->submit($this->offset, $this->limit); |
| 76 | 73 | |
| 77 | 74 | // solrSearch now only contains the results in range, indexed in [0, n) |
@@ -146,8 +143,8 @@ discard block |
||
| 146 | 143 | // @phpstan-ignore-next-line |
| 147 | 144 | public function getQuerySettings() {} |
| 148 | 145 | |
| 149 | - public function count() |
|
| 150 | - {// @phpstan-ignore-next-line |
|
| 146 | + public function count() { |
|
| 147 | +// @phpstan-ignore-next-line |
|
| 151 | 148 | // TODO? |
| 152 | 149 | } |
| 153 | 150 | |
@@ -22,8 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @abstract |
| 24 | 24 | */ |
| 25 | -interface FulltextInterface |
|
| 26 | -{ |
|
| 25 | +interface FulltextInterface { |
|
| 27 | 26 | /** |
| 28 | 27 | * This extracts raw fulltext data from XML |
| 29 | 28 | * |
@@ -33,8 +33,7 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | - public function emit() |
|
| 37 | - { |
|
| 36 | + public function emit() { |
|
| 38 | 37 | // Disable output buffering |
| 39 | 38 | ob_end_flush(); |
| 40 | 39 | |
@@ -22,8 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @abstract |
| 24 | 24 | */ |
| 25 | -interface MetadataInterface |
|
| 26 | -{ |
|
| 25 | +interface MetadataInterface { |
|
| 27 | 26 | /** |
| 28 | 27 | * This extracts metadata from XML |
| 29 | 28 | * |