Completed
Push — master ( e35e6f...5d201a )
by Fabien
53:19
created
Classes/Converter/Field.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         // Resolve the table name.
60 60
         self::$currentTable = $tableNameOrContentObject instanceof Content ?
61
-            $tableNameOrContentObject->getDataType() :
62
-            $tableNameOrContentObject;
61
+            $tableNameOrContentObject->getDataType() : $tableNameOrContentObject;
63 62
         return $this;
64 63
     }
65 64
 
Please login to merge, or discard this patch.
Classes/Processor/MarkerProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
             $replace = $structure[2];
106 106
 
107 107
             // Perhaps needs to be improved here if $search contains "/" precisely.
108
-            $updateValue = preg_replace('/' . $search . '/isU', $replace, $currentValue);
108
+            $updateValue = preg_replace('/'.$search.'/isU', $replace, $currentValue);
109 109
         }
110 110
         return $updateValue;
111 111
     }
Please login to merge, or discard this patch.
Classes/Processor/ContentObjectProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                 $relatedValues = $this->getRelatedValues($object, $fieldNameAndPath, $fieldName);
72 72
 
73 73
                 foreach ($values as $value) {
74
-                    $appendOrRemove = $savingBehavior . 'Relations';
74
+                    $appendOrRemove = $savingBehavior.'Relations';
75 75
                     $relatedValues = $this->$appendOrRemove($value, $relatedValues);
76 76
                 }
77 77
 
Please login to merge, or discard this patch.
Classes/Domain/Validator/LanguageValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
 
35 35
         if (!$this->getLanguageService()->languageExists((int)$language)) {
36
-            throw new \Exception('The language "' . $language . '" does not exist', 1351605542);
36
+            throw new \Exception('The language "'.$language.'" does not exist', 1351605542);
37 37
         }
38 38
     }
39 39
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/ContentRepository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             foreach ($order->getOrderings() as $ordering => $direction) {
212 212
                 if ($this->hasForeignRelationIn($ordering)) {
213 213
                     $relationalField = $this->getForeignRelationFrom($ordering);
214
-                    $matcher->like($relationalField . '.uid', '');
214
+                    $matcher->like($relationalField.'.uid', '');
215 215
                 }
216 216
             }
217 217
         }
@@ -446,16 +446,16 @@  discard block
 block discarded – undo
446 446
     public function __call($methodName, $arguments)
447 447
     {
448 448
         if (substr($methodName, 0, 6) === 'findBy' && strlen($methodName) > 7) {
449
-            $propertyName = strtolower(substr(substr($methodName, 6), 0, 1)) . substr(substr($methodName, 6), 1);
449
+            $propertyName = strtolower(substr(substr($methodName, 6), 0, 1)).substr(substr($methodName, 6), 1);
450 450
             $result = $this->processMagicCall($propertyName, $arguments[0]);
451 451
         } elseif (substr($methodName, 0, 9) === 'findOneBy' && strlen($methodName) > 10) {
452
-            $propertyName = strtolower(substr(substr($methodName, 9), 0, 1)) . substr(substr($methodName, 9), 1);
452
+            $propertyName = strtolower(substr(substr($methodName, 9), 0, 1)).substr(substr($methodName, 9), 1);
453 453
             $result = $this->processMagicCall($propertyName, $arguments[0], 'one');
454 454
         } elseif (substr($methodName, 0, 7) === 'countBy' && strlen($methodName) > 8) {
455
-            $propertyName = strtolower(substr(substr($methodName, 7), 0, 1)) . substr(substr($methodName, 7), 1);
455
+            $propertyName = strtolower(substr(substr($methodName, 7), 0, 1)).substr(substr($methodName, 7), 1);
456 456
             $result = $this->processMagicCall($propertyName, $arguments[0], 'count');
457 457
         } else {
458
-            throw new UnsupportedMethodException('The method "' . $methodName . '" is not supported by the repository.', 1360838010);
458
+            throw new UnsupportedMethodException('The method "'.$methodName.'" is not supported by the repository.', 1360838010);
459 459
         }
460 460
         return $result;
461 461
     }
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
 
641 641
                     if (Tca::table($dataType)->hasField($fieldName) && Tca::table($dataType)->field($fieldName)->hasRelation()) {
642 642
                         $foreignTable = Tca::table($dataType)->field($fieldName)->getForeignTable();
643
-                        $fieldNameAndPath = $fieldNameAndPath . '.' . Tca::table($foreignTable)->getLabelField();
643
+                        $fieldNameAndPath = $fieldNameAndPath.'.'.Tca::table($foreignTable)->getLabelField();
644 644
                     }
645 645
                     $constraints[] = $query->like($fieldNameAndPath, $likeClause);
646 646
                 }
@@ -712,17 +712,17 @@  discard block
 block discarded – undo
712 712
 
713 713
                 if (Tca::table($dataType)->field($fieldName)->hasRelation()) {
714 714
                     if (MathUtility::canBeInterpretedAsInteger($operand)) {
715
-                        $fieldNameAndPath = $fieldName . '.uid';
715
+                        $fieldNameAndPath = $fieldName.'.uid';
716 716
                     } else {
717 717
                         $foreignTableName = Tca::table($dataType)->field($fieldName)->getForeignTable();
718 718
                         $foreignTable = Tca::table($foreignTableName);
719
-                        $fieldNameAndPath = $fieldName . '.' . $foreignTable->getLabelField();
719
+                        $fieldNameAndPath = $fieldName.'.'.$foreignTable->getLabelField();
720 720
                     }
721 721
 
722 722
                     // If different means we should restore the prepended path segment for proper SQL parser.
723 723
                     // This is true for a composite field, e.g items.sys_file_metadata for categories.
724 724
                     if ($fieldName !== $fieldPath) {
725
-                        $fieldNameAndPath = $fieldPath . '.' . $fieldNameAndPath;
725
+                        $fieldNameAndPath = $fieldPath.'.'.$fieldNameAndPath;
726 726
                     }
727 727
                 }
728 728
 
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
         if ($table->field($fieldName)->isGroup()) {
769 769
 
770 770
             $valueParts = explode('.', $value, 2);
771
-            $fieldName = $fieldName . '.' . $valueParts[0];
771
+            $fieldName = $fieldName.'.'.$valueParts[0];
772 772
             $value = $valueParts[1];
773 773
         }
774 774
 
Please login to merge, or discard this patch.
Classes/Tca/FieldService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -484,7 +484,7 @@
 block discarded – undo
484 484
             && isset($this->tca['exclude'])
485 485
             && $this->tca['exclude']
486 486
         ) {
487
-            $hasAccess = $this->getBackendUser()->check('non_exclude_fields', $this->tableName . ':' . $this->fieldName);
487
+            $hasAccess = $this->getBackendUser()->check('non_exclude_fields', $this->tableName.':'.$this->fieldName);
488 488
         }
489 489
         return $hasAccess;
490 490
     }
Please login to merge, or discard this patch.
Classes/Tca/TableService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
     public function getDefaultOrderSql()
241 241
     {
242 242
         // "sortby" typically has "sorting" as value.
243
-        $order = $this->get('sortby') ? $this->get('sortby') . ' ASC' : $this->get('default_sortby');
243
+        $order = $this->get('sortby') ? $this->get('sortby').' ASC' : $this->get('default_sortby');
244 244
         return $order;
245 245
     }
246 246
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/Grid/Column/ConfigurationViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             // -------------------
48 48
             // mData: internal name of DataTable plugin and can not contains a path, e.g. metadata.title
49 49
             // columnName: whole field name with path
50
-            $output .= sprintf('Vidi._columns.push({ "data": "%s", "sortable": %s, "visible": %s, "width": "%s", "class": "%s", "columnName": "%s" });' . PHP_EOL,
50
+            $output .= sprintf('Vidi._columns.push({ "data": "%s", "sortable": %s, "visible": %s, "width": "%s", "class": "%s", "columnName": "%s" });'.PHP_EOL,
51 51
                 $this->getFieldPathResolver()->stripFieldPath($fieldNameAndPath), // Suitable field name for the DataTable plugin.
52 52
                 Tca::grid()->isSortable($fieldNameAndPath) ? 'true' : 'false',
53 53
                 Tca::grid()->isVisible($fieldNameAndPath) ? 'true' : 'false',
Please login to merge, or discard this patch.
Classes/ViewHelpers/Grid/Column/FieldNameViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $configuration = $this->templateVariableContainer->get('configuration');
35 35
 
36 36
         if (isset($configuration['dataType'])) {
37
-            $fieldName = $configuration['dataType'] . '.' . $fieldName;
37
+            $fieldName = $configuration['dataType'].'.'.$fieldName;
38 38
         }
39 39
 
40 40
         return $fieldName;
Please login to merge, or discard this patch.