Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add TranslationFileFractor for Yaml #78

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

sabbelasichon
Copy link
Collaborator

Relates: #60

@sabbelasichon sabbelasichon self-assigned this May 15, 2024
@sabbelasichon sabbelasichon merged commit 2be7fe5 into main May 15, 2024
38 checks passed
@sabbelasichon sabbelasichon deleted the issue-60 branch May 15, 2024 07:52

declare(strict_types=1);

namespace a9f\Typo3Fractor\TYPO3v10\Yaml;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this have a namespace like …\Typo3Fractor\Rules\…?

]);
}

public function refactor(array $yaml): array
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should have a common understanding of the return values of these methods in all different file types. IMO, there's three possible return types:

  • a changed (part of) the file structure
  • null = no change
  • some flags to signal "throw this away", "stop modifying it" etc.


public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Use key translationFiles instead of translationFile', [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should have some reference to EXT:form in it, e.g. "Rewrite EXT:form configuration files to use key "translationFiles" instead of "translationFile" in renderingOptions."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants