-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
php-cs-fixer fix . --rules=native_function_invocation #31198
php-cs-fixer fix . --rules=native_function_invocation #31198
Conversation
Codecov Report
@@ Coverage Diff @@
## master #31198 +/- ##
============================================
+ Coverage 62.57% 62.57% +<.01%
+ Complexity 18412 18234 -178
============================================
Files 1145 1145
Lines 68416 68396 -20
Branches 1234 1234
============================================
- Hits 42809 42799 -10
+ Misses 25246 25236 -10
Partials 361 361
Continue to review full report at Codecov.
|
8908f52
to
fa32be5
Compare
WOW |
@DeepDiver1975 if this gets merged, we will have code added in the meanwhile which does not have the namespace added. How can we make sure we can |
I did add the php-cs-fixer as drone step - as soon as anybody violates the rules - the build will fail |
fa32be5
to
1959cc9
Compare
This is great for new PR´s an thanks for higlighting this as this is a very important doc-note ! But this also means a one time delta job for those PR´s which are not covered by this one but merged in between. May I assume that you volunteer to fix them 😄 |
anybody can easily run the php-cs-fixer to not only detect the changes but also to apply them. |
Now I see it, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
ca9eeee
to
f670116
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and some more ...
composer.lock
Outdated
}, | ||
{ | ||
"name": "paragonie/random_compat", | ||
"version": "v2.0.12", | ||
"version": "v2.0.11", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DeepDiver1975 downgrade?
composer.lock
Outdated
}, | ||
{ | ||
"name": "phpseclib/phpseclib", | ||
"version": "2.0.11", | ||
"version": "2.0.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
}, | ||
{ | ||
"name": "sabre/vobject", | ||
"version": "4.1.6", | ||
"version": "4.1.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
}, | ||
{ | ||
"name": "symfony/console", | ||
"version": "v3.4.8", | ||
"version": "v3.4.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
}, | ||
{ | ||
"name": "symfony/debug", | ||
"version": "v3.4.8", | ||
"version": "v3.4.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
"shasum": "" | ||
}, | ||
"require": { | ||
"php": "^5.5.9|>=7.0.8" | ||
}, | ||
"conflict": { | ||
"symfony/config": "<3.3.1", | ||
"symfony/config": "<2.8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
}, | ||
{ | ||
"name": "symfony/translation", | ||
"version": "v3.4.8", | ||
"version": "v3.4.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
}, | ||
{ | ||
"name": "zendframework/zend-filter", | ||
"version": "2.8.0", | ||
"version": "2.7.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
}, | ||
"conflict": { | ||
"zendframework/zend-validator": "<2.10.1" | ||
"php": "^5.5 || ^7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
composer.lock
Outdated
"conflict": { | ||
"zendframework/zend-validator": "<2.10.1" | ||
"php": "^5.5 || ^7.0", | ||
"zendframework/zend-stdlib": "^2.7 || ^3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downgrade?
ac94ad1
to
73b02b1
Compare
cc3f83d
to
2537c57
Compare
@DeepDiver1975 question: what is the impact to other repositories if there is one, lets take as an example oauth2 (could be any other). How can those be improved by this approach ? |
2537c57
to
f929720
Compare
we will step by step introduce php-cs-fixer to all other repos as well. |
Backport to stable10 please - keep coding style consistent |
Yes, and it will minimize pain for future backports. |
Before Backporting: I had a bit of more time to think and check other projects using / implementing it - and I would actually prefer the approach the doctrine project went ahead: instead of using
ref: doctrine/orm#6807 Example: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query.php while this is merged now it doesn't mean we have to stick with it - we could create codesniffer rules: https://github.com/doctrine/coding-standard/pull/15/files |
Note: backport of this is likely to be superceded by the "ownCloud coding standard" implementation in PR #31442 |
Effective backport is included in #31453 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
php functions should be called with their full namespace
one of many resource about the details: https://veewee.github.io/blog/optimizing-php-performance-by-fq-function-calls/
Motivation and Context
How Has This Been Tested?
Pure unit testing
Types of changes
Checklist: