Passed
Pull Request — master (#123)
by Sebastian
03:25
created
Classes/Controller/NavigationController.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
         $pageOptions = [];
76 76
         for ($i = 1; $i <= $this->document->getDoc()->numPages; $i++) {
77
-            $pageOptions[$i] = '[' . $i . ']' . ($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel'] ? ' - ' . htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel']) : '');
77
+            $pageOptions[$i] = '['.$i.']'.($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel'] ? ' - '.htmlspecialchars($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$i]]['orderlabel']) : '');
78 78
         }
79 79
         $this->view->assign('pageOptions', $pageOptions);
80 80
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,15 +23,13 @@
 block discarded – undo
23 23
  * @subpackage dlf
24 24
  * @access public
25 25
  */
26
-class NavigationController extends AbstractController
27
-{
26
+class NavigationController extends AbstractController {
28 27
     /**
29 28
      * The main method of the plugin
30 29
      *
31 30
      * @return void
32 31
      */
33
-    public function mainAction()
34
-    {
32
+    public function mainAction() {
35 33
         // Load current document.
36 34
         $this->loadDocument($this->requestData);
37 35
         if (
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
         // Load current document.
36 36
         $this->loadDocument($this->requestData);
37 37
         if (
38
-            $this->document === null
39
-            || $this->document->getDoc() === null
38
+            $this->document === NULL
39
+            || $this->document->getDoc() === NULL
40 40
         ) {
41 41
             // Quit without doing anything if required variables are not set.
42 42
             return '';
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         // prepare feature array for fluid
82 82
         $features = [];
83 83
         foreach (explode(',', $this->settings['features']) as $feature) {
84
-            $features[$feature] = true;
84
+            $features[$feature] = TRUE;
85 85
         }
86 86
         $this->view->assign('features', $features);
87 87
     }
Please login to merge, or discard this patch.
Classes/Controller/TableOfContentsController.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
                 }
141 141
             }
142 142
             // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries.
143
-            $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'] . 'IFSUB');
143
+            $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'].'IFSUB');
144 144
         }
145 145
         return $entryArray;
146 146
     }
Please login to merge, or discard this patch.
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @subpackage dlf
25 25
  * @access public
26 26
  */
27
-class TableOfContentsController extends AbstractController
28
-{
27
+class TableOfContentsController extends AbstractController {
29 28
     /**
30 29
      * This holds the active entries according to the currently selected page
31 30
      *
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
      *
46 45
      * @return void
47 46
      */
48
-    public function filterAction()
49
-    {
47
+    public function filterAction() {
50 48
         // if filter was triggered, get filter parameters from POST variables
51 49
         $this->filterParams = $this->getParametersSafely('filterParameter');
52 50
 
@@ -59,8 +57,7 @@  discard block
 block discarded – undo
59 57
      *
60 58
      * @return void
61 59
      */
62
-    public function mainAction()
63
-    {
60
+    public function mainAction() {
64 61
         // Load current document.
65 62
         $this->loadDocument($this->requestData);
66 63
         if (
@@ -91,8 +88,7 @@  discard block
 block discarded – undo
91 88
      * @access protected
92 89
      * @return array HMENU array
93 90
      */
94
-    protected function makeMenuArray()
95
-    {
91
+    protected function makeMenuArray() {
96 92
         // Set default values for page if not set.
97 93
         // $this->requestData['page'] may be integer or string (physical structure @ID)
98 94
         if (
@@ -168,8 +164,7 @@  discard block
 block discarded – undo
168 164
      *
169 165
      * @return array HMENU array
170 166
      */
171
-    protected function makeMenuFor3DObjects()
172
-    {
167
+    protected function makeMenuFor3DObjects() {
173 168
         $menuArray = [];
174 169
 
175 170
         // Go through table of contents and create all menu entries.
@@ -192,8 +187,7 @@  discard block
 block discarded – undo
192 187
      *
193 188
      * @return array HMENU array for menu entry
194 189
      */
195
-    protected function getMenuEntry(array $entry, $recursive = false)
196
-    {
190
+    protected function getMenuEntry(array $entry, $recursive = false) {
197 191
         $entry = $this->resolveMenuEntry($entry);
198 192
 
199 193
         $entryArray = [];
@@ -287,8 +281,7 @@  discard block
 block discarded – undo
287 281
      * @param array $entry
288 282
      * @return array
289 283
      */
290
-    protected function resolveMenuEntry($entry)
291
-    {
284
+    protected function resolveMenuEntry($entry) {
292 285
         // If the menu entry points to the parent document,
293 286
         // resolve to the parent UID set on indexation.
294 287
         $doc = $this->document->getDoc();
@@ -304,8 +297,7 @@  discard block
 block discarded – undo
304 297
         return $entry;
305 298
     }
306 299
 
307
-    protected function getMenuEntryWithImage(array $entry, $recursive = false)
308
-    {
300
+    protected function getMenuEntryWithImage(array $entry, $recursive = false) {
309 301
         $entryArray = [];
310 302
 
311 303
         // don't filter if the entry type is collection or search params are empty
Please login to merge, or discard this 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/Hooks/DataHandler.php 3 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
                     ) {
140 140
                         // Get current configuration.
141 141
                         $result = $queryBuilder
142
-                            ->select($table . '.is_listed AS is_listed')
142
+                            ->select($table.'.is_listed AS is_listed')
143 143
                             ->from($table)
144 144
                             ->where(
145
-                                $queryBuilder->expr()->eq($table . '.uid', intval($id)),
145
+                                $queryBuilder->expr()->eq($table.'.uid', intval($id)),
146 146
                                 Helper::whereExpression($table)
147 147
                             )
148 148
                             ->setMaxResults(1)
@@ -164,10 +164,10 @@  discard block
 block discarded – undo
164 164
                     ) {
165 165
                         // Get current configuration.
166 166
                         $result = $queryBuilder
167
-                            ->select($table . '.index_autocomplete AS index_autocomplete')
167
+                            ->select($table.'.index_autocomplete AS index_autocomplete')
168 168
                             ->from($table)
169 169
                             ->where(
170
-                                $queryBuilder->expr()->eq($table . '.uid', intval($id)),
170
+                                $queryBuilder->expr()->eq($table.'.uid', intval($id)),
171 171
                                 Helper::whereExpression($table)
172 172
                             )
173 173
                             ->setMaxResults(1)
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                                 if ($solr->ready) {
243 243
                                     // Delete Solr document.
244 244
                                     $updateQuery = $solr->service->createUpdate();
245
-                                    $updateQuery->addDeleteQuery('uid:' . $id);
245
+                                    $updateQuery->addDeleteQuery('uid:'.$id);
246 246
                                     $updateQuery->addCommit();
247 247
                                     $solr->service->update($updateQuery);
248 248
                                 }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                                     $document->setDoc($doc);
255 255
                                     Indexer::add($document);
256 256
                                 } else {
257
-                                    $this->logger->error('Failed to re-index document with UID ' . $id);
257
+                                    $this->logger->error('Failed to re-index document with UID '.$id);
258 258
                                 }
259 259
                             }
260 260
                         }
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
                         if ($solr->ready) {
322 322
                             // Delete Solr document.
323 323
                             $updateQuery = $solr->service->createUpdate();
324
-                            $updateQuery->addDeleteQuery('uid:' . $id);
324
+                            $updateQuery->addDeleteQuery('uid:'.$id);
325 325
                             $updateQuery->addCommit();
326 326
                             $solr->service->update($updateQuery);
327 327
                             if ($command == 'delete') {
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
                             $document->setDoc($doc);
337 337
                             Indexer::add($document);
338 338
                         } else {
339
-                            $this->logger->error('Failed to re-index document with UID ' . $id);
339
+                            $this->logger->error('Failed to re-index document with UID '.$id);
340 340
                         }
341 341
                         break;
342 342
                 }
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
                             // Nothing to do here.
388 388
                         }
389 389
                     }
390
-                    $this->logger->warning('Core ' . $resArray['core'] . ' could not be deleted from Apache Solr');
390
+                    $this->logger->warning('Core '.$resArray['core'].' could not be deleted from Apache Solr');
391 391
                 }
392 392
             }
393 393
         }
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@  discard block
 block discarded – undo
34 34
  * @subpackage dlf
35 35
  * @access public
36 36
  */
37
-class DataHandler implements LoggerAwareInterface
38
-{
37
+class DataHandler implements LoggerAwareInterface {
39 38
     use LoggerAwareTrait;
40 39
 
41 40
     /**
@@ -43,8 +42,7 @@  discard block
 block discarded – undo
43 42
      */
44 43
     protected $documentRepository;
45 44
 
46
-    protected function getDocumentRepository()
47
-    {
45
+    protected function getDocumentRepository() {
48 46
         if ($this->documentRepository === null) {
49 47
             $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
50 48
             $this->documentRepository = $objectManager->get(DocumentRepository::class);
@@ -65,8 +63,7 @@  discard block
 block discarded – undo
65 63
      *
66 64
      * @return void
67 65
      */
68
-    public function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray)
69
-    {
66
+    public function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray) {
70 67
         if ($status == 'new') {
71 68
             switch ($table) {
72 69
                     // Field post-processing for table "tx_dlf_documents".
@@ -195,8 +192,7 @@  discard block
 block discarded – undo
195 192
      *
196 193
      * @return void
197 194
      */
198
-    public function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray)
199
-    {
195
+    public function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray) {
200 196
         if ($status == 'update') {
201 197
             switch ($table) {
202 198
                     // After database operations for table "tx_dlf_documents".
@@ -275,8 +271,7 @@  discard block
 block discarded – undo
275 271
      *
276 272
      * @return void
277 273
      */
278
-    public function processCmdmap_postProcess($command, $table, $id)
279
-    {
274
+    public function processCmdmap_postProcess($command, $table, $id) {
280 275
         if (
281 276
             in_array($command, ['move', 'delete', 'undelete'])
282 277
             && $table == 'tx_dlf_documents'
Please login to merge, or discard this patch.
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     protected function getDocumentRepository()
47 47
     {
48
-        if ($this->documentRepository === null) {
48
+        if ($this->documentRepository === NULL) {
49 49
             $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
50 50
             $this->documentRepository = $objectManager->get(DocumentRepository::class);
51 51
         }
@@ -249,8 +249,8 @@  discard block
 block discarded – undo
249 249
                             } else {
250 250
                                 // Reindex document.
251 251
                                 $document = $this->getDocumentRepository()->findByUid($id);
252
-                                $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], true);
253
-                                if ($document !== null && $doc !== null) {
252
+                                $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], TRUE);
253
+                                if ($document !== NULL && $doc !== NULL) {
254 254
                                     $document->setDoc($doc);
255 255
                                     Indexer::add($document);
256 256
                                 } else {
@@ -331,8 +331,8 @@  discard block
 block discarded – undo
331 331
                     case 'undelete':
332 332
                         // Reindex document.
333 333
                         $document = $this->getDocumentRepository()->findByUid($id);
334
-                        $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], true);
335
-                        if ($document !== null && $doc !== null) {
334
+                        $doc = Doc::getInstance($document->getLocation(), ['storagePid' => $document->getPid()], TRUE);
335
+                        if ($document !== NULL && $doc !== NULL) {
336 336
                             $document->setDoc($doc);
337 337
                             Indexer::add($document);
338 338
                         } else {
@@ -374,9 +374,9 @@  discard block
 block discarded – undo
374 374
                         $query = $solr->service->createCoreAdmin();
375 375
                         $action = $query->createUnload();
376 376
                         $action->setCore($resArray['core']);
377
-                        $action->setDeleteDataDir(true);
378
-                        $action->setDeleteIndex(true);
379
-                        $action->setDeleteInstanceDir(true);
377
+                        $action->setDeleteDataDir(TRUE);
378
+                        $action->setDeleteIndex(TRUE);
379
+                        $action->setDeleteInstanceDir(TRUE);
380 380
                         $query->setAction($action);
381 381
                         try {
382 382
                             $response = $solr->service->coreAdmin($query);
Please login to merge, or discard this patch.
Classes/Hooks/ItemsProcFunc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@
 block discarded – undo
126 126
             ->select(...explode(',', $fields))
127 127
             ->from($table)
128 128
             ->where(
129
-                $queryBuilder->expr()->eq($table . '.pid', intval($this->storagePid)),
130
-                $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
129
+                $queryBuilder->expr()->eq($table.'.pid', intval($this->storagePid)),
130
+                $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
131 131
                 $andWhere
132 132
             )
133 133
             ->orderBy($sorting)
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
28 28
  * @subpackage dlf
29 29
  * @access public
30 30
  */
31
-class ItemsProcFunc implements LoggerAwareInterface
32
-{
31
+class ItemsProcFunc implements LoggerAwareInterface {
33 32
     use LoggerAwareTrait;
34 33
 
35 34
     /**
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
      *
47 46
      * @return void
48 47
      */
49
-    public function toolList(&$params)
50
-    {
48
+    public function toolList(&$params) {
51 49
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] as $class => $label) {
52 50
             $params['items'][] = [Helper::getLanguageService()->sL($label), $class];
53 51
         }
@@ -97,8 +95,7 @@  discard block
 block discarded – undo
97 95
      *
98 96
      * @return void
99 97
      */
100
-    public function extendedSearchList(&$params)
101
-    {
98
+    public function extendedSearchList(&$params) {
102 99
         $this->generateList(
103 100
             $params,
104 101
             'label,index_name',
@@ -139,8 +136,7 @@  discard block
 block discarded – undo
139 136
      *
140 137
      * @return void
141 138
      */
142
-    protected function generateList(&$params, $fields, $table, $sorting, $andWhere = '')
143
-    {
139
+    protected function generateList(&$params, $fields, $table, $sorting, $andWhere = '') {
144 140
         $this->getTyposcriptConfigFromPluginSiteRoot($params);
145 141
 
146 142
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
Please login to merge, or discard this patch.
Classes/Hooks/ThumbnailCustomElement.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         // parameters are available in $this->data['parameterArray']['fieldConf']['config']['parameters']
23 23
         $result = $this->initializeResultArray();
24 24
         if (!empty($this->data['databaseRow']['thumbnail'])) {
25
-            $result['html'] = '<img alt="Thumbnail" title="" src="' . $this->data['databaseRow']['thumbnail'] . '" />';
25
+            $result['html'] = '<img alt="Thumbnail" title="" src="'.$this->data['databaseRow']['thumbnail'].'" />';
26 26
         } else {
27 27
             $result['html'] = '';
28 28
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
 
15 15
 use TYPO3\CMS\Backend\Form\Element\AbstractFormElement;
16 16
 
17
-class ThumbnailCustomElement extends AbstractFormElement
18
-{
19
-    public function render()
20
-    {
17
+class ThumbnailCustomElement extends AbstractFormElement {
18
+    public function render() {
21 19
         // Custom TCA properties and other data can be found in $this->data, for example the above
22 20
         // parameters are available in $this->data['parameterArray']['fieldConf']['config']['parameters']
23 21
         $result = $this->initializeResultArray();
Please login to merge, or discard this patch.
Classes/Hooks/ConfigurationForm.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
  * @subpackage dlf
30 30
  * @access public
31 31
  */
32
-class ConfigurationForm
33
-{
32
+class ConfigurationForm {
34 33
 
35 34
     /**
36 35
      * Check if a connection to a Solr server could be established with the given credentials.
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      *
40 39
      * @return string Message informing the user of success or failure
41 40
      */
42
-    public function checkSolrConnection()
43
-    {
41
+    public function checkSolrConnection() {
44 42
         $solr = Solr::getInstance();
45 43
         if ($solr->ready) {
46 44
             Helper::addMessage(
@@ -65,8 +63,7 @@  discard block
 block discarded – undo
65 63
      *
66 64
      * @return void
67 65
      */
68
-    public function __construct()
69
-    {
66
+    public function __construct() {
70 67
         // Load backend localization file.
71 68
         Helper::getLanguageService()->includeLLFile('EXT:dlf/Resources/Private/Language/locallang_be.xlf');
72 69
     }
Please login to merge, or discard this patch.
Classes/Domain/Model/Document.php 2 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @var \Kitodo\Dlf\Common\Doc|null
42 42
      */
43
-    protected $doc = null;
43
+    protected $doc = NULL;
44 44
 
45 45
     /**
46 46
      * @var string
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection>
157 157
      * @Extbase\ORM\Lazy
158 158
      */
159
-    protected $collections = null;
159
+    protected $collections = NULL;
160 160
 
161 161
     /**
162 162
      * @var string
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -192,14 +192,12 @@  discard block
 block discarded – undo
192 192
     /**
193 193
      * constructor
194 194
      */
195
-    public function __construct()
196
-    {
195
+    public function __construct() {
197 196
         // Do not remove the next line: It would break the functionality
198 197
         $this->initStorageObjects();
199 198
     }
200 199
 
201
-    protected function initStorageObjects()
202
-    {
200
+    protected function initStorageObjects() {
203 201
         $this->collections = new ObjectStorage();
204 202
     }
205 203
 
@@ -577,8 +575,7 @@  discard block
 block discarded – undo
577 575
      *
578 576
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> $collections
579 577
      */
580
-    public function getCollections()
581
-    {
578
+    public function getCollections() {
582 579
         return $this->collections;
583 580
     }
584 581
 
@@ -607,8 +604,7 @@  discard block
 block discarded – undo
607 604
      *
608 605
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Kitodo\Dlf\Domain\Model\Collection> collections
609 606
      */
610
-    public function removeCollection(Collection $collection)
611
-    {
607
+    public function removeCollection(Collection $collection) {
612 608
         $this->collections->detach($collection);
613 609
     }
614 610
 
Please login to merge, or discard this patch.
Classes/Domain/Model/Collection.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      *
62 62
      * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
63 63
      */
64
-    protected $thumbnail = null;
64
+    protected $thumbnail = NULL;
65 65
 
66 66
     /**
67 67
      * @var int
Please login to merge, or discard this patch.
Classes/Domain/Repository/MetadataRepository.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         // order by oai_name
49 49
         $query->setOrderings(
50
-            array('sorting' => QueryInterface::ORDER_ASCENDING)
50
+            array ('sorting' => QueryInterface::ORDER_ASCENDING)
51 51
         );
52 52
 
53 53
         return $query->execute();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
27 27
      */
28
-    public function findBySettings($settings = [])
29
-    {
28
+    public function findBySettings($settings = []) {
30 29
         $query = $this->createQuery();
31 30
 
32 31
         $constraints = [];
Please login to merge, or discard this patch.