Skip to content

Commit

Permalink
Fix coveralls (#148, #149), fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
steverobbins committed Oct 31, 2018
1 parent 6c44357 commit afedfe5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ branches:
- dev

php:
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- 7.2

before_script:
- travis_retry composer self-update
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"satooshi/php-coveralls": "dev-master",
"satooshi/php-coveralls": "1.1.*",
"squizlabs/php_codesniffer": "2.*"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/MageScan/Check/Sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getSitemapFromRobotsTxt(Response $response)
{
return $this->getRequest()->findMatchInResponse(
$response->getBody()->getContents(),
'/^(?!#+)\s*Sitemap:\w+(.*)$/mi'
'/^(?!#+)\s*Sitemap:\s+(.*)$/mi'
);
}
}
21 changes: 14 additions & 7 deletions src/MageScan/Check/Version/DownloaderComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ protected function getMagentoEditionByYearAndVersion($year, $version)
'1.4.1.0',
'1.4.1.1',
'1.4.2.0',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
Expand All @@ -138,7 +139,8 @@ protected function getMagentoEditionByYearAndVersion($year, $version)
'1.6.0.0',
'1.6.1.0',
'1.6.2.0',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
Expand All @@ -147,15 +149,17 @@ protected function getMagentoEditionByYearAndVersion($year, $version)
'1.7.0.0',
'1.7.0.1',
'1.7.0.2',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
case 2013:
if (in_array($version, [
'1.8.0.0',
'1.8.1.0',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
Expand All @@ -165,7 +169,8 @@ protected function getMagentoEditionByYearAndVersion($year, $version)
'1.9.0.1',
'1.9.1.0',
'1.9.1.1',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
Expand All @@ -175,15 +180,17 @@ protected function getMagentoEditionByYearAndVersion($year, $version)
'1.9.2.0',
'1.9.2.1',
'1.9.2.2',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
case 2016:
if (in_array($version, [
'1.9.2.3',
'1.9.2.4',
])) {
])
) {
return Version::EDITION_COMMUNITY;
}
break;
Expand Down

0 comments on commit afedfe5

Please sign in to comment.