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

TASK: Granularly fix php code according to psr12 #4745

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Nov 13, 2023

In hope of detecting invalid @see doc code tags i ran the phpstorm inspections. Well it didnt found those but i found a lot of other stuff.

  • constants have now their visibility declared
  • in final classes we now use new self instead of new static (and optionally declare @Flow\Autowiring(false) to not have a proxy class)
  • psr12 recommends elseif over else { if() {} }
  • the visibility of initializeView was needlessly changed to public

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

@mhsdesign mhsdesign force-pushed the task/runPhpstormInspections branch 2 times, most recently from b1e8f13 to 80f5262 Compare November 13, 2023 18:56
@mhsdesign mhsdesign changed the title TASK: Run Phpstorm inspections and fix php code according to psr12 TASK: Granularly fix php code according to psr12 Nov 18, 2023
@mhsdesign mhsdesign force-pushed the task/runPhpstormInspections branch 2 times, most recently from 4d029b2 to e610eae Compare February 6, 2024 20:08
@mhsdesign mhsdesign force-pushed the task/runPhpstormInspections branch from e610eae to 7cf1df0 Compare February 6, 2024 21:40
@@ -116,6 +116,7 @@ protected function earlyOptimizationOfFilters(FlowQuery $flowQuery, array $parse
$outputNodeAggregateIds = [];
foreach ($parsedFilter['Filters'] as $filter) {
$instanceOfFilters = [];
// @todo array is never queried
Copy link
Member

Choose a reason for hiding this comment

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

@mhsdesign did you plan to fix this todo with a new MR?

Copy link
Member Author

Choose a reason for hiding this comment

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

nö :D

But maybe martins pr might? :D #4712

@mhsdesign mhsdesign merged commit f5dd109 into neos:9.0 Feb 14, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants