Passed
Pull Request — master (#123)
by
unknown
05:20
created
Classes/Hooks/ItemsProcFunc.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @access public
31 31
  */
32
-class ItemsProcFunc implements LoggerAwareInterface
33
-{
32
+class ItemsProcFunc implements LoggerAwareInterface {
34 33
     use LoggerAwareTrait;
35 34
 
36 35
     /**
Please login to merge, or discard this patch.
Classes/Hooks/ThumbnailCustomElement.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
  * @access public
24 24
  */
25
-class ThumbnailCustomElement extends AbstractFormElement
26
-{
25
+class ThumbnailCustomElement extends AbstractFormElement {
27 26
 
28 27
     /**
29 28
      * Renders thumbnail custom element.
Please login to merge, or discard this patch.
Classes/Updates/MigrateSettings.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
  *
27 27
  * @internal
28 28
  */
29
-class MigrateSettings implements UpgradeWizardInterface
30
-{
29
+class MigrateSettings implements UpgradeWizardInterface {
31 30
 
32 31
     /**
33 32
      * Return the identifier for this wizard
Please login to merge, or discard this patch.
Classes/Updates/FileLocationUpdater.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,8 +171,7 @@
 block discarded – undo
171 171
      *
172 172
      * @throws \RuntimeException
173 173
      */
174
-    protected function getRecordsFromTable(bool $countOnly = false)
175
-    {
174
+    protected function getRecordsFromTable(bool $countOnly = false) {
176 175
         $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
177 176
         $allResults = [];
178 177
         $numResults = 0;
Please login to merge, or discard this patch.
Classes/ExpressionLanguage/DocumentTypeProvider.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 DocumentTypeProvider extends AbstractProvider
26
-{
25
+class DocumentTypeProvider extends AbstractProvider {
27 26
     /**
28 27
      * Construct the instance
29 28
      *
@@ -31,8 +30,7 @@  discard block
 block discarded – undo
31 30
      *
32 31
      * @return void
33 32
      */
34
-    public function __construct()
35
-    {
33
+    public function __construct() {
36 34
         $this->expressionLanguageProviders = [
37 35
             DocumentTypeFunctionProvider::class
38 36
         ];
Please login to merge, or discard this patch.
Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,12 +116,10 @@
 block discarded – undo
116 116
     {
117 117
         return new ExpressionFunction(
118 118
             'getDocumentType',
119
-            function()
120
-            {
119
+            function() {
121 120
                 // Not implemented, we only use the evaluator
122 121
             },
123
-            function($arguments, $cPid)
124
-            {
122
+            function($arguments, $cPid) {
125 123
                 /** @var RequestWrapper $requestWrapper */
126 124
                 $requestWrapper = $arguments['request'];
127 125
                 $queryParams = $requestWrapper->getQueryParams();
Please login to merge, or discard this patch.
Classes/Pagination/PageGridPagination.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,15 +18,13 @@
 block discarded – undo
18 18
 use TYPO3\CMS\Core\Pagination\PaginatorInterface;
19 19
 
20 20
 
21
-final class PageGridPagination implements PaginationInterface
22
-{
21
+final class PageGridPagination implements PaginationInterface {
23 22
     /**
24 23
      * @var PageGridPaginator
25 24
      */
26 25
     protected $paginator;
27 26
 
28
-    public function __construct(PaginatorInterface $paginator)
29
-    {
27
+    public function __construct(PaginatorInterface $paginator) {
30 28
         // @phpstan-ignore-next-line
31 29
         $this->paginator = $paginator;
32 30
     }
Please login to merge, or discard this patch.
Classes/Pagination/PageGridPaginator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
 
17 17
 use TYPO3\CMS\Core\Pagination\AbstractPaginator;
18 18
 
19
-final class PageGridPaginator extends AbstractPaginator
20
-{
19
+final class PageGridPaginator extends AbstractPaginator {
21 20
     /**
22 21
      * @var array
23 22
      */
Please login to merge, or discard this patch.
Classes/Controller/AbstractController.php 1 patch
Braces   +9 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@  discard block
 block discarded – undo
35 35
  *
36 36
  * @abstract
37 37
  */
38
-abstract class AbstractController extends ActionController implements LoggerAwareInterface
39
-{
38
+abstract class AbstractController extends ActionController implements LoggerAwareInterface {
40 39
     use LoggerAwareTrait;
41 40
 
42 41
     /**
@@ -222,8 +221,7 @@  discard block
 block discarded – undo
222 221
      *
223 222
      * @return null|string|array
224 223
      */
225
-    protected function getParametersSafely(string $parameterName)
226
-    {
224
+    protected function getParametersSafely(string $parameterName) {
227 225
         if ($this->request->hasArgument($parameterName)) {
228 226
             return $this->request->getArgument($parameterName);
229 227
         }
@@ -310,8 +308,7 @@  discard block
 block discarded – undo
310 308
      *
311 309
      * @return void
312 310
      */
313
-    public function __construct()
314
-    {
311
+    public function __construct() {
315 312
         $this->initialize();
316 313
     }
317 314
 
@@ -351,7 +348,8 @@  discard block
 block discarded – undo
351 348
         $lastStartRecordNumberGrid = 0; // due to validity outside the loop
352 349
         foreach (range($firstPage, $lastPage) as $i) {
353 350
             // detect which pagination is active: ListView or GridView
354
-            if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') {  // ListView
351
+            if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') {
352
+// ListView
355 353
                 $lastStartRecordNumberGrid = $i; // save last $startRecordNumber for LastPage button
356 354
 
357 355
                 $pages[$i] = [
@@ -364,7 +362,8 @@  discard block
 block discarded – undo
364 362
                 if (in_array($i, $aRange)) {
365 363
                     array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $i]);
366 364
                 };
367
-            } else { // GridView
365
+            } else {
366
+// GridView
368 367
                 // to calculate the values for generation the links for the pagination pages
369 368
                 /** @var \Kitodo\Dlf\Pagination\PageGridPaginator $paginator */
370 369
                 $itemsPerPage = $paginator->getPublicItemsPerPage();
@@ -443,8 +442,7 @@  discard block
 block discarded – undo
443 442
      *
444 443
      * @return AbstractDocument
445 444
      */
446
-    private function getDocumentByUid(int $documentId)
447
-    {
445
+    private function getDocumentByUid(int $documentId) {
448 446
         $doc = null;
449 447
         $this->document = $this->documentRepository->findOneByIdAndSettings($documentId);
450 448
 
@@ -466,8 +464,7 @@  discard block
 block discarded – undo
466 464
      *
467 465
      * @return AbstractDocument
468 466
      */
469
-    private function getDocumentByUrl(string $documentId)
470
-    {
467
+    private function getDocumentByUrl(string $documentId) {
471 468
         $doc = AbstractDocument::getInstance($documentId, $this->settings, true);
472 469
 
473 470
         if ($doc !== null) {
Please login to merge, or discard this patch.