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
27c53700
There was an error fetching the commit references. Please try again later.
Commit
27c53700
authored
7 years ago
by
Daniel Hürtgen
Browse files
Options
Downloads
Patches
Plain Diff
TASK: Provide status messages while installing standards
parent
ecb4fea6
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 @
27c53700
...
...
@@ -100,11 +100,14 @@ class Installer extends LibraryInstaller
$filesystem
=
new
SymfonyFilesystem
();
$sourceStandards
=
$this
->
getSourceStandards
(
$package
);
$destStandardsBasePath
=
$this
->
getPHPCodeSnifferStandardsBasePath
(
$repo
);
$this
->
io
->
writeError
(
' Installing PHP-CodeSniffer Standards:'
,
false
);
foreach
(
$sourceStandards
as
$sourceStandard
)
{
$this
->
io
->
writeError
(
sprintf
(
' <info>%s</info>'
,
$sourceStandard
->
getName
()));
$sourcePath
=
$sourceStandard
->
getPath
();
$destPath
=
$destStandardsBasePath
.
DIRECTORY_SEPARATOR
.
$sourceStandard
->
getName
();
$filesystem
->
mirror
(
$sourcePath
,
$destPath
,
null
,
array
(
'override'
=>
$override
));
}
$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