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
f64a0f97
Commit
f64a0f97
authored
7 years ago
by
Daniel Hürtgen
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #19 from higidi/bugfix/18-Installer_isInstalled-seems-not-to-work
Bugfix/18 installer is installed seems not to work
parents
ecb4fea6
817f0dbe
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/Installer.php
+4
-1
4 additions, 1 deletion
src/Installer.php
with
4 additions
and
1 deletion
src/Installer.php
+
4
−
1
View file @
f64a0f97
...
...
@@ -43,6 +43,9 @@ class Installer extends LibraryInstaller
public
function
isInstalled
(
InstalledRepositoryInterface
$repo
,
PackageInterface
$package
)
{
$isInstalled
=
parent
::
isInstalled
(
$repo
,
$package
);
if
(
!
$isInstalled
)
{
return
$isInstalled
;
}
$sourceStandards
=
$this
->
getSourceStandards
(
$package
);
$destinationStandards
=
$this
->
getDestinationStandards
(
$repo
);
...
...
@@ -160,7 +163,7 @@ class Installer extends LibraryInstaller
protected
function
compareStandards
(
Standard
$source
,
Standard
$destination
)
{
return
$source
->
getName
()
===
$destination
->
getName
()
&&
sha1
(
$source
->
getRuleSetXmlPath
())
===
sha1
(
$destination
->
getRuleSetXmlPath
());
&&
sha1
_file
(
$source
->
getRuleSetXmlPath
())
===
sha1
_file
(
$destination
->
getRuleSetXmlPath
());
}
/**
...
...
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