File tree Expand file tree Collapse file tree 4 files changed +38
-3
lines changed Expand file tree Collapse file tree 4 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+
39Created by Oscar Otero
< http://oscarotero.com > < [email protected] > (MIT License)
410
511PHP 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments