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
8
Issue boards
Milestones
Code
Merge requests
2
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 Hürtgen
composer-phpcodesniffer-standards-plugin
Commits
63a68494
Unverified
Commit
63a68494
authored
7 years ago
by
Daniel Siepmann
Browse files
Options
Downloads
Patches
Plain Diff
TASK: Keep php 5.3 compatibility
parent
f90a77bf
Branches
Branches containing commit
1 merge request
!40
Feature: Naming
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PHPCodeSniffer/Standards/Standard/Standard.php
+2
-1
2 additions, 1 deletion
src/PHPCodeSniffer/Standards/Standard/Standard.php
with
2 additions
and
1 deletion
src/PHPCodeSniffer/Standards/Standard/Standard.php
+
2
−
1
View file @
63a68494
...
...
@@ -77,7 +77,8 @@ class Standard implements StandardInterface
{
try
{
$ruleSet
=
new
\SimpleXMLElement
(
file_get_contents
(
$ruleSetXmlPath
));
$name
=
trim
(
$ruleSet
->
attributes
()[
'name'
]);
$attributes
=
$ruleSet
->
attributes
();
$name
=
trim
(
$attributes
[
'name'
]);
if
(
$name
!==
''
)
{
return
$name
;
}
...
...
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