@@ -20,8 +20,7 @@ discard block |
||
20 | 20 | * @subpackage dlf |
21 | 21 | * @access public |
22 | 22 | */ |
23 | -class KitodoProductionHacks |
|
24 | -{ |
|
23 | +class KitodoProductionHacks { |
|
25 | 24 | /** |
26 | 25 | * Hook for \Kitodo\Dlf\Common\MetsDocument::establishRecordId() |
27 | 26 | * When using Kitodo.Production the record identifier is saved only in MODS, but not |
@@ -34,8 +33,7 @@ discard block |
||
34 | 33 | * |
35 | 34 | * @return void |
36 | 35 | */ |
37 | - public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) |
|
38 | - { |
|
36 | + public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) { |
|
39 | 37 | if (!$record_id) { |
40 | 38 | $xml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
41 | 39 | // Get all logical structure nodes with metadata, but without associated METS-Pointers. |
@@ -21,8 +21,7 @@ |
||
21 | 21 | * @access public |
22 | 22 | * @abstract |
23 | 23 | */ |
24 | -interface FulltextInterface |
|
25 | -{ |
|
24 | +interface FulltextInterface { |
|
26 | 25 | /** |
27 | 26 | * This extracts raw fulltext data from XML |
28 | 27 | * |
@@ -21,8 +21,7 @@ |
||
21 | 21 | * @access public |
22 | 22 | * @abstract |
23 | 23 | */ |
24 | -interface MetadataInterface |
|
25 | -{ |
|
24 | +interface MetadataInterface { |
|
26 | 25 | /** |
27 | 26 | * This extracts metadata from XML |
28 | 27 | * |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | * @subpackage dlf |
26 | 26 | * @access public |
27 | 27 | */ |
28 | -class IiifUrlReader implements UrlReaderInterface |
|
29 | -{ |
|
28 | +class IiifUrlReader implements UrlReaderInterface { |
|
30 | 29 | /** |
31 | 30 | * Singleton instance of the class |
32 | 31 | * |
@@ -40,8 +39,7 @@ discard block |
||
40 | 39 | * {@inheritDoc} |
41 | 40 | * @see \Ubl\Iiif\Tools\UrlReaderInterface::getContent() |
42 | 41 | */ |
43 | - public function getContent($url) |
|
44 | - { |
|
42 | + public function getContent($url) { |
|
45 | 43 | $fileContents = GeneralUtility::getUrl($url); |
46 | 44 | if ($fileContents !== false) { |
47 | 45 | return $fileContents; |
@@ -57,8 +55,7 @@ discard block |
||
57 | 55 | * |
58 | 56 | * @return IiifUrlReader |
59 | 57 | */ |
60 | - public static function getInstance() |
|
61 | - { |
|
58 | + public static function getInstance() { |
|
62 | 59 | if (!isset(self::$instance)) { |
63 | 60 | self::$instance = new IiifUrlReader(); |
64 | 61 | } |
@@ -23,10 +23,8 @@ |
||
23 | 23 | * @subpackage dlf |
24 | 24 | * @access public |
25 | 25 | */ |
26 | -class DocumentTypeProvider extends AbstractProvider |
|
27 | -{ |
|
28 | - public function __construct() |
|
29 | - { |
|
26 | +class DocumentTypeProvider extends AbstractProvider { |
|
27 | + public function __construct() { |
|
30 | 28 | $this->expressionLanguageProviders = [ |
31 | 29 | DocumentTypeFunctionProvider::class |
32 | 30 | ]; |
@@ -24,8 +24,7 @@ |
||
24 | 24 | * @subpackage dlf |
25 | 25 | * @access public |
26 | 26 | */ |
27 | -class SolrCoreStatus extends AbstractNode |
|
28 | -{ |
|
27 | +class SolrCoreStatus extends AbstractNode { |
|
29 | 28 | /** |
30 | 29 | * Shows Solr core status for given 'index_name' |
31 | 30 | * |
@@ -23,8 +23,7 @@ |
||
23 | 23 | * @subpackage dlf |
24 | 24 | * @access public |
25 | 25 | */ |
26 | -class EditInProductionWarning extends AbstractNode |
|
27 | -{ |
|
26 | +class EditInProductionWarning extends AbstractNode { |
|
28 | 27 | /** |
29 | 28 | * Generates warning message when editing 'index_name' field |
30 | 29 | * |
@@ -20,8 +20,7 @@ discard block |
||
20 | 20 | * @subpackage dlf |
21 | 21 | * @access public |
22 | 22 | */ |
23 | -class Region |
|
24 | -{ |
|
23 | +class Region { |
|
25 | 24 | |
26 | 25 | /** |
27 | 26 | * The identifier of the region |
@@ -105,8 +104,7 @@ discard block |
||
105 | 104 | * |
106 | 105 | * @return void |
107 | 106 | */ |
108 | - public function __construct($id, $region) |
|
109 | - { |
|
107 | + public function __construct($id, $region) { |
|
110 | 108 | $this->id = $id; |
111 | 109 | $this->pageId = $region['pageIdx']; |
112 | 110 | $this->xBeginPosition = $region['ulx']; |
@@ -125,8 +123,7 @@ discard block |
||
125 | 123 | * |
126 | 124 | * @return int The region's identifier |
127 | 125 | */ |
128 | - public function getId() |
|
129 | - { |
|
126 | + public function getId() { |
|
130 | 127 | return $this->id; |
131 | 128 | } |
132 | 129 | |
@@ -137,8 +134,7 @@ discard block |
||
137 | 134 | * |
138 | 135 | * @return int The region's page identifier |
139 | 136 | */ |
140 | - public function getPageId() |
|
141 | - { |
|
137 | + public function getPageId() { |
|
142 | 138 | return $this->pageId; |
143 | 139 | } |
144 | 140 | |
@@ -149,8 +145,7 @@ discard block |
||
149 | 145 | * |
150 | 146 | * @return int The region's horizontal beginning position |
151 | 147 | */ |
152 | - public function getXBeginPosition() |
|
153 | - { |
|
148 | + public function getXBeginPosition() { |
|
154 | 149 | return $this->xBeginPosition; |
155 | 150 | } |
156 | 151 | |
@@ -161,8 +156,7 @@ discard block |
||
161 | 156 | * |
162 | 157 | * @return int The region's horizontal ending position |
163 | 158 | */ |
164 | - public function getXEndPosition() |
|
165 | - { |
|
159 | + public function getXEndPosition() { |
|
166 | 160 | return $this->xEndPosition; |
167 | 161 | } |
168 | 162 | |
@@ -173,8 +167,7 @@ discard block |
||
173 | 167 | * |
174 | 168 | * @return int The region's vertical beginning position |
175 | 169 | */ |
176 | - public function getYBeginPosition() |
|
177 | - { |
|
170 | + public function getYBeginPosition() { |
|
178 | 171 | return $this->yBeginPosition; |
179 | 172 | } |
180 | 173 | |
@@ -185,8 +178,7 @@ discard block |
||
185 | 178 | * |
186 | 179 | * @return int The region's vertical ending position |
187 | 180 | */ |
188 | - public function getYEndPosition() |
|
189 | - { |
|
181 | + public function getYEndPosition() { |
|
190 | 182 | return $this->yEndPosition; |
191 | 183 | } |
192 | 184 | |
@@ -197,8 +189,7 @@ discard block |
||
197 | 189 | * |
198 | 190 | * @return int The region's width |
199 | 191 | */ |
200 | - public function getWidth() |
|
201 | - { |
|
192 | + public function getWidth() { |
|
202 | 193 | return $this->width; |
203 | 194 | } |
204 | 195 | |
@@ -209,8 +200,7 @@ discard block |
||
209 | 200 | * |
210 | 201 | * @return int The region's height |
211 | 202 | */ |
212 | - public function getHeight() |
|
213 | - { |
|
203 | + public function getHeight() { |
|
214 | 204 | return $this->height; |
215 | 205 | } |
216 | 206 | |
@@ -221,8 +211,7 @@ discard block |
||
221 | 211 | * |
222 | 212 | * @return string The region's text |
223 | 213 | */ |
224 | - public function getText() |
|
225 | - { |
|
214 | + public function getText() { |
|
226 | 215 | return $this->text; |
227 | 216 | } |
228 | 217 | } |
@@ -20,8 +20,7 @@ discard block |
||
20 | 20 | * @subpackage dlf |
21 | 21 | * @access public |
22 | 22 | */ |
23 | -class Page |
|
24 | -{ |
|
23 | +class Page { |
|
25 | 24 | |
26 | 25 | /** |
27 | 26 | * The identifier of the page |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * |
66 | 65 | * @return void |
67 | 66 | */ |
68 | - public function __construct($id, $page) |
|
69 | - { |
|
67 | + public function __construct($id, $page) { |
|
70 | 68 | $this->id = $id; |
71 | 69 | $this->name = $page['id']; |
72 | 70 | $this->width = $page['width']; |
@@ -80,8 +78,7 @@ discard block |
||
80 | 78 | * |
81 | 79 | * @return int The page's identifier |
82 | 80 | */ |
83 | - public function getId() |
|
84 | - { |
|
81 | + public function getId() { |
|
85 | 82 | return $this->id; |
86 | 83 | } |
87 | 84 | |
@@ -92,8 +89,7 @@ discard block |
||
92 | 89 | * |
93 | 90 | * @return string The page's name |
94 | 91 | */ |
95 | - public function getName() |
|
96 | - { |
|
92 | + public function getName() { |
|
97 | 93 | return $this->name; |
98 | 94 | } |
99 | 95 | |
@@ -104,8 +100,7 @@ discard block |
||
104 | 100 | * |
105 | 101 | * @return int The page's width |
106 | 102 | */ |
107 | - public function getWidth() |
|
108 | - { |
|
103 | + public function getWidth() { |
|
109 | 104 | return $this->width; |
110 | 105 | } |
111 | 106 | |
@@ -116,8 +111,7 @@ discard block |
||
116 | 111 | * |
117 | 112 | * @return int The page's height |
118 | 113 | */ |
119 | - public function getHeight() |
|
120 | - { |
|
114 | + public function getHeight() { |
|
121 | 115 | return $this->height; |
122 | 116 | } |
123 | 117 | } |