Completed
Push — master ( 6a4f3e...6df17f )
by
unknown
11s
created
Classes/Plugins/RelatedListTool/RelatedListTool.php 2 patches
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         if (is_array($dpfTSconfig['settings.'])) {
50 50
 
51
-            \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, true, false);
51
+            \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, TRUE, FALSE);
52 52
             $this->conf = $dpfTSconfig['settings.'];
53 53
 
54 54
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         // Load current document.
57 57
         $this->loadDocument();
58 58
 
59
-        if ($this->doc === null) {
59
+        if ($this->doc === NULL) {
60 60
 
61 61
             // Quit without doing anything if required variables are not set.
62 62
             return $content;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                         'useCacheHash'     => 0,
89 89
                         'parameter'        => $this->conf['apiPid'],
90 90
                         'additionalParams' => '&tx_dpf[qid]=' . $value['docId'] . '&tx_dpf[action]=mets',
91
-                        'forceAbsoluteUrl' => true,
91
+                        'forceAbsoluteUrl' => TRUE,
92 92
                     );
93 93
 
94 94
                     $metsApiUrl = urlencode($this->cObj->typoLink_URL($confApi));
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                         'useCacheHash'     => 1,
98 98
                         'parameter'        => $GLOBALS['TSFE']->page['uid'],
99 99
                         'additionalParams' => '&tx_dlf[id]=' . $metsApiUrl,
100
-                        'forceAbsoluteUrl' => true,
100
+                        'forceAbsoluteUrl' => TRUE,
101 101
                     );
102 102
 
103 103
                 } elseif ($value['type'] == 'urn') {
@@ -105,14 +105,14 @@  discard block
 block discarded – undo
105 105
                     $conf = array(
106 106
                         'useCacheHash'     => 0,
107 107
                         'parameter'        => 'http://nbn-resolving.de/' . $value['docId'],
108
-                        'forceAbsoluteUrl' => true,
108
+                        'forceAbsoluteUrl' => TRUE,
109 109
                     );
110 110
 
111 111
                 } else {
112 112
 
113 113
                     $conf = array(
114 114
                         'useCacheHash'     => 0,
115
-                        'forceAbsoluteUrl' => true,
115
+                        'forceAbsoluteUrl' => TRUE,
116 116
                     );
117 117
 
118 118
                 }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             }
127 127
         }
128 128
 
129
-        return $this->cObj->substituteSubpart($this->template, '###ITEMS###', $content, true);
129
+        return $this->cObj->substituteSubpart($this->template, '###ITEMS###', $content, TRUE);
130 130
 
131 131
     }
132 132
 
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
             $element['type'] = $type;
181 181
             $element['title'] = $title;
182 182
             $element['docId'] = $docId;
183
-            $element['order'] = (!empty($order)) ? $order : null;
184
-            $element['volume'] = (!empty($volume)) ? $volume : null;
183
+            $element['order'] = (!empty($order)) ? $order : NULL;
184
+            $element['volume'] = (!empty($volume)) ? $volume : NULL;
185 185
 
186 186
             $relatedItems[$index] = $element;
187 187
         }
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @subpackage    tx_dpf
25 25
  * @access    public
26 26
  */
27
-class RelatedListTool extends \tx_dlf_plugin
28
-{
27
+class RelatedListTool extends \tx_dlf_plugin {
29 28
 
30 29
     /**
31 30
      * The main method of the PlugIn
@@ -37,8 +36,7 @@  discard block
 block discarded – undo
37 36
      *
38 37
      * @return    string        The content that is displayed on the website
39 38
      */
40
-    public function main($content, $conf)
41
-    {
39
+    public function main($content, $conf) {
42 40
 
43 41
         $this->init($conf);
44 42
 
@@ -135,8 +133,7 @@  discard block
 block discarded – undo
135 133
      * 1. comparing by XML mods:part[@order] (Sortierschlüssel)
136 134
      * 2. comparing by XML mods:number (Bandnummer)
137 135
      */
138
-    private function compareBySortOrder($a, $b)
139
-    {
136
+    private function compareBySortOrder($a, $b) {
140 137
         $ordercmp = strcasecmp($a['order'], $b['order']);
141 138
 
142 139
         if ($ordercmp != 0) {
@@ -147,8 +144,7 @@  discard block
 block discarded – undo
147 144
                 return -1;
148 145
             }
149 146
             return $ordercmp;
150
-        }
151
-        elseif ($ordercmp == 0) {
147
+        } elseif ($ordercmp == 0) {
152 148
             if (is_null($a['volume'])) {
153 149
                 return 1;
154 150
             }
@@ -159,8 +155,7 @@  discard block
 block discarded – undo
159 155
         }
160 156
     }
161 157
 
162
-    public function getRelatedItems()
163
-    {
158
+    public function getRelatedItems() {
164 159
         $xPath = '//mods:relatedItem[@type="constituent"]';
165 160
 
166 161
         $items = $this->doc->mets->xpath($xPath);
Please login to merge, or discard this patch.