Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and simonschaufi committed Dec 22, 2023
1 parent 3e2b822 commit 826610d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,34 +53,34 @@ public function change(string $condition): ?string
}

switch ($type) {
case 'TSFE' :
case 'TSFE':
$conditions[$key][] = $this->refactorTsfe($property, $operator, $value);
break;
case 'GP' :
case 'GP':
$conditions[$key][] = $this->refactorGetPost($property, $operator, $value);
break;
case 'LIT' :
case 'LIT':
$conditions[$key][] = sprintf('"%s" %s "%s"', $value, self::OPERATOR_MAPPING[$operator], $property);
break;
case 'ENV' :
case 'ENV':
$conditions[$key][] = $this->createEnvCondition($property, $operator, $value);
break;
case 'IENV' :
case 'IENV':
$conditions[$key][] = $this->createIndependentCondition($property, $operator, $value);
break;
case 'BE_USER' :
case 'BE_USER':
$conditions[$key][] = $this->createBackendUserCondition($property, $operator, $value);
break;
case '_GET' :
case '_GET':
$conditions[$key][] = $this->refactorGet($property, $operator, $value);
break;
case 'GPmerged' :
case 'GPmerged':
$conditions[$key][] = $this->refactorGetPost($property, $operator, $value);
break;
case '_POST' :
case '_POST':
$conditions[$key][] = $this->refactorPost($property, $operator, $value);
break;
default :
default:
$conditions[$key][] = $condition;
break;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Rector/v12/v4/typoscript/MigrateXhtmlDoctypeRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function enterNode(Statement $statement): void
return;
}

$statement->object->relativeName = str_replace('xhtmlDoctype', 'doctype',$statement->object->relativeName);
$statement->object->absoluteName = str_replace('xhtmlDoctype', 'doctype',$statement->object->absoluteName);
$statement->object->relativeName = str_replace('xhtmlDoctype', 'doctype', $statement->object->relativeName);
$statement->object->absoluteName = str_replace('xhtmlDoctype', 'doctype', $statement->object->absoluteName);

$this->hasChanged = true;
}
Expand Down

0 comments on commit 826610d

Please sign in to comment.