Skip to content

Commit 95d871b

Browse files
committed
updated dependencies, added badges
1 parent 72a4c98 commit 95d871b

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 7.2
6+
- 7.3
7+
8+
before_install:
9+
- composer install
10+
11+
script:
12+
- composer test

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# PHP Scanner
22

3+
[![Latest Version on Packagist][ico-version]][link-packagist]
4+
[![Software License][ico-license]](LICENSE)
5+
[![Build Status][ico-travis]][link-travis]
6+
[![Quality Score][ico-scrutinizer]][link-scrutinizer]
7+
[![Total Downloads][ico-downloads]][link-downloads]
8+
39
Created by Oscar Otero <http://oscarotero.com> <[email protected]> (MIT License)
410

511
PHP code scanner to use with [gettext/gettext](https://github.com/php-gettext/Gettext)
@@ -37,3 +43,20 @@ foreach ($phpScanner->getTranslations() as $translations) {
3743
$generator->generateFile($translations, "locales/{$domain}.po");
3844
}
3945
```
46+
47+
---
48+
49+
Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes and [CONTRIBUTING](CONTRIBUTING.md) for contributing details.
50+
51+
The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.
52+
53+
[ico-version]: https://img.shields.io/packagist/v/gettext/php-scanner.svg?style=flat-square
54+
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
55+
[ico-travis]: https://img.shields.io/travis/php-gettext/PHP-Scanner/master.svg?style=flat-square
56+
[ico-scrutinizer]: https://img.shields.io/scrutinizer/g/php-gettext/PHP-Scanner.svg?style=flat-square
57+
[ico-downloads]: https://img.shields.io/packagist/dt/gettext/php-scanner.svg?style=flat-square
58+
59+
[link-packagist]: https://packagist.org/packages/gettext/php-scanner
60+
[link-travis]: https://travis-ci.org/php-gettext/PHP-Scanner
61+
[link-scrutinizer]: https://scrutinizer-ci.com/g/php-gettext/PHP-Scanner
62+
[link-downloads]: https://packagist.org/packages/gettext/php-scanner

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
},
2020
"require": {
2121
"php": "^7.2",
22-
"gettext/gettext": "dev-v5-dev",
23-
"nikic/php-parser": "^4.2"
22+
"nikic/php-parser": "^4.2",
23+
"gettext/gettext": "^5.0"
2424
},
2525
"require-dev": {
2626
"phpunit/phpunit": "^8.0",

tests/PhpScannerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testPhpCodeScanner()
2222

2323
$scanner->scanFile($file);
2424

25-
list($domain1, $domain2, $domain3) = $scanner->getTranslations();
25+
list($domain1, $domain2, $domain3) = array_values($scanner->getTranslations());
2626

2727
$this->assertCount(6, $domain1);
2828
$this->assertCount(4, $domain2);

0 commit comments

Comments
 (0)