Passed
Pull Request — master (#123)
by Sebastian
03:25
created
Classes/Controller/TableOfContentsController.php 1 patch
Upper-Lower-Casing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->filterParams = $this->getParametersSafely('filterParameter');
52 52
 
53 53
         // output is done by main action
54
-        $this->forward('main', null, null, ['filterParameter' => $this->filterParams]);
54
+        $this->forward('main', NULL, NULL, ['filterParameter' => $this->filterParams]);
55 55
     }
56 56
 
57 57
     /**
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
         // Load current document.
65 65
         $this->loadDocument($this->requestData);
66 66
         if (
67
-            $this->document === null
68
-            || $this->document->getDoc() === null
67
+            $this->document === NULL
68
+            || $this->document->getDoc() === NULL
69 69
         ) {
70 70
             // Quit without doing anything if required variables are not set.
71 71
             return;
@@ -127,12 +127,12 @@  discard block
 block discarded – undo
127 127
             }
128 128
             // Go through table of contents and create all menu entries.
129 129
             foreach ($this->document->getDoc()->tableOfContents as $entry) {
130
-                $menuArray[] = $this->getMenuEntry($entry, true);
130
+                $menuArray[] = $this->getMenuEntry($entry, TRUE);
131 131
             }
132 132
         } else {
133 133
             // Go through table of contents and create top-level menu entries.
134 134
             foreach ($this->document->getDoc()->tableOfContents as $entry) {
135
-                $menuArray[] = $this->getMenuEntry($entry, false);
135
+                $menuArray[] = $this->getMenuEntry($entry, FALSE);
136 136
             }
137 137
             // Build table of contents from database.
138 138
             $result = $this->documentRepository->getTableOfContentsFromDb($this->document->getUid(), $this->document->getPid(), $this->settings);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                         'pagination' => '',
152 152
                         'targetUid' => $resArray['uid']
153 153
                     ];
154
-                    $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, false);
154
+                    $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, FALSE);
155 155
                 }
156 156
             }
157 157
         }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
         // Go through table of contents and create all menu entries.
176 176
         foreach ($this->document->getDoc()->tableOfContents as $entry) {
177
-            $menuEntry = $this->getMenuEntryWithImage($entry, true);
177
+            $menuEntry = $this->getMenuEntryWithImage($entry, TRUE);
178 178
             if (!empty($menuEntry)) {
179 179
                 $menuArray[] = $menuEntry;
180 180
             }
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      *
193 193
      * @return array HMENU array for menu entry
194 194
      */
195
-    protected function getMenuEntry(array $entry, $recursive = false)
195
+    protected function getMenuEntry(array $entry, $recursive = FALSE)
196 196
     {
197 197
         $entry = $this->resolveMenuEntry($entry);
198 198
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         }
251 251
         // Build sub-menu if available and called recursively.
252 252
         if (
253
-            $recursive === true
253
+            $recursive === TRUE
254 254
             && !empty($entry['children'])
255 255
         ) {
256 256
             // Build sub-menu only if one of the following conditions apply:
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                     if (in_array($child['id'], $this->activeEntries)) {
269 269
                         $entryArray['ITEM_STATE'] = 'ACT';
270 270
                     }
271
-                    $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, true);
271
+                    $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, TRUE);
272 272
                 }
273 273
             }
274 274
             // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries.
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         return $entry;
305 305
     }
306 306
 
307
-    protected function getMenuEntryWithImage(array $entry, $recursive = false)
307
+    protected function getMenuEntryWithImage(array $entry, $recursive = FALSE)
308 308
     {
309 309
         $entryArray = [];
310 310
 
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
         $entryArray['doNotLinkIt'] = 1;
326 326
         $entryArray['ITEM_STATE'] = 'HEADER';
327 327
 
328
-        if ($entry['children'] === null) {
328
+        if ($entry['children'] === NULL) {
329 329
             $entryArray['description'] = $entry['description'];
330 330
             $id = $this->document->getDoc()->smLinks['l2p'][$entry['id']][0];
331 331
             $entryArray['image'] = $this->document->getDoc()->getFileLocation($this->document->getDoc()->physicalStructureInfo[$id]['files']['THUMBS']);
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 
339 339
         // Build sub-menu if available and called recursively.
340 340
         if (
341
-            $recursive == true
341
+            $recursive == TRUE
342 342
             && !empty($entry['children'])
343 343
         ) {
344 344
             // Build sub-menu only if one of the following conditions apply:
Please login to merge, or discard this patch.
Classes/Controller/MetadataController.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
         // Load current document.
81 81
         $this->loadDocument($this->requestData);
82 82
         if (
83
-            $this->document === null
84
-            || $this->document->getDoc() === null
83
+            $this->document === NULL
84
+            || $this->document->getDoc() === NULL
85 85
         ) {
86 86
             // Quit without doing anything if required variables are not set.
87 87
             return '';
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @return string The metadata array ready for output
132 132
      */
133
-    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false)
133
+    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = FALSE)
134 134
     {
135 135
         if ($useOriginalIiifManifestMetadata) {
136 136
             $iiifData = [];
@@ -148,14 +148,14 @@  discard block
 block discarded – undo
148 148
                             $iiifData[$key] = [
149 149
                                 'label' => $key,
150 150
                                 'value' => $group,
151
-                                'buildUrl' => true,
151
+                                'buildUrl' => TRUE,
152 152
                             ];
153 153
                         } else {
154 154
                             // Data output
155 155
                             $iiifData[$key] = [
156 156
                                 'label' => $key,
157 157
                                 'value' => $group,
158
-                                'buildUrl' => false,
158
+                                'buildUrl' => FALSE,
159 159
                             ];
160 160
                         }
161 161
                     } else {
@@ -172,18 +172,18 @@  discard block
 block discarded – undo
172 172
                                 $iiifData[$key]['data'][] = [
173 173
                                     'label' => $nolabel ? '' : $label,
174 174
                                     'value' => $value,
175
-                                    'buildUrl' => true,
175
+                                    'buildUrl' => TRUE,
176 176
                                 ];
177 177
                             } else {
178 178
                                 $iiifData[$key]['data'][] = [
179 179
                                     'label' => $label,
180 180
                                     'value' => $value,
181
-                                    'buildUrl' => false,
181
+                                    'buildUrl' => FALSE,
182 182
                                 ];
183 183
                             }
184 184
                         }
185 185
                     }
186
-                    $this->view->assign('useIiif', true);
186
+                    $this->view->assign('useIiif', TRUE);
187 187
                     $this->view->assign('iiifData', $iiifData);
188 188
                 }
189 189
             }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                     if ($metadataName == 'title') {
214 214
                         // Get title of parent document if needed.
215 215
                         if (empty(implode('', $metadataValue)) && $this->settings['getTitle'] && $this->document->getPartof()) {
216
-                            $superiorTitle = Doc::getTitle($this->document->getPartof(), true);
216
+                            $superiorTitle = Doc::getTitle($this->document->getPartof(), TRUE);
217 217
                             if (!empty($superiorTitle)) {
218 218
                                 $metadataArray[$i][$metadataName] = ['[' . $superiorTitle . ']'];
219 219
                             }
Please login to merge, or discard this patch.
Classes/Api/Orcid/Profile.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @var SimpleXmlElement
50 50
      **/
51
-    private $raw = null;
51
+    private $raw = NULL;
52 52
 
53 53
     /**
54 54
      * Constructs client instance
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             return $data;
80 80
         } else {
81 81
             $this->logger->warning('No data found for given ORCID');
82
-            return false;
82
+            return FALSE;
83 83
         }
84 84
     }
85 85
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             return (string) $this->raw->xpath('./address:address/address:country')[0];
97 97
         } else {
98 98
             $this->logger->warning('No address found for given ORCID');
99
-            return false;
99
+            return FALSE;
100 100
         }
101 101
     }
102 102
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             return (string) $this->raw->xpath('./email:email/email:email')[0];
114 114
         } else {
115 115
             $this->logger->warning('No email found for given ORCID');
116
-            return false;
116
+            return FALSE;
117 117
         }
118 118
     }
119 119
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             return (string) $givenNames[0] . ' ' . (string) $familyName[0];
133 133
         } else {
134 134
             $this->logger->warning('No name found for given ORCID');
135
-            return false;
135
+            return FALSE;
136 136
         }
137 137
     }
138 138
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $this->client->setEndpoint($endpoint);
149 149
         $data = $this->client->getData();
150
-        if (!isset($this->raw) && $data != false) {
150
+        if (!isset($this->raw) && $data != FALSE) {
151 151
             $this->raw = Helper::getXmlFileAsString($data);
152 152
         }
153 153
     }
Please login to merge, or discard this patch.
Classes/Api/Orcid/Client.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @var string
62 62
      **/
63
-    private $orcid = null;
63
+    private $orcid = NULL;
64 64
 
65 65
     /**
66 66
      * The request object
67 67
      *
68 68
      * @var RequestFactoryInterface
69 69
      **/
70
-    private $requestFactory = null;
70
+    private $requestFactory = NULL;
71 71
 
72 72
     /**
73 73
      * Constructs a new instance
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $response = $this->requestFactory->request($url);
103 103
         } catch (\Exception $e) {
104 104
             $this->logger->warning('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.');
105
-            return false;
105
+            return FALSE;
106 106
         }
107 107
         return $response->getBody()->getContents();
108 108
     }
Please login to merge, or discard this patch.
Classes/Controller/SearchController.php 1 patch
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $this->searchParams = $this->getParametersSafely('searchParameter');
78 78
 
79 79
         // output is done by main action
80
-        $this->forward('main', null, null, ['searchParameter' => $this->searchParams]);
80
+        $this->forward('main', NULL, NULL, ['searchParameter' => $this->searchParams]);
81 81
     }
82 82
 
83 83
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function mainAction()
91 91
     {
92
-        $listViewSearch = false;
92
+        $listViewSearch = FALSE;
93 93
         // Quit without doing anything if required variables are not set.
94 94
         if (empty($this->settings['solrcore'])) {
95 95
             $this->logger->warning('Incomplete plugin configuration');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         if (isset($listRequestData['searchParameter']) && is_array($listRequestData['searchParameter'])) {
105 105
             $this->searchParams = array_merge($this->searchParams ? : [], $listRequestData['searchParameter']);
106
-            $listViewSearch = true;
106
+            $listViewSearch = TRUE;
107 107
         }
108 108
 
109 109
         // sanitize date search input
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
         // If a targetPid is given, the results will be shown by ListView on the target page.
129 129
         if (!empty($this->settings['targetPid']) && !empty($this->searchParams) && !$listViewSearch) {
130
-            $this->redirect('main', 'ListView', null,
130
+            $this->redirect('main', 'ListView', NULL,
131 131
                 [
132 132
                     'searchParameter' => $this->searchParams,
133 133
                     'widgetPage' => $widgetPage
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
         // If no search has been executed, no variables habe to be prepared. An empty form will be shown.
139 139
         if (is_array($this->searchParams) && !empty($this->searchParams)) {
140 140
             // get all sortable metadata records
141
-            $sortableMetadata = $this->metadataRepository->findByIsSortable(true);
141
+            $sortableMetadata = $this->metadataRepository->findByIsSortable(TRUE);
142 142
 
143 143
             // get all metadata records to be shown in results
144
-            $listedMetadata = $this->metadataRepository->findByIsListed(true);
144
+            $listedMetadata = $this->metadataRepository->findByIsListed(TRUE);
145 145
 
146 146
             $solrResults = [];
147 147
             $numResults = 0;
148 148
             // Do not execute the Solr search if used together with ListView plugin.
149 149
             if (!$listViewSearch) {
150
-                $solrResults = $this->documentRepository->findSolrByCollection(null, $this->settings, $this->searchParams, $listedMetadata);
150
+                $solrResults = $this->documentRepository->findSolrByCollection(NULL, $this->settings, $this->searchParams, $listedMetadata);
151 151
                 $numResults = $solrResults->getNumFound();
152 152
             }
153 153
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
         // Get facets from plugin configuration.
198 198
         $facets = [];
199
-        foreach (GeneralUtility::trimExplode(',', $this->settings['facets'], true) as $facet) {
199
+        foreach (GeneralUtility::trimExplode(',', $this->settings['facets'], TRUE) as $facet) {
200 200
             $facets[$facet . '_faceting'] = Helper::translate($facet, 'tx_dlf_metadata', $this->settings['storagePid']);
201 201
         }
202 202
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         // Check if facet is already selected.
405 405
         $queryColumn = array_column($search['params']['filterquery'], 'query');
406 406
         $index = array_search($field . ':("' . Solr::escapeQuery($value) . '")', $queryColumn);
407
-        if ($index !== false) {
407
+        if ($index !== FALSE) {
408 408
             // Facet is selected, thus remove it from filter.
409 409
             unset($queryColumn[$index]);
410 410
             $queryColumn = array_values($queryColumn);
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             $state = 'ACTIFSUB';
413 413
             // Reset facets
414 414
             if ($this->settings['resetFacets']) {
415
-                $entryArray['resetFacet'] = true;
415
+                $entryArray['resetFacet'] = TRUE;
416 416
                 $entryArray['queryColumn'] = $queryColumn;
417 417
             }
418 418
         } else {
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
         }
444 444
 
445 445
         // Get field selector options.
446
-        $searchFields = GeneralUtility::trimExplode(',', $this->settings['extendedFields'], true);
446
+        $searchFields = GeneralUtility::trimExplode(',', $this->settings['extendedFields'], TRUE);
447 447
 
448 448
         $slotCountArray = [];
449 449
         for ($i = 0; $i < $this->settings['extendedSlotCount']; $i++) {
Please login to merge, or discard this patch.
Classes/Common/Indexer.php 1 patch
Upper-Lower-Casing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @var bool
67 67
      * @access protected
68 68
      */
69
-    protected static $fieldsLoaded = false;
69
+    protected static $fieldsLoaded = FALSE;
70 70
 
71 71
     /**
72 72
      * List of already processed documents
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
     public static function add(Document $document)
97 97
     {
98 98
         if (in_array($document->getUid(), self::$processedDocs)) {
99
-            return true;
99
+            return TRUE;
100 100
         } elseif (self::solrConnect($document->getSolrcore(), $document->getPid())) {
101
-            $success = true;
101
+            $success = TRUE;
102 102
             Helper::getLanguageService()->includeLLFile('EXT:dlf/Resources/Private/Language/locallang_be.xlf');
103 103
             // Handle multi-volume documents.
104 104
             if ($parentId = $document->getPartof()) {
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
                 $parent = $documentRepository->findByUid($parentId);
111 111
                 if ($parent) {
112 112
                     // get XML document of parent
113
-                    $doc = Doc::getInstance($parent->getLocation(), ['storagePid' => $parent->getPid()], true);
114
-                    if ($doc !== null) {
113
+                    $doc = Doc::getInstance($parent->getLocation(), ['storagePid' => $parent->getPid()], TRUE);
114
+                    if ($doc !== NULL) {
115 115
                         $parent->setDoc($doc);
116 116
                         $success = self::add($parent);
117 117
                     } else {
118 118
                         Helper::log('Could not load parent document with UID ' . $document->getDoc()->parentId, LOG_SEVERITY_ERROR);
119
-                        return false;
119
+                        return FALSE;
120 120
                     }
121 121
                 }
122 122
             }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                             sprintf(Helper::getLanguageService()->getLL('flash.documentIndexed'), $document->getTitle(), $document->getUid()),
158 158
                             Helper::getLanguageService()->getLL('flash.done'),
159 159
                             FlashMessage::OK,
160
-                            true,
160
+                            TRUE,
161 161
                             'core.template.flashMessages'
162 162
                         );
163 163
                     } else {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                             sprintf(Helper::getLanguageService()->getLL('flash.documentNotIndexed'), $document->getTitle(), $document->getUid()),
166 166
                             Helper::getLanguageService()->getLL('flash.error'),
167 167
                             FlashMessage::ERROR,
168
-                            true,
168
+                            TRUE,
169 169
                             'core.template.flashMessages'
170 170
                         );
171 171
                     }
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
                         Helper::getLanguageService()->getLL('flash.solrException') . ' ' . htmlspecialchars($e->getMessage()),
178 178
                         Helper::getLanguageService()->getLL('flash.error'),
179 179
                         FlashMessage::ERROR,
180
-                        true,
180
+                        TRUE,
181 181
                         'core.template.flashMessages'
182 182
                     );
183 183
                 }
184 184
                 Helper::log('Apache Solr threw exception: "' . $e->getMessage() . '"', LOG_SEVERITY_ERROR);
185
-                return false;
185
+                return FALSE;
186 186
             }
187 187
         } else {
188 188
             if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
@@ -190,12 +190,12 @@  discard block
 block discarded – undo
190 190
                     Helper::getLanguageService()->getLL('flash.solrNoConnection'),
191 191
                     Helper::getLanguageService()->getLL('flash.warning'),
192 192
                     FlashMessage::WARNING,
193
-                    true,
193
+                    TRUE,
194 194
                     'core.template.flashMessages'
195 195
                 );
196 196
             }
197 197
             Helper::log('Could not connect to Apache Solr server', LOG_SEVERITY_ERROR);
198
-            return false;
198
+            return FALSE;
199 199
         }
200 200
     }
201 201
 
@@ -290,10 +290,10 @@  discard block
 block discarded – undo
290 290
                 if ($indexing['index_boost'] > 0.0) {
291 291
                     self::$fields['fieldboost'][$indexing['index_name']] = floatval($indexing['index_boost']);
292 292
                 } else {
293
-                    self::$fields['fieldboost'][$indexing['index_name']] = false;
293
+                    self::$fields['fieldboost'][$indexing['index_name']] = FALSE;
294 294
                 }
295 295
             }
296
-            self::$fieldsLoaded = true;
296
+            self::$fieldsLoaded = TRUE;
297 297
         }
298 298
     }
299 299
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      */
310 310
     protected static function processLogical(Document $document, array $logicalUnit)
311 311
     {
312
-        $success = true;
312
+        $success = TRUE;
313 313
         $doc = $document->getDoc();
314 314
         $doc->cPid = $document->getPid();
315 315
         // Get metadata for logical unit.
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 $solrDoc->setField('thumbnail', $doc->getFileLocation($logicalUnit['thumbnailId']));
334 334
             }
335 335
             // There can be only one toplevel unit per UID, independently of backend configuration
336
-            $solrDoc->setField('toplevel', $logicalUnit['id'] == $doc->toplevelId ? true : false);
336
+            $solrDoc->setField('toplevel', $logicalUnit['id'] == $doc->toplevelId ? TRUE : FALSE);
337 337
             $solrDoc->setField('title', $metadata['title'][0], self::$fields['fieldboost']['title']);
338 338
             $solrDoc->setField('volume', $metadata['volume'][0], self::$fields['fieldboost']['volume']);
339 339
             // verify date formatting
@@ -406,12 +406,12 @@  discard block
 block discarded – undo
406 406
                         Helper::getLanguageService()->getLL('flash.solrException') . '<br />' . htmlspecialchars($e->getMessage()),
407 407
                         Helper::getLanguageService()->getLL('flash.error'),
408 408
                         FlashMessage::ERROR,
409
-                        true,
409
+                        TRUE,
410 410
                         'core.template.flashMessages'
411 411
                     );
412 412
                 }
413 413
                 Helper::log('Apache Solr threw exception: "' . $e->getMessage() . '"', LOG_SEVERITY_ERROR);
414
-                return false;
414
+                return FALSE;
415 415
             }
416 416
         }
417 417
         // Check for child elements...
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
                     break;
458 458
                 }
459 459
             }
460
-            $solrDoc->setField('toplevel', false);
460
+            $solrDoc->setField('toplevel', FALSE);
461 461
             $solrDoc->setField('type', $physicalUnit['type'], self::$fields['fieldboost']['type']);
462 462
             $solrDoc->setField('collection', $doc->metadataArray[$doc->toplevelId]['collection']);
463 463
 
@@ -497,15 +497,15 @@  discard block
 block discarded – undo
497 497
                         Helper::getLanguageService()->getLL('flash.solrException') . '<br />' . htmlspecialchars($e->getMessage()),
498 498
                         Helper::getLanguageService()->getLL('flash.error'),
499 499
                         FlashMessage::ERROR,
500
-                        true,
500
+                        TRUE,
501 501
                         'core.template.flashMessages'
502 502
                     );
503 503
                 }
504 504
                 Helper::log('Apache Solr threw exception: "' . $e->getMessage() . '"', LOG_SEVERITY_ERROR);
505
-                return false;
505
+                return FALSE;
506 506
             }
507 507
         }
508
-        return true;
508
+        return TRUE;
509 509
     }
510 510
 
511 511
     /**
@@ -531,10 +531,10 @@  discard block
 block discarded – undo
531 531
                     self::loadIndexConf($pid);
532 532
                 }
533 533
             } else {
534
-                return false;
534
+                return FALSE;
535 535
             }
536 536
         }
537
-        return true;
537
+        return TRUE;
538 538
     }
539 539
 
540 540
     /**
Please login to merge, or discard this patch.