File tree 4 files changed +38
-3
lines changed
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 1
1
# PHP Scanner
2
2
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
+
3
9
Created by Oscar Otero
< http://oscarotero.com > < [email protected] > (MIT License)
4
10
5
11
PHP code scanner to use with [ gettext/gettext] ( https://github.com/php-gettext/Gettext )
@@ -37,3 +43,20 @@ foreach ($phpScanner->getTranslations() as $translations) {
37
43
$generator->generateFile($translations, "locales/{$domain}.po");
38
44
}
39
45
```
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 19
19
},
20
20
"require" : {
21
21
"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 "
24
24
},
25
25
"require-dev" : {
26
26
"phpunit/phpunit" : " ^8.0" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testPhpCodeScanner()
22
22
23
23
$ scanner ->scanFile ($ file );
24
24
25
- list ($ domain1 , $ domain2 , $ domain3 ) = $ scanner ->getTranslations ();
25
+ list ($ domain1 , $ domain2 , $ domain3 ) = array_values ( $ scanner ->getTranslations () );
26
26
27
27
$ this ->assertCount (6 , $ domain1 );
28
28
$ this ->assertCount (4 , $ domain2 );
You can’t perform that action at this time.
0 commit comments