@@ -58,8 +58,7 @@ |
||
| 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 | |
@@ -105,7 +105,7 @@ |
||
| 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 | } |
@@ -71,7 +71,7 @@ |
||
| 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 | |
@@ -33,7 +33,7 @@ |
||
| 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 | |
@@ -211,7 +211,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -484,7 +484,7 @@ |
||
| 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 | } |
@@ -240,7 +240,7 @@ |
||
| 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 | |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | $response->setHeader('Expires', '0'); |
| 112 | 112 | $response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0'); |
| 113 | 113 | $response->setHeader('Content-Type', 'application/vnd.ms-excel'); |
| 114 | - $response->setHeader('Content-Disposition', 'attachment; filename="' . basename($this->exportFileNameAndPath) . '"'); |
|
| 114 | + $response->setHeader('Content-Disposition', 'attachment; filename="'.basename($this->exportFileNameAndPath).'"'); |
|
| 115 | 115 | $response->setHeader('Content-Length', filesize($this->exportFileNameAndPath)); |
| 116 | 116 | $response->setHeader('Content-Description', 'File Transfer'); |
| 117 | 117 | $response->setHeader('Content-Transfer-Encoding', 'binary'); |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | /** @var \TYPO3\CMS\Extbase\Mvc\Web\Response $response */ |
| 108 | 108 | $response = $this->templateVariableContainer->get('response'); |
| 109 | 109 | $response->setHeader('Content-Type', 'application/csv'); |
| 110 | - $response->setHeader('Content-Disposition', 'attachment; filename="' . basename($this->exportFileNameAndPath) . '"'); |
|
| 110 | + $response->setHeader('Content-Disposition', 'attachment; filename="'.basename($this->exportFileNameAndPath).'"'); |
|
| 111 | 111 | $response->setHeader('Content-Length', filesize($this->exportFileNameAndPath)); |
| 112 | 112 | $response->setHeader('Content-Description', 'File Transfer'); |
| 113 | 113 | |