Skip to content

Commit

Permalink
Apply php-cs-fixer rules
Browse files Browse the repository at this point in the history
  • Loading branch information
magicsunday committed Jan 10, 2025
1 parent ac50dea commit b85151f
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 168 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase-if-necessary
79 changes: 0 additions & 79 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Classes/Command/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(
PersistenceManagerInterface $persistenceManager,
TranslationRepository $translationRepository,
ListUtility $listUtility,
ImportService $importService
ImportService $importService,
) {
parent::__construct();

Expand Down Expand Up @@ -313,7 +313,7 @@ protected function importFile(
bool $forceUpdate,
int &$imported,
int &$updated,
array &$errors
array &$errors,
): void {
$languageKey = $this->getLanguageKeyFromFile($file);
$languageUid = $this->getLanguageId($languageKey);
Expand Down
6 changes: 3 additions & 3 deletions Classes/Controller/TranslationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function __construct(
PersistenceManager $persistenceManager,
ComponentRepository $componentRepository,
TypeRepository $typeRepository,
ImportService $importService
ImportService $importService,
) {
$this->extensionConfiguration = $extensionConfiguration;
$this->environmentRepository = $environmentRepository;
Expand Down Expand Up @@ -754,7 +754,7 @@ private function writeTranslationExportFile(
QueryResultInterface $translations,
string $exportDir,
string $filename,
bool $enableTargetMarker = false
bool $enableTargetMarker = false,
): array {
if ($translations->count() === 0) {
return [];
Expand Down Expand Up @@ -940,7 +940,7 @@ private function getPagination(QueryResultInterface $items, array $settings): ar
private function addFlashMessageToQueue(
string $messageTitle,
string $messageText,
ContextualFeedbackSeverity $severity = ContextualFeedbackSeverity::ERROR
ContextualFeedbackSeverity $severity = ContextualFeedbackSeverity::ERROR,
): void {
/** @var FlashMessage $message */
$message = GeneralUtility::makeInstance(
Expand Down
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/TranslationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function findAllByComponentTypePlaceholderValueAndLanguage(
int $type = 0,
?string $placeholder = null,
?string $value = null,
int $languageId = 0
int $languageId = 0,
): QueryResultInterface {
$query = $this->createQuery();
$query
Expand Down Expand Up @@ -215,7 +215,7 @@ public function findByEnvironmentComponentTypePlaceholderAndLanguage(
Component $component,
Type $type,
string $placeholder,
int $languageUid
int $languageUid,
): ?Translation {
$query = $this->createQuery();

Expand Down
4 changes: 2 additions & 2 deletions Classes/Service/ImportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function importFile(
bool $forceUpdate,
int &$imported,
int &$updated,
array &$errors
array &$errors,
): void {
$languageKey = $this->getLanguageKeyFromFile($file);
$languageUid = $this->getLanguageId($languageKey);
Expand Down Expand Up @@ -183,7 +183,7 @@ public function importEntry(
bool $forceUpdate,
int &$imported,
int &$updated,
array &$errors
array &$errors,
): void {
try {
$environment = $this->environmentRepository
Expand Down
8 changes: 4 additions & 4 deletions Classes/Service/TranslationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct(
ComponentRepository $componentRepository,
TypeRepository $typeRepository,
TranslationRepository $translationRepository,
SiteFinder $siteFinder
SiteFinder $siteFinder,
) {
$this->environmentRepository = $environmentRepository;
$this->componentRepository = $componentRepository;
Expand All @@ -102,7 +102,7 @@ public function translate(
string $placeholder,
string $typeName,
string $componentName,
string $environmentName
string $environmentName,
): string {
if ($placeholder === '') {
return $placeholder;
Expand Down Expand Up @@ -233,7 +233,7 @@ private function getCurrentLanguage(): int
public function createTranslationFromParent(
Translation $parentTranslation,
int $sysLanguageUid,
string $value
string $value,
): ?Translation {
if (!($parentTranslation->getEnvironment() instanceof Environment)
|| !($parentTranslation->getComponent() instanceof Component)
Expand Down Expand Up @@ -277,7 +277,7 @@ public function createTranslation(
Type $type,
string $placeholder,
int $sysLanguageUid = 0,
string $value = ''
string $value = '',
): Translation {
$translation = GeneralUtility::makeInstance(Translation::class);
$translation
Expand Down
Loading

0 comments on commit b85151f

Please sign in to comment.