Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
composer-phpcodesniffer-standards-plugin
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Daniel Siepmann
composer-phpcodesniffer-standards-plugin
Commits
e366a408
Unverified
Commit
e366a408
authored
7 years ago
by
Daniel Siepmann
Browse files
Options
Downloads
Patches
Plain Diff
TASK: Refactor to save else path
* Do not use else, as hinted by phpmd, use return instead.
parent
d504f6e2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PHPCodeSniffer/Standards.php
+2
-4
2 additions, 4 deletions
src/PHPCodeSniffer/Standards.php
with
2 additions
and
4 deletions
src/PHPCodeSniffer/Standards.php
+
2
−
4
View file @
e366a408
...
...
@@ -80,12 +80,10 @@ class Standards implements \Iterator
*/
protected
function
getStandardName
(
$standard
)
{
if
(
$standard
instanceof
Standard
)
{
$standard
=
$standard
->
getName
();
}
else
{
$standard
=
(
string
)
$standard
;
return
$standard
->
getName
();
}
return
$standard
;
return
(
string
)
$standard
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment