Completed
Push — master ( 790593...516252 )
by Fabien
12:05
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/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/Tca/GridService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->tableName = $tableName;
79 79
 
80 80
         if (empty($GLOBALS['TCA'][$this->tableName])) {
81
-            throw new InvalidKeyInArrayException('No TCA existence for table name: ' . $this->tableName, 1356945108);
81
+            throw new InvalidKeyInArrayException('No TCA existence for table name: '.$this->tableName, 1356945108);
82 82
         }
83 83
 
84 84
         $this->tca = $GLOBALS['TCA'][$this->tableName]['grid'];
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $fields = array_keys($this->getFields());
180 180
         if (empty($fields[$position])) {
181
-            throw new InvalidKeyInArrayException('No field exist for position: ' . $position, 1356945119);
181
+            throw new InvalidKeyInArrayException('No field exist for position: '.$position, 1356945119);
182 182
         }
183 183
 
184 184
         return $fields[$position];
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
         $facet = GeneralUtility::makeInstance('Fab\Vidi\Facet\StandardFacet', $facetName, $label);
645 645
 
646 646
         if (!$facet instanceof StandardFacet) {
647
-            throw new \RuntimeException('I could not instantiate a facet for facet name "' . (string)$facet . '""', 1445856345);
647
+            throw new \RuntimeException('I could not instantiate a facet for facet name "'.(string)$facet.'""', 1445856345);
648 648
         }
649 649
         return $facet;
650 650
     }
Please login to merge, or discard this patch.