@@ -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 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $this->tableName = $tableName; |
| 68 | 68 | |
| 69 | 69 | if (empty($GLOBALS['TCA'][$this->tableName])) { |
| 70 | - throw new InvalidKeyInArrayException('No TCA existence for table name: ' . $this->tableName, 1356945108); |
|
| 70 | + throw new InvalidKeyInArrayException('No TCA existence for table name: '.$this->tableName, 1356945108); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | $this->tca = $GLOBALS['TCA'][$this->tableName]['grid']; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | { |
| 170 | 170 | $fields = array_keys($this->getFields()); |
| 171 | 171 | if (empty($fields[$position])) { |
| 172 | - throw new InvalidKeyInArrayException('No field exist for position: ' . $position, 1356945119); |
|
| 172 | + throw new InvalidKeyInArrayException('No field exist for position: '.$position, 1356945119); |
|
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | return $fields[$position]; |
@@ -685,7 +685,7 @@ discard block |
||
| 685 | 685 | $facet = GeneralUtility::makeInstance(StandardFacet::class, $facetName, $label); |
| 686 | 686 | |
| 687 | 687 | if (!$facet instanceof StandardFacet) { |
| 688 | - throw new \RuntimeException('I could not instantiate a facet for facet name "' . $facetName . '""', 1445856345); |
|
| 688 | + throw new \RuntimeException('I could not instantiate a facet for facet name "'.$facetName.'""', 1445856345); |
|
| 689 | 689 | } |
| 690 | 690 | return $facet; |
| 691 | 691 | } |
@@ -317,7 +317,7 @@ |
||
| 317 | 317 | public function like($fieldNameAndPath, $operand, $addWildCard = true): self |
| 318 | 318 | { |
| 319 | 319 | $wildCardSymbol = $addWildCard ? '%' : ''; |
| 320 | - $this->like[] = ['fieldNameAndPath' => $fieldNameAndPath, 'operand' => $wildCardSymbol . $operand . $wildCardSymbol]; |
|
| 320 | + $this->like[] = ['fieldNameAndPath' => $fieldNameAndPath, 'operand' => $wildCardSymbol.$operand.$wildCardSymbol]; |
|
| 321 | 321 | return $this; |
| 322 | 322 | } |
| 323 | 323 | |