@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ->setDataAttributes([ |
| 45 | 45 | 'toggle' => 'tooltip', |
| 46 | 46 | ]) |
| 47 | - ->setTitle($this->getLabelService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:' . $label)) |
|
| 47 | + ->setTitle($this->getLabelService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:'.$label)) |
|
| 48 | 48 | ->setIcon($this->getIconFactory()->getIcon($spriteName, Icon::SIZE_SMALL)) |
| 49 | 49 | ->render(); |
| 50 | 50 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $this->tableName = $tableName; |
| 70 | 70 | |
| 71 | 71 | if (empty($GLOBALS['TCA'][$this->tableName])) { |
| 72 | - throw new InvalidKeyInArrayException('No TCA existence for table name: ' . $this->tableName, 1356945108); |
|
| 72 | + throw new InvalidKeyInArrayException('No TCA existence for table name: '.$this->tableName, 1356945108); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | $this->tca = $GLOBALS['TCA'][$this->tableName]['grid'] ?? []; |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | { |
| 172 | 172 | $fields = array_keys($this->getFields()); |
| 173 | 173 | if (empty($fields[$position])) { |
| 174 | - throw new InvalidKeyInArrayException('No field exist for position: ' . $position, 1356945119); |
|
| 174 | + throw new InvalidKeyInArrayException('No field exist for position: '.$position, 1356945119); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | return (string)$fields[$position]; |
@@ -687,7 +687,7 @@ discard block |
||
| 687 | 687 | $facet = GeneralUtility::makeInstance(StandardFacet::class, $facetName, $label); |
| 688 | 688 | |
| 689 | 689 | if (!$facet instanceof StandardFacet) { |
| 690 | - throw new \RuntimeException('I could not instantiate a facet for facet name "' . $facetName . '""', 1445856345); |
|
| 690 | + throw new \RuntimeException('I could not instantiate a facet for facet name "'.$facetName.'""', 1445856345); |
|
| 691 | 691 | } |
| 692 | 692 | return $facet; |
| 693 | 693 | } |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | foreach ($order->getOrderings() as $ordering => $direction) { |
| 216 | 216 | if ($this->hasForeignRelationIn($ordering)) { |
| 217 | 217 | $relationalField = $this->getForeignRelationFrom($ordering); |
| 218 | - $matcher->like($relationalField . '.uid', ''); |
|
| 218 | + $matcher->like($relationalField.'.uid', ''); |
|
| 219 | 219 | } |
| 220 | 220 | } |
| 221 | 221 | } |
@@ -444,16 +444,16 @@ discard block |
||
| 444 | 444 | public function __call($methodName, $arguments) |
| 445 | 445 | { |
| 446 | 446 | if (substr($methodName, 0, 6) === 'findBy' && strlen($methodName) > 7) { |
| 447 | - $propertyName = strtolower(substr(substr($methodName, 6), 0, 1)) . substr(substr($methodName, 6), 1); |
|
| 447 | + $propertyName = strtolower(substr(substr($methodName, 6), 0, 1)).substr(substr($methodName, 6), 1); |
|
| 448 | 448 | $result = $this->processMagicCall($propertyName, $arguments[0]); |
| 449 | 449 | } elseif (substr($methodName, 0, 9) === 'findOneBy' && strlen($methodName) > 10) { |
| 450 | - $propertyName = strtolower(substr(substr($methodName, 9), 0, 1)) . substr(substr($methodName, 9), 1); |
|
| 450 | + $propertyName = strtolower(substr(substr($methodName, 9), 0, 1)).substr(substr($methodName, 9), 1); |
|
| 451 | 451 | $result = $this->processMagicCall($propertyName, $arguments[0], 'one'); |
| 452 | 452 | } elseif (substr($methodName, 0, 7) === 'countBy' && strlen($methodName) > 8) { |
| 453 | - $propertyName = strtolower(substr(substr($methodName, 7), 0, 1)) . substr(substr($methodName, 7), 1); |
|
| 453 | + $propertyName = strtolower(substr(substr($methodName, 7), 0, 1)).substr(substr($methodName, 7), 1); |
|
| 454 | 454 | $result = $this->processMagicCall($propertyName, $arguments[0], 'count'); |
| 455 | 455 | } else { |
| 456 | - throw new UnsupportedMethodException('The method "' . $methodName . '" is not supported by the repository.', 1360838010); |
|
| 456 | + throw new UnsupportedMethodException('The method "'.$methodName.'" is not supported by the repository.', 1360838010); |
|
| 457 | 457 | } |
| 458 | 458 | return $result; |
| 459 | 459 | } |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | |
| 639 | 639 | if (Tca::table($dataType)->hasField($fieldName) && Tca::table($dataType)->field($fieldName)->hasRelation()) { |
| 640 | 640 | $foreignTable = Tca::table($dataType)->field($fieldName)->getForeignTable(); |
| 641 | - $fieldNameAndPath = $fieldNameAndPath . '.' . Tca::table($foreignTable)->getLabelField(); |
|
| 641 | + $fieldNameAndPath = $fieldNameAndPath.'.'.Tca::table($foreignTable)->getLabelField(); |
|
| 642 | 642 | } |
| 643 | 643 | $constraints[] = $query->like($fieldNameAndPath, $likeClause); |
| 644 | 644 | } |
@@ -708,17 +708,17 @@ discard block |
||
| 708 | 708 | |
| 709 | 709 | if (Tca::table($dataType)->field($fieldName)->hasRelation()) { |
| 710 | 710 | if (MathUtility::canBeInterpretedAsInteger($operand)) { |
| 711 | - $fieldNameAndPath = $fieldName . '.uid'; |
|
| 711 | + $fieldNameAndPath = $fieldName.'.uid'; |
|
| 712 | 712 | } else { |
| 713 | 713 | $foreignTableName = Tca::table($dataType)->field($fieldName)->getForeignTable(); |
| 714 | 714 | $foreignTable = Tca::table($foreignTableName); |
| 715 | - $fieldNameAndPath = $fieldName . '.' . $foreignTable->getLabelField(); |
|
| 715 | + $fieldNameAndPath = $fieldName.'.'.$foreignTable->getLabelField(); |
|
| 716 | 716 | } |
| 717 | 717 | |
| 718 | 718 | // If different means we should restore the prepended path segment for proper SQL parser. |
| 719 | 719 | // This is true for a composite field, e.g items.sys_file_metadata for categories. |
| 720 | 720 | if ($fieldName !== $fieldPath) { |
| 721 | - $fieldNameAndPath = $fieldPath . '.' . $fieldNameAndPath; |
|
| 721 | + $fieldNameAndPath = $fieldPath.'.'.$fieldNameAndPath; |
|
| 722 | 722 | } |
| 723 | 723 | } |
| 724 | 724 | |
@@ -770,7 +770,7 @@ discard block |
||
| 770 | 770 | $table = Tca::table($this->dataType); |
| 771 | 771 | if ($table->field($fieldName)->isGroup()) { |
| 772 | 772 | $valueParts = explode('.', $value, 2); |
| 773 | - $fieldName = $fieldName . '.' . $valueParts[0]; |
|
| 773 | + $fieldName = $fieldName.'.'.$valueParts[0]; |
|
| 774 | 774 | $value = $valueParts[1]; |
| 775 | 775 | } |
| 776 | 776 | |
@@ -99,7 +99,7 @@ discard block |
||
| 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); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | } elseif (substr($methodName, 0, 3) === 'set' && strlen($methodName) > 4 && isset($arguments[0])) { |
| 120 | - $propertyName = strtolower(substr(substr($methodName, 3), 0, 1)) . substr(substr($methodName, 3), 1); |
|
| 120 | + $propertyName = strtolower(substr(substr($methodName, 3), 0, 1)).substr(substr($methodName, 3), 1); |
|
| 121 | 121 | $this->$propertyName = $arguments[0]; |
| 122 | 122 | } |
| 123 | 123 | return $value; |
@@ -174,13 +174,13 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | // Fetch values from repository. |
| 176 | 176 | $foreignPropertyName = Field::name($foreignFieldName)->of($this)->toPropertyName(); |
| 177 | - $findByProperty = 'findBy' . ucfirst($foreignPropertyName); |
|
| 177 | + $findByProperty = 'findBy'.ucfirst($foreignPropertyName); |
|
| 178 | 178 | |
| 179 | 179 | // Date picker (type == group) are special fields because property path must contain the table name |
| 180 | 180 | // to determine the relation type. Example for sys_category, property path will look like "items.sys_file" |
| 181 | 181 | $propertyValue = $this->uid; |
| 182 | 182 | if (Tca::table($foreignDataType)->field($foreignFieldName)->isGroup()) { |
| 183 | - $propertyValue = $this->dataType . '.' . $this->uid; |
|
| 183 | + $propertyValue = $this->dataType.'.'.$this->uid; |
|
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | $this->$propertyName = $foreignContentRepository->$findByProperty($propertyValue); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $foreignDataType = Tca::table($this->dataType)->field($fieldName)->getForeignTable(); |
| 199 | 199 | $foreignField = Tca::table($this->dataType)->field($fieldName)->getForeignField(); |
| 200 | 200 | $foreignContentRepository = ContentRepositoryFactory::getInstance($foreignDataType); |
| 201 | - $find = 'findOneBy' . GeneralUtility::underscoredToUpperCamelCase($foreignField); |
|
| 201 | + $find = 'findOneBy'.GeneralUtility::underscoredToUpperCamelCase($foreignField); |
|
| 202 | 202 | |
| 203 | 203 | /** @var Content $foreignObject */ |
| 204 | 204 | $this->$propertyName = $foreignContentRepository->$find($this->getUid()); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | public function offsetGet($offset) |
| 251 | 251 | { |
| 252 | 252 | $offset = Field::name($offset)->of($this)->toPropertyName(); |
| 253 | - $getter = 'get' . ucfirst($offset); |
|
| 253 | + $getter = 'get'.ucfirst($offset); |
|
| 254 | 254 | return $this->$getter(); |
| 255 | 255 | } |
| 256 | 256 | |
@@ -267,7 +267,7 @@ discard block |
||
| 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 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function validate($language) |
| 27 | 27 | { |
| 28 | 28 | if (!$this->getLanguageService()->languageExists((int)$language)) { |
| 29 | - throw new \Exception('The language "' . $language . '" does not exist', 1351605542); |
|
| 29 | + throw new \Exception('The language "'.$language.'" does not exist', 1351605542); |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
@@ -31,10 +31,10 @@ |
||
| 31 | 31 | { |
| 32 | 32 | $dataType = $this->getModuleLoader()->getDataType(); |
| 33 | 33 | |
| 34 | - $key = $dataType . '_' . $this->getBackendUserIdentifier() . '_' . $key; |
|
| 34 | + $key = $dataType.'_'.$this->getBackendUserIdentifier().'_'.$key; |
|
| 35 | 35 | $this->getCacheInstance()->set($key, $value, [], 0); |
| 36 | 36 | |
| 37 | - $key = $dataType . '_' . $this->getBackendUserIdentifier() . '_signature'; |
|
| 37 | + $key = $dataType.'_'.$this->getBackendUserIdentifier().'_signature'; |
|
| 38 | 38 | $this->getCacheInstance()->set($key, $preferenceSignature, [], 0); |
| 39 | 39 | |
| 40 | 40 | return $this->htmlResponse('OK'); |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | ->from('pages') |
| 190 | 190 | ->where( |
| 191 | 191 | 'deleted = 0', |
| 192 | - 'uid = ' . $configuredPid |
|
| 192 | + 'uid = '.$configuredPid |
|
| 193 | 193 | ) |
| 194 | 194 | ->execute() |
| 195 | 195 | ->fetch(); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | protected function generateHeader() |
| 81 | 81 | { |
| 82 | 82 | // workbook header |
| 83 | - $output = stripslashes(sprintf(self::XmlHeader, $this->encoding)) . "\n"; |
|
| 83 | + $output = stripslashes(sprintf(self::XmlHeader, $this->encoding))."\n"; |
|
| 84 | 84 | |
| 85 | 85 | // Set up styles |
| 86 | 86 | $output .= "<Styles>\n"; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | { |
| 62 | 62 | if (is_string($configuration)) { |
| 63 | 63 | $configuration = $legacyParameterConfiguration; |
| 64 | - trigger_error('ColumnRendererAbstract: first parameter must now be an array. Please edit me in ' . get_class($this), E_USER_DEPRECATED); |
|
| 64 | + trigger_error('ColumnRendererAbstract: first parameter must now be an array. Please edit me in '.get_class($this), E_USER_DEPRECATED); |
|
| 65 | 65 | } |
| 66 | 66 | $this->configuration = $configuration; |
| 67 | 67 | } |