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
75e55841
Commit
75e55841
authored
7 years ago
by
Daniel Hürtgen
Browse files
Options
Downloads
Patches
Plain Diff
TASK: Provide status messages while removing standards
parent
27c53700
2 merge requests
!21
Release 0.3.0
,
!20
Feature/17 write status messages to stdout
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Installer.php
+3
-0
3 additions, 0 deletions
src/Installer.php
with
3 additions
and
0 deletions
src/Installer.php
+
3
−
0
View file @
75e55841
...
...
@@ -119,14 +119,17 @@ class Installer extends LibraryInstaller
{
$sourceStandards
=
$this
->
getSourceStandards
(
$package
);
$destinationStandards
=
$this
->
getDestinationStandards
(
$repo
);
$this
->
io
->
writeError
(
' Removing PHP-CodeSniffer Standards:'
,
false
);
foreach
(
$sourceStandards
as
$sourceStandard
)
{
if
(
!
$destinationStandards
->
hasStandard
(
$sourceStandard
))
{
continue
;
}
$this
->
io
->
writeError
(
sprintf
(
' <info>%s</info>'
,
$sourceStandard
->
getName
()));
$destinationStandard
=
$destinationStandards
->
getStandard
(
$sourceStandard
);
$this
->
filesystem
->
removeDirectory
(
$destinationStandard
->
getPath
());
}
$this
->
io
->
writeError
(
''
);
}
/**
...
...
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