@@ -75,8 +75,7 @@ discard block |
||
75 | 75 | * @property array $mimeTypes this holds the mime types of linked resources in the manifest (extracted during parsing) for later us |
76 | 76 | * |
77 | 77 | */ |
78 | -final class IiifManifest extends AbstractDocument |
|
79 | -{ |
|
78 | +final class IiifManifest extends AbstractDocument { |
|
80 | 79 | /** |
81 | 80 | * @access protected |
82 | 81 | * @var string This holds the manifest file as string for serialization purposes |
@@ -229,8 +228,7 @@ discard block |
||
229 | 228 | * |
230 | 229 | * @return array|string |
231 | 230 | */ |
232 | - protected function getUseGroups(string $use) |
|
233 | - { |
|
231 | + protected function getUseGroups(string $use) { |
|
234 | 232 | if (!$this->useGrpsLoaded) { |
235 | 233 | // Get configured USE attributes. |
236 | 234 | $extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(self::$extKey, 'files'); |
@@ -34,8 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @access public |
36 | 36 | */ |
37 | -class PageViewProxy |
|
38 | -{ |
|
37 | +class PageViewProxy { |
|
39 | 38 | /** |
40 | 39 | * @access protected |
41 | 40 | * @var RequestFactory |
@@ -55,8 +54,7 @@ discard block |
||
55 | 54 | * |
56 | 55 | * @return void |
57 | 56 | */ |
58 | - public function __construct() |
|
59 | - { |
|
57 | + public function __construct() { |
|
60 | 58 | $this->requestFactory = GeneralUtility::makeInstance(RequestFactory::class); |
61 | 59 | $this->extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('dlf', 'general'); |
62 | 60 | } |
@@ -15,12 +15,10 @@ discard block |
||
15 | 15 | use Kitodo\Dlf\Tests\Functional\FunctionalTestCase; |
16 | 16 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
17 | 17 | |
18 | -class PageViewProxyTest extends FunctionalTestCase |
|
19 | -{ |
|
18 | +class PageViewProxyTest extends FunctionalTestCase { |
|
20 | 19 | protected $disableJsonWrappedResponse = true; |
21 | 20 | |
22 | - protected function getDlfConfiguration() |
|
23 | - { |
|
21 | + protected function getDlfConfiguration() { |
|
24 | 22 | return array_merge(parent::getDlfConfiguration(), [ |
25 | 23 | 'general' => [ |
26 | 24 | 'enableInternalProxy' => true |
@@ -28,8 +26,7 @@ discard block |
||
28 | 26 | ]); |
29 | 27 | } |
30 | 28 | |
31 | - protected function queryProxy(array $query, string $method = 'GET') |
|
32 | - { |
|
29 | + protected function queryProxy(array $query, string $method = 'GET') { |
|
33 | 30 | $query['eID'] = 'tx_dlf_pageview_proxy'; |
34 | 31 | |
35 | 32 | return $this->httpClient->request($method, '', [ |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | use Kitodo\Dlf\Common\AbstractDocument; |
16 | 16 | use Kitodo\Dlf\Tests\Functional\FunctionalTestCase; |
17 | 17 | |
18 | -class MetsDocumentTest extends FunctionalTestCase |
|
19 | -{ |
|
18 | +class MetsDocumentTest extends FunctionalTestCase { |
|
20 | 19 | public function setUp(): void |
21 | 20 | { |
22 | 21 | parent::setUp(); |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | $this->importCSVDataSet(__DIR__ . '/../../Fixtures/MetsDocument/metadata_mets.csv'); |
27 | 26 | } |
28 | 27 | |
29 | - protected function doc(string $file) |
|
30 | - { |
|
28 | + protected function doc(string $file) { |
|
31 | 29 | $url = 'http://web:8001/Tests/Fixtures/MetsDocument/' . $file; |
32 | 30 | $doc = AbstractDocument::getInstance($url, ['general' => ['useExternalApisForMetadata' => 0]]); |
33 | 31 | self::assertNotNull($doc); |
@@ -37,8 +35,7 @@ discard block |
||
37 | 35 | /** |
38 | 36 | * @test |
39 | 37 | */ |
40 | - public function canParseDmdAndAmdSec() |
|
41 | - { |
|
38 | + public function canParseDmdAndAmdSec() { |
|
42 | 39 | $doc = $this->doc('av_beispiel.xml'); |
43 | 40 | |
44 | 41 | $toplevelMetadata = $doc->getToplevelMetadata(20000); |
@@ -56,8 +53,7 @@ discard block |
||
56 | 53 | /** |
57 | 54 | * @test |
58 | 55 | */ |
59 | - public function canReadFileMetadata() |
|
60 | - { |
|
56 | + public function canReadFileMetadata() { |
|
61 | 57 | $doc = $this->doc('av_beispiel.xml'); |
62 | 58 | |
63 | 59 | $thumbsMeta = $doc->getMetadata('FILE_0000_THUMBS', 20000); |
@@ -72,8 +68,7 @@ discard block |
||
72 | 68 | /** |
73 | 69 | * @test |
74 | 70 | */ |
75 | - public function canGetLogicalStructure() |
|
76 | - { |
|
71 | + public function canGetLogicalStructure() { |
|
77 | 72 | $doc = $this->doc('av_beispiel.xml'); |
78 | 73 | |
79 | 74 | $toc = $doc->tableOfContents[0] ?? []; |
@@ -109,8 +104,7 @@ discard block |
||
109 | 104 | /** |
110 | 105 | * @test |
111 | 106 | */ |
112 | - public function doesNotOverwriteFirstDmdSec() |
|
113 | - { |
|
107 | + public function doesNotOverwriteFirstDmdSec() { |
|
114 | 108 | $doc = $this->doc('two_dmdsec.xml'); |
115 | 109 | |
116 | 110 | $toplevelMetadata = $doc->getToplevelMetadata(20000); |
@@ -123,8 +117,7 @@ discard block |
||
123 | 117 | /** |
124 | 118 | * @test |
125 | 119 | */ |
126 | - public function returnsEmptyMetadataWhenNoDmdSec() |
|
127 | - { |
|
120 | + public function returnsEmptyMetadataWhenNoDmdSec() { |
|
128 | 121 | $doc = $this->doc('two_dmdsec.xml'); |
129 | 122 | |
130 | 123 | // DMD and AMD works |
@@ -143,8 +136,7 @@ discard block |
||
143 | 136 | /** |
144 | 137 | * @test |
145 | 138 | */ |
146 | - public function canGetDownloadLocation() |
|
147 | - { |
|
139 | + public function canGetDownloadLocation() { |
|
148 | 140 | $doc = $this->doc('two_dmdsec.xml'); |
149 | 141 | |
150 | 142 | $correct = $doc->getDownloadLocation('FILE_0000_DOWNLOAD'); |
@@ -162,8 +154,7 @@ discard block |
||
162 | 154 | /** |
163 | 155 | * @test |
164 | 156 | */ |
165 | - public function canGetFileLocation() |
|
166 | - { |
|
157 | + public function canGetFileLocation() { |
|
167 | 158 | $doc = $this->doc('two_dmdsec.xml'); |
168 | 159 | |
169 | 160 | $correct = $doc->getFileLocation('FILE_0000_DEFAULT'); |
@@ -176,8 +167,7 @@ discard block |
||
176 | 167 | /** |
177 | 168 | * @test |
178 | 169 | */ |
179 | - public function canGetFileMimeType() |
|
180 | - { |
|
170 | + public function canGetFileMimeType() { |
|
181 | 171 | $doc = $this->doc('two_dmdsec.xml'); |
182 | 172 | |
183 | 173 | $correct = $doc->getFileMimeType('FILE_0000_DEFAULT'); |
@@ -191,8 +181,7 @@ discard block |
||
191 | 181 | /** |
192 | 182 | * @test |
193 | 183 | */ |
194 | - public function canGetPhysicalPage() |
|
195 | - { |
|
184 | + public function canGetPhysicalPage() { |
|
196 | 185 | $doc = $this->doc('mets_with_pages.xml'); |
197 | 186 | |
198 | 187 | // pass orderlabel and retrieve order |
@@ -203,8 +192,7 @@ discard block |
||
203 | 192 | /** |
204 | 193 | * @test |
205 | 194 | */ |
206 | - public function canGetTitle() |
|
207 | - { |
|
195 | + public function canGetTitle() { |
|
208 | 196 | $doc = $this->doc('mets_with_pages.xml'); |
209 | 197 | |
210 | 198 | $correct = $doc->getTitle(1001); |
@@ -217,8 +205,7 @@ discard block |
||
217 | 205 | /** |
218 | 206 | * @test |
219 | 207 | */ |
220 | - public function canGetFullText() |
|
221 | - { |
|
208 | + public function canGetFullText() { |
|
222 | 209 | $doc = $this->doc('mets_with_pages.xml'); |
223 | 210 | |
224 | 211 | $fulltext = $doc->getFullText('PHYS_0003'); |
@@ -234,8 +221,7 @@ discard block |
||
234 | 221 | /** |
235 | 222 | * @test |
236 | 223 | */ |
237 | - public function canGetStructureDepth() |
|
238 | - { |
|
224 | + public function canGetStructureDepth() { |
|
239 | 225 | $doc = $this->doc('mets_with_pages.xml'); |
240 | 226 | |
241 | 227 | $correct = $doc->getStructureDepth('LOG_0001'); |
@@ -27,8 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @access public |
29 | 29 | */ |
30 | -class DocumentValidator |
|
31 | -{ |
|
30 | +class DocumentValidator { |
|
32 | 31 | /** |
33 | 32 | * @access protected |
34 | 33 | * @var Logger This holds the logger |
@@ -63,8 +62,7 @@ discard block |
||
63 | 62 | * |
64 | 63 | * @return void |
65 | 64 | */ |
66 | - public function __construct(array $metadata = [], array $requiredMetadataFields = [], ?\SimpleXMLElement $xml = null) |
|
67 | - { |
|
65 | + public function __construct(array $metadata = [], array $requiredMetadataFields = [], ?\SimpleXMLElement $xml = null) { |
|
68 | 66 | $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class); |
69 | 67 | $this->metadata = $metadata; |
70 | 68 | $this->requiredMetadataFields = $requiredMetadataFields; |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | use SimpleXMLElement; |
16 | 16 | use TYPO3\TestingFramework\Core\Unit\UnitTestCase; |
17 | 17 | |
18 | -class DocumentValidatorTest extends UnitTestCase |
|
19 | -{ |
|
18 | +class DocumentValidatorTest extends UnitTestCase { |
|
20 | 19 | public function setUp(): void |
21 | 20 | { |
22 | 21 | parent::setUp(); |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | /** |
28 | 27 | * @test |
29 | 28 | */ |
30 | - public function passesHasAllMandatoryMetadataFields() |
|
31 | - { |
|
29 | + public function passesHasAllMandatoryMetadataFields() { |
|
32 | 30 | $metadata = [ |
33 | 31 | 'record_id' => [ |
34 | 32 | 'xyz' |
@@ -41,8 +39,7 @@ discard block |
||
41 | 39 | /** |
42 | 40 | * @test |
43 | 41 | */ |
44 | - public function notPassesHasAllMandatoryMetadataFields() |
|
45 | - { |
|
42 | + public function notPassesHasAllMandatoryMetadataFields() { |
|
46 | 43 | $metadata = [ |
47 | 44 | 'document_format' => [ |
48 | 45 | 'METS' |
@@ -55,8 +52,7 @@ discard block |
||
55 | 52 | /** |
56 | 53 | * @test |
57 | 54 | */ |
58 | - public function passesHasCorrectLogicalStructure() |
|
59 | - { |
|
55 | + public function passesHasCorrectLogicalStructure() { |
|
60 | 56 | $xml = $this->getXml('av_beispiel.xml'); |
61 | 57 | |
62 | 58 | $documentValidator = new DocumentValidator([], [], $xml); |
@@ -66,8 +62,7 @@ discard block |
||
66 | 62 | /** |
67 | 63 | * @test |
68 | 64 | */ |
69 | - public function notPassesHasCorrectLogicalStructure() |
|
70 | - { |
|
65 | + public function notPassesHasCorrectLogicalStructure() { |
|
71 | 66 | $xml = $this->getXml('av_beispiel.xml'); |
72 | 67 | |
73 | 68 | $documentValidator = new DocumentValidator([], [], $xml); |
@@ -77,8 +72,7 @@ discard block |
||
77 | 72 | /** |
78 | 73 | * @test |
79 | 74 | */ |
80 | - public function passesHasCorrectPhysicalStructure() |
|
81 | - { |
|
75 | + public function passesHasCorrectPhysicalStructure() { |
|
82 | 76 | $xml = $this->getXml('av_beispiel.xml'); |
83 | 77 | |
84 | 78 | $documentValidator = new DocumentValidator([], [], $xml); |
@@ -88,8 +82,7 @@ discard block |
||
88 | 82 | /** |
89 | 83 | * @test |
90 | 84 | */ |
91 | - public function notPassesHasCorrectPhysicalStructure() |
|
92 | - { |
|
85 | + public function notPassesHasCorrectPhysicalStructure() { |
|
93 | 86 | $xml = $this->getXml('two_dmdsec.xml'); |
94 | 87 | |
95 | 88 | $documentValidator = new DocumentValidator([], [], $xml); |
@@ -36,8 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @access public |
38 | 38 | */ |
39 | -class DocumentRepository extends Repository |
|
40 | -{ |
|
39 | +class DocumentRepository extends Repository { |
|
41 | 40 | /** |
42 | 41 | * @access protected |
43 | 42 | * @var array The controller settings passed to the repository for some special actions. |
@@ -61,8 +60,7 @@ discard block |
||
61 | 60 | * |
62 | 61 | * @return Document|null |
63 | 62 | */ |
64 | - public function findOneByParameters($parameters) |
|
65 | - { |
|
63 | + public function findOneByParameters($parameters) { |
|
66 | 64 | $doc = null; |
67 | 65 | $document = null; |
68 | 66 | |
@@ -108,8 +106,7 @@ discard block |
||
108 | 106 | * |
109 | 107 | * @return Document|null |
110 | 108 | */ |
111 | - public function findOldestDocument() |
|
112 | - { |
|
109 | + public function findOldestDocument() { |
|
113 | 110 | $query = $this->createQuery(); |
114 | 111 | |
115 | 112 | $query->setOrderings(['tstamp' => QueryInterface::ORDER_ASCENDING]); |
@@ -126,8 +123,7 @@ discard block |
||
126 | 123 | * |
127 | 124 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
128 | 125 | */ |
129 | - public function getChildrenOfYearAnchor($partOf, $structure) |
|
130 | - { |
|
126 | + public function getChildrenOfYearAnchor($partOf, $structure) { |
|
131 | 127 | $query = $this->createQuery(); |
132 | 128 | |
133 | 129 | $query->matching($query->equals('structure', $structure)); |
@@ -150,8 +146,7 @@ discard block |
||
150 | 146 | * |
151 | 147 | * @return Document|null |
152 | 148 | */ |
153 | - public function findOneByIdAndSettings($uid, $settings = []) |
|
154 | - { |
|
149 | + public function findOneByIdAndSettings($uid, $settings = []) { |
|
155 | 150 | $settings = ['documentSets' => $uid]; |
156 | 151 | |
157 | 152 | return $this->findDocumentsBySettings($settings)->getFirst(); |
@@ -166,8 +161,7 @@ discard block |
||
166 | 161 | * |
167 | 162 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
168 | 163 | */ |
169 | - public function findDocumentsBySettings($settings = []) |
|
170 | - { |
|
164 | + public function findDocumentsBySettings($settings = []) { |
|
171 | 165 | $query = $this->createQuery(); |
172 | 166 | |
173 | 167 | $constraints = []; |
@@ -200,8 +194,7 @@ discard block |
||
200 | 194 | * |
201 | 195 | * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface |
202 | 196 | */ |
203 | - public function findAllByCollectionsLimited($collections, int $limit = 50, int $offset = 0) |
|
204 | - { |
|
197 | + public function findAllByCollectionsLimited($collections, int $limit = 50, int $offset = 0) { |
|
205 | 198 | $query = $this->createQuery(); |
206 | 199 | |
207 | 200 | // order by start_date -> start_time... |
@@ -241,8 +234,7 @@ discard block |
||
241 | 234 | * |
242 | 235 | * @return array |
243 | 236 | */ |
244 | - public function getStatisticsForSelectedCollection($settings) |
|
245 | - { |
|
237 | + public function getStatisticsForSelectedCollection($settings) { |
|
246 | 238 | if ($settings['collections']) { |
247 | 239 | // Include only selected collections. |
248 | 240 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
@@ -378,8 +370,7 @@ discard block |
||
378 | 370 | * |
379 | 371 | * @return Result |
380 | 372 | */ |
381 | - public function getTableOfContentsFromDb($uid, $pid, $settings) |
|
382 | - { |
|
373 | + public function getTableOfContentsFromDb($uid, $pid, $settings) { |
|
383 | 374 | // Build table of contents from database. |
384 | 375 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
385 | 376 | ->getQueryBuilderForTable('tx_dlf_documents'); |
@@ -429,8 +420,7 @@ discard block |
||
429 | 420 | * |
430 | 421 | * @return array The found document object |
431 | 422 | */ |
432 | - public function getOaiRecord($settings, $parameters) |
|
433 | - { |
|
423 | + public function getOaiRecord($settings, $parameters) { |
|
434 | 424 | $where = ''; |
435 | 425 | |
436 | 426 | if (!$settings['show_userdefined']) { |
@@ -507,8 +497,7 @@ discard block |
||
507 | 497 | * |
508 | 498 | * @return array |
509 | 499 | */ |
510 | - public function findAllByUids($uids, $checkPartof = false) |
|
511 | - { |
|
500 | + public function findAllByUids($uids, $checkPartof = false) { |
|
512 | 501 | // get all documents from db we are talking about |
513 | 502 | $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); |
514 | 503 | $queryBuilder = $connectionPool->getQueryBuilderForTable('tx_dlf_documents'); |
@@ -557,8 +546,7 @@ discard block |
||
557 | 546 | * |
558 | 547 | * @return array |
559 | 548 | */ |
560 | - public function findChildrenOfEach(array $uids) |
|
561 | - { |
|
549 | + public function findChildrenOfEach(array $uids) { |
|
562 | 550 | $allDocuments = $this->findAllByUids($uids, true); |
563 | 551 | |
564 | 552 | $result = []; |
@@ -583,8 +571,7 @@ discard block |
||
583 | 571 | * |
584 | 572 | * @return SolrSearch |
585 | 573 | */ |
586 | - public function findSolrByCollection(Collection $collection, $settings, $searchParams, $listedMetadata = null, $indexedMetadata = null) |
|
587 | - { |
|
574 | + public function findSolrByCollection(Collection $collection, $settings, $searchParams, $listedMetadata = null, $indexedMetadata = null) { |
|
588 | 575 | return $this->findSolr([$collection], $settings, $searchParams, $listedMetadata, $indexedMetadata); |
589 | 576 | } |
590 | 577 |
@@ -96,8 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @return void |
98 | 98 | */ |
99 | - public function __construct(DocumentRepository $documentRepository, $collections, array $settings, array $searchParams, QueryResult $listedMetadata = null, QueryResult $indexedMetadata = null) |
|
100 | - { |
|
99 | + public function __construct(DocumentRepository $documentRepository, $collections, array $settings, array $searchParams, QueryResult $listedMetadata = null, QueryResult $indexedMetadata = null) { |
|
101 | 100 | $this->documentRepository = $documentRepository; |
102 | 101 | $this->collections = $collections; |
103 | 102 | $this->settings = $settings; |
@@ -217,8 +216,7 @@ discard block |
||
217 | 216 | * @return mixed |
218 | 217 | */ |
219 | 218 | #[\ReturnTypeWillChange] |
220 | - public function offsetGet($offset) |
|
221 | - { |
|
219 | + public function offsetGet($offset) { |
|
222 | 220 | $idx = $this->result['document_keys'][$offset]; |
223 | 221 | $document = $this->result['documents'][$idx] ?? null; |
224 | 222 | |
@@ -286,8 +284,7 @@ discard block |
||
286 | 284 | * |
287 | 285 | * @return mixed |
288 | 286 | */ |
289 | - public function getSolrResults() |
|
290 | - { |
|
287 | + public function getSolrResults() { |
|
291 | 288 | return $this->result['solrResults']; |
292 | 289 | } |
293 | 290 | |
@@ -300,8 +297,7 @@ discard block |
||
300 | 297 | * |
301 | 298 | * @return mixed |
302 | 299 | */ |
303 | - public function getByUid($uid) |
|
304 | - { |
|
300 | + public function getByUid($uid) { |
|
305 | 301 | return $this->result['documents'][$uid]; |
306 | 302 | } |
307 | 303 | |
@@ -312,8 +308,7 @@ discard block |
||
312 | 308 | * |
313 | 309 | * @return SolrSearchQuery |
314 | 310 | */ |
315 | - public function getQuery() |
|
316 | - { |
|
311 | + public function getQuery() { |
|
317 | 312 | return new SolrSearchQuery($this); |
318 | 313 | } |
319 | 314 | |
@@ -324,8 +319,7 @@ discard block |
||
324 | 319 | * |
325 | 320 | * @return SolrSearch |
326 | 321 | */ |
327 | - public function getFirst() |
|
328 | - { |
|
322 | + public function getFirst() { |
|
329 | 323 | return $this[0]; |
330 | 324 | } |
331 | 325 | |
@@ -336,8 +330,7 @@ discard block |
||
336 | 330 | * |
337 | 331 | * @return array |
338 | 332 | */ |
339 | - public function toArray() |
|
340 | - { |
|
333 | + public function toArray() { |
|
341 | 334 | return array_values($this->result['documents']); |
342 | 335 | } |
343 | 336 | |
@@ -350,8 +343,7 @@ discard block |
||
350 | 343 | * |
351 | 344 | * @return int |
352 | 345 | */ |
353 | - public function getNumFound() |
|
354 | - { |
|
346 | + public function getNumFound() { |
|
355 | 347 | return $this->result['numFound']; |
356 | 348 | } |
357 | 349 | |
@@ -362,8 +354,7 @@ discard block |
||
362 | 354 | * |
363 | 355 | * @return void |
364 | 356 | */ |
365 | - public function prepare() |
|
366 | - { |
|
357 | + public function prepare() { |
|
367 | 358 | // Prepare query parameters. |
368 | 359 | $params = []; |
369 | 360 | $matches = []; |
@@ -479,8 +470,7 @@ discard block |
||
479 | 470 | * |
480 | 471 | * @return void |
481 | 472 | */ |
482 | - public function submit($start, $rows, $processResults = true) |
|
483 | - { |
|
473 | + public function submit($start, $rows, $processResults = true) { |
|
484 | 474 | $params = $this->params; |
485 | 475 | $params['start'] = $start; |
486 | 476 | $params['rows'] = $rows; |
@@ -638,8 +628,7 @@ discard block |
||
638 | 628 | * |
639 | 629 | * @return array The Apache Solr Documents that were fetched |
640 | 630 | */ |
641 | - protected function searchSolr($parameters = [], $enableCache = true) |
|
642 | - { |
|
631 | + protected function searchSolr($parameters = [], $enableCache = true) { |
|
643 | 632 | // Set query. |
644 | 633 | $parameters['query'] = isset($parameters['query']) ? $parameters['query'] : '*'; |
645 | 634 | $parameters['filterquery'] = isset($parameters['filterquery']) ? $parameters['filterquery'] : []; |
@@ -20,8 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @access public |
22 | 22 | */ |
23 | -class Region |
|
24 | -{ |
|
23 | +class Region { |
|
25 | 24 | |
26 | 25 | /** |
27 | 26 | * @access private |
@@ -87,8 +86,7 @@ discard block |
||
87 | 86 | * |
88 | 87 | * @return void |
89 | 88 | */ |
90 | - public function __construct(int $id, array $region) |
|
91 | - { |
|
89 | + public function __construct(int $id, array $region) { |
|
92 | 90 | $this->id = $id; |
93 | 91 | $this->pageId = $region['pageIdx'] ?? null; |
94 | 92 | $this->xBeginPosition = $region['ulx']; |