@@ -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 | |
@@ -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 | |
@@ -34,7 +34,7 @@ |
||
| 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; |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | { |
| 58 | 58 | $serializedMatches = serialize($matches); |
| 59 | 59 | $serializedOrderings = serialize($orderings); |
| 60 | - return md5($dataType . $serializedMatches . $serializedOrderings . $limit . $offset); |
|
| 60 | + return md5($dataType.$serializedMatches.$serializedOrderings.$limit.$offset); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | protected function getDataKey() |
| 83 | 83 | { |
| 84 | - return 'vidi_clipboard_' . $this->getModuleLoader()->getDataType(); |
|
| 84 | + return 'vidi_clipboard_'.$this->getModuleLoader()->getDataType(); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -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 | |