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

[Rector] Apply RemoveDefaultArgumentValueRector #4543

Conversation

samsonasik
Copy link
Member

Remove argument value, if it is the same as default value with RemoveDefaultArgumentValueRector rector rule.

Checklist:

  • Securely signed commits

@@ -764,7 +764,7 @@ public function testParserPluginClosure()
return 'Hello, ' . trim($params[0]);
};

$this->parser = new Parser($config, $this->viewsDir, $this->loader);
$this->parser = new Parser($config, $this->viewsDir, $this->loader);
Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't align

Copy link
Member Author

Choose a reason for hiding this comment

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

it is changed by coding standard, I need to manually disable cs :

Running Code Sniffer...
F 1 / 1 (100%)



PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE                                                  FIXED  REMAINING
----------------------------------------------------------------------
...www/CodeIgniter4/tests/system/View/ParserTest.php  1      96
----------------------------------------------------------------------
A TOTAL OF 1 ERROR WERE FIXED IN 1 FILE

I've updated it.

Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

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

After Paul's style note, this looks good.

Aside, I feel like I'm fighting our styling more than finding it helpful these days. So many messed up indentations and type names.

@samsonasik samsonasik merged commit 223e467 into codeigniter4:develop Apr 10, 2021
@samsonasik samsonasik deleted the add-rector-remove-default-argument-value branch April 10, 2021 12:17
pull bot pushed a commit to element-code/CodeIgniter4 that referenced this pull request Apr 10, 2021
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.

3 participants