Passed
Pull Request — master (#123)
by
unknown
05:05
created
Classes/Common/Solr/SearchResult/Page.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
Classes/Common/Solr/SearchResult/Highlight.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
Classes/Common/Solr/SearchResult/ResultDocument.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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']];
Please login to merge, or discard this patch.
Classes/Common/Solr/Solr.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
Classes/Common/FulltextInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Classes/Common/StdOutStream.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/Common/MetadataInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Classes/Common/Indexer.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
  *
33 33
  * @access public
34 34
  */
35
-class Indexer
36
-{
35
+class Indexer {
37 36
     /**
38 37
      * @access public
39 38
      * @static
@@ -604,8 +603,7 @@  discard block
 block discarded – undo
604 603
      *
605 604
      * @return array|string
606 605
      */
607
-    private static function removeAppendsFromAuthor($authors)
608
-    {
606
+    private static function removeAppendsFromAuthor($authors) {
609 607
         if (is_array($authors)) {
610 608
             foreach ($authors as $i => $author) {
611 609
                 $splitName = explode(pack('C', 31), $author);
@@ -685,7 +683,6 @@  discard block
 block discarded – undo
685 683
      *
686 684
      * @return void
687 685
      */
688
-    private function __construct()
689
-    {
686
+    private function __construct() {
690 687
     }
691 688
 }
Please login to merge, or discard this patch.
Classes/Common/AbstractDocument.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * @property-read string $toplevelId this holds the toplevel structure's "@ID" (METS) or the manifest's "@id" (IIIF)
58 58
  * @property \SimpleXMLElement $xml this holds the whole XML file as \SimpleXMLElement object
59 59
  */
60
-abstract class AbstractDocument
61
-{
60
+abstract class AbstractDocument {
62 61
     /**
63 62
      * @access protected
64 63
      * @var Logger This holds the logger
@@ -838,8 +837,7 @@  discard block
 block discarded – undo
838 837
      * @return int|bool false if structure with $logId is not a child of this substructure,
839 838
      * or the actual depth.
840 839
      */
841
-    protected function getTreeDepth(array $structure, int $depth, string $logId)
842
-    {
840
+    protected function getTreeDepth(array $structure, int $depth, string $logId) {
843 841
         foreach ($structure as $element) {
844 842
             if ($element['id'] == $logId) {
845 843
                 return $depth;
@@ -862,8 +860,7 @@  discard block
 block discarded – undo
862 860
      *
863 861
      * @return int|bool tree depth as integer or false if no element with $logId exists within the TOC.
864 862
      */
865
-    public function getStructureDepth(string $logId)
866
-    {
863
+    public function getStructureDepth(string $logId) {
867 864
         return $this->getTreeDepth($this->magicGetTableOfContents(), 1, $logId);
868 865
     }
869 866
 
@@ -1122,8 +1119,7 @@  discard block
 block discarded – undo
1122 1119
      *
1123 1120
      * @return mixed The METS file's / IIIF manifest's record identifier
1124 1121
      */
1125
-    protected function magicGetRecordId()
1126
-    {
1122
+    protected function magicGetRecordId() {
1127 1123
         return $this->recordId;
1128 1124
     }
1129 1125
 
@@ -1193,8 +1189,7 @@  discard block
 block discarded – undo
1193 1189
      *
1194 1190
      * @return void
1195 1191
      */
1196
-    protected function __construct(int $pid, string $location, $preloadedDocument, array $settings = [])
1197
-    {
1192
+    protected function __construct(int $pid, string $location, $preloadedDocument, array $settings = []) {
1198 1193
         $this->pid = $pid;
1199 1194
         $this->setPreloadedDocument($preloadedDocument);
1200 1195
         $this->init($location, $settings);
@@ -1210,8 +1205,7 @@  discard block
 block discarded – undo
1210 1205
      *
1211 1206
      * @return mixed Value of $this->$var
1212 1207
      */
1213
-    public function __get(string $var)
1214
-    {
1208
+    public function __get(string $var) {
1215 1209
         $method = 'magicGet' . ucfirst($var);
1216 1210
         if (
1217 1211
             !property_exists($this, $var)
@@ -1272,8 +1266,7 @@  discard block
 block discarded – undo
1272 1266
      *
1273 1267
      * @return AbstractDocument|false
1274 1268
      */
1275
-    private static function getDocumentCache(string $location)
1276
-    {
1269
+    private static function getDocumentCache(string $location) {
1277 1270
         $cacheIdentifier = hash('md5', $location);
1278 1271
         $cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('tx_dlf_doc');
1279 1272
         $cacheHit = $cache->get($cacheIdentifier);
Please login to merge, or discard this patch.