Completed
Push — master ( 9e3b6d...6d03f6 )
by Fabien
06:07 queued 02:59
created
Classes/Tool/RelationAnalyserTool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     public function isShown()
86 86
     {
87
-        return $this->getBackendUser()->isAdmin();# && GeneralUtility::getApplicationContext()->isDevelopment();
87
+        return $this->getBackendUser()->isAdmin(); # && GeneralUtility::getApplicationContext()->isDevelopment();
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
Classes/Converter/Property.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         // Resolve the table name.
59 59
         self::$currentTable = $tableNameOrContentObject instanceof Content ?
60
-            $tableNameOrContentObject->getDataType() :
61
-            $tableNameOrContentObject;
60
+            $tableNameOrContentObject->getDataType() : $tableNameOrContentObject;
62 61
         return $this;
63 62
     }
64 63
 
Please login to merge, or discard this patch.
Classes/Converter/Field.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         // Resolve the table name.
59 59
         self::$currentTable = $tableNameOrContentObject instanceof Content ?
60
-            $tableNameOrContentObject->getDataType() :
61
-            $tableNameOrContentObject;
60
+            $tableNameOrContentObject->getDataType() : $tableNameOrContentObject;
62 61
         return $this;
63 62
     }
64 63
 
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/Model/Content.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $value = NULL;
101 101
         if (substr($methodName, 0, 3) === 'get' && strlen($methodName) > 4) {
102
-            $propertyName = strtolower(substr(substr($methodName, 3), 0, 1)) . substr(substr($methodName, 3), 1);
102
+            $propertyName = strtolower(substr(substr($methodName, 3), 0, 1)).substr(substr($methodName, 3), 1);
103 103
 
104 104
             $fieldName = Property::name($propertyName)->of($this)->toFieldName();
105 105
             $field = Tca::table($this->dataType)->field($fieldName);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             }
120 120
 
121 121
         } elseif (substr($methodName, 0, 3) === 'set' && strlen($methodName) > 4 && isset($arguments[0])) {
122
-            $propertyName = strtolower(substr(substr($methodName, 3), 0, 1)) . substr(substr($methodName, 3), 1);
122
+            $propertyName = strtolower(substr(substr($methodName, 3), 0, 1)).substr(substr($methodName, 3), 1);
123 123
             $this->$propertyName = $arguments[0];
124 124
         }
125 125
         return $value;
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
 
178 178
             // Fetch values from repository.
179 179
             $foreignPropertyName = Field::name($foreignFieldName)->of($this)->toPropertyName();
180
-            $findByProperty = 'findBy' . ucfirst($foreignPropertyName);
180
+            $findByProperty = 'findBy'.ucfirst($foreignPropertyName);
181 181
 
182 182
             // Date picker (type == group) are special fields because property path must contain the table name
183 183
             // to determine the relation type. Example for sys_category, property path will look like "items.sys_file"
184 184
             $propertyValue = $this->uid;
185 185
             if (Tca::table($foreignDataType)->field($foreignFieldName)->isGroup()) {
186
-                $propertyValue = $this->dataType . '.' . $this->uid;
186
+                $propertyValue = $this->dataType.'.'.$this->uid;
187 187
             }
188 188
 
189 189
             $this->$propertyName = $foreignContentRepository->$findByProperty($propertyValue);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 $foreignDataType = Tca::table($this->dataType)->field($fieldName)->getForeignTable();
204 204
                 $foreignField = Tca::table($this->dataType)->field($fieldName)->getForeignField();
205 205
                 $foreignContentRepository = ContentRepositoryFactory::getInstance($foreignDataType);
206
-                $find = 'findOneBy' . GeneralUtility::underscoredToUpperCamelCase($foreignField);
206
+                $find = 'findOneBy'.GeneralUtility::underscoredToUpperCamelCase($foreignField);
207 207
 
208 208
                 /** @var Content $foreignObject */
209 209
                 $this->$propertyName = $foreignContentRepository->$find($this->getUid());
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     public function offsetGet($offset)
253 253
     {
254 254
         $offset = Field::name($offset)->of($this)->toPropertyName();
255
-        $getter = 'get' . ucfirst($offset);
255
+        $getter = 'get'.ucfirst($offset);
256 256
         return $this->$getter();
257 257
     }
258 258
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     public function offsetSet($offset, $value)
268 268
     {
269 269
         $offset = Field::name($offset)->of($this)->toPropertyName();
270
-        $setter = 'set' . ucfirst($offset);
270
+        $setter = 'set'.ucfirst($offset);
271 271
         $this->$setter($value);
272 272
         return $this;
273 273
     }
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/Module/ModulePreferences.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,8 +185,8 @@
 block discarded – undo
185 185
         $generalSettings = $this->getSettings();
186 186
 
187 187
         $preferences = array();
188
-        if (isset($generalSettings[$dataType . '.'])) {
189
-            $settings = $generalSettings[$dataType . '.'];
188
+        if (isset($generalSettings[$dataType.'.'])) {
189
+            $settings = $generalSettings[$dataType.'.'];
190 190
 
191 191
             $configurableParts = ConfigurablePart::getParts();
192 192
             foreach ($settings as $key => $value) {
Please login to merge, or discard this patch.