@@ -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 | |
@@ -179,8 +179,8 @@ |
||
| 179 | 179 | $generalSettings = $this->getSettings(); |
| 180 | 180 | |
| 181 | 181 | $preferences = []; |
| 182 | - if (isset($generalSettings[$dataType . '.'])) { |
|
| 183 | - $settings = $generalSettings[$dataType . '.']; |
|
| 182 | + if (isset($generalSettings[$dataType.'.'])) { |
|
| 183 | + $settings = $generalSettings[$dataType.'.']; |
|
| 184 | 184 | |
| 185 | 185 | $configurableParts = ConfigurablePart::getParts(); |
| 186 | 186 | foreach ($settings as $key => $value) { |
@@ -29,10 +29,10 @@ |
||
| 29 | 29 | |
| 30 | 30 | $dataType = $this->getModuleLoader()->getDataType(); |
| 31 | 31 | |
| 32 | - $key = $dataType . '_' . $this->getBackendUserIdentifier() . '_' . $key; |
|
| 32 | + $key = $dataType.'_'.$this->getBackendUserIdentifier().'_'.$key; |
|
| 33 | 33 | $this->getCacheInstance()->set($key, $value, [], 0); |
| 34 | 34 | |
| 35 | - $key = $dataType . '_' . $this->getBackendUserIdentifier() . '_signature'; |
|
| 35 | + $key = $dataType.'_'.$this->getBackendUserIdentifier().'_signature'; |
|
| 36 | 36 | $this->getCacheInstance()->set($key, $preferenceSignature, [], 0); |
| 37 | 37 | |
| 38 | 38 | return 'OK'; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | if (is_string($configuration)) { |
| 63 | 63 | $configuration = $legacyParameterConfiguration; |
| 64 | - GeneralUtility::deprecationLog('ColumnRendererAbstract: first parameter must now be an array. Please edit me in ' . get_class($this)); |
|
| 64 | + GeneralUtility::deprecationLog('ColumnRendererAbstract: first parameter must now be an array. Please edit me in '.get_class($this)); |
|
| 65 | 65 | } |
| 66 | 66 | $this->configuration = $configuration; |
| 67 | 67 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * @see http://www.php.net/manual/function.htmlentities.php |
| 175 | 175 | * @api |
| 176 | 176 | */ |
| 177 | - protected function secure($value , $keepQuotes = false, $encoding = 'UTF-8') |
|
| 177 | + protected function secure($value, $keepQuotes = false, $encoding = 'UTF-8') |
|
| 178 | 178 | { |
| 179 | 179 | $flags = $keepQuotes ? ENT_NOQUOTES : ENT_COMPAT; |
| 180 | 180 | return htmlspecialchars($value, $flags, $encoding); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public function render() |
| 41 | 41 | { |
| 42 | 42 | $this->initializeCache(); |
| 43 | - $key = $this->getModuleLoader()->getDataType() . '_' . $this->getBackendUserIdentifier() . '_' . $this->arguments['key']; |
|
| 43 | + $key = $this->getModuleLoader()->getDataType().'_'.$this->getBackendUserIdentifier().'_'.$this->arguments['key']; |
|
| 44 | 44 | |
| 45 | 45 | $value = $this->cacheInstance->get($key); |
| 46 | 46 | if ($value) { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function render() |
| 35 | 35 | { |
| 36 | - $getter = 'get' . ucfirst($this->arguments['key']); |
|
| 36 | + $getter = 'get'.ucfirst($this->arguments['key']); |
|
| 37 | 37 | |
| 38 | 38 | /** @var ModulePreferences $modulePreferences */ |
| 39 | 39 | $modulePreferences = GeneralUtility::makeInstance(ModulePreferences::class); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function render() |
| 35 | 35 | { |
| 36 | - $getter = 'get' . ucfirst($this->arguments['key']); |
|
| 36 | + $getter = 'get'.ucfirst($this->arguments['key']); |
|
| 37 | 37 | |
| 38 | 38 | /** @var ModuleLoader $moduleLoader */ |
| 39 | 39 | $moduleLoader = GeneralUtility::makeInstance(ModuleLoader::class); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function stripPathSitePrefix($path) |
| 42 | 42 | { |
| 43 | - return substr($path, strlen(Environment::getPublicPath() . '/')); |
|
| 43 | + return substr($path, strlen(Environment::getPublicPath().'/')); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | } |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | $expressionBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 46 | 46 | ->getQueryBuilderForTable($table) |
| 47 | 47 | ->expr(); |
| 48 | - return $withLogicalSeparator . ' ' . $expressionBuilder->eq( |
|
| 49 | - $table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], |
|
| 48 | + return $withLogicalSeparator.' '.$expressionBuilder->eq( |
|
| 49 | + $table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], |
|
| 50 | 50 | 0 |
| 51 | 51 | ); |
| 52 | 52 | } |
@@ -72,12 +72,12 @@ discard block |
||
| 72 | 72 | if (is_array($ctrl)) { |
| 73 | 73 | if (is_array($ctrl['enablecolumns'])) { |
| 74 | 74 | if ($ctrl['enablecolumns']['disabled'] ?? false) { |
| 75 | - $field = $table . '.' . $ctrl['enablecolumns']['disabled']; |
|
| 75 | + $field = $table.'.'.$ctrl['enablecolumns']['disabled']; |
|
| 76 | 76 | $query->add($expressionBuilder->eq($field, 0)); |
| 77 | 77 | $invQuery->add($expressionBuilder->neq($field, 0)); |
| 78 | 78 | } |
| 79 | 79 | if ($ctrl['enablecolumns']['starttime'] ?? false) { |
| 80 | - $field = $table . '.' . $ctrl['enablecolumns']['starttime']; |
|
| 80 | + $field = $table.'.'.$ctrl['enablecolumns']['starttime']; |
|
| 81 | 81 | $query->add($expressionBuilder->lte($field, (int)$GLOBALS['SIM_ACCESS_TIME'])); |
| 82 | 82 | $invQuery->add( |
| 83 | 83 | $expressionBuilder->andX( |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | ); |
| 88 | 88 | } |
| 89 | 89 | if ($ctrl['enablecolumns']['endtime'] ?? false) { |
| 90 | - $field = $table . '.' . $ctrl['enablecolumns']['endtime']; |
|
| 90 | + $field = $table.'.'.$ctrl['enablecolumns']['endtime']; |
|
| 91 | 91 | $query->add( |
| 92 | 92 | $expressionBuilder->orX( |
| 93 | 93 | $expressionBuilder->eq($field, 0), |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | return ''; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - return ' AND ' . ($inv ? $invQuery : $query); |
|
| 111 | + return ' AND '.($inv ? $invQuery : $query); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |