Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f6fac8 + b8d39c4 commit 4649ba9Copy full SHA for 4649ba9
2 files changed
benchmark.sh
@@ -15,7 +15,7 @@ do
15
git checkout $BRANCH &> /dev/null &&
16
git reset --hard &> /dev/null &&
17
echo -n $BRANCH
18
- (for i in {1..10}; do php php-cs-fixer fix . ; done) | grep -i fixed | awk '
+ (for i in {1..10}; do php php-cs-fixer fix --dry-run 2> /dev/null ; done) | grep -i seconds | awk '
19
{
20
total += $5;
21
++count;
src/Fixer/Casing/MagicConstantCasingFixer.php
@@ -74,11 +74,8 @@ private function getMagicConstants()
74
T_METHOD_C => '__METHOD__',
75
T_NS_C => '__NAMESPACE__',
76
CT::T_CLASS_CONSTANT => 'class',
77
+ T_TRAIT_C => '__TRAIT__',
78
];
-
79
- if (defined('T_TRAIT_C')) {
80
- $magicConstants[T_TRAIT_C] = '__TRAIT__';
81
- }
82
}
83
84
return $magicConstants;
0 commit comments