File tree Expand file tree Collapse file tree 3 files changed +22
-20
lines changed
Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - 5.6
5- - 7.0
6- - 7.1
4+ - 5.6
5+ - 7.0
6+ - 7.1
7+ - 7.2
78
89env :
9- matrix :
10- - COMPOSER_FLAGS="--prefer-lowest"
11- - COMPOSER_FLAGS=""
10+ matrix :
11+ - COMPOSER_FLAGS="--prefer-lowest"
12+ - COMPOSER_FLAGS=""
1213
1314before_script :
14- - travis_retry composer self-update
15- - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
15+ - travis_retry composer self-update
16+ - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
1617
1718script :
18- - phpunit --coverage-text --coverage-clover=coverage.clover
19+ - vendor/bin/ phpunit --coverage-text --coverage-clover=coverage.clover
1920
2021after_script :
21- - wget https://scrutinizer-ci.com/ocular.phar
22- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
22+ - wget https://scrutinizer-ci.com/ocular.phar
23+ - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
Original file line number Diff line number Diff line change 1414 "require" : {
1515 "php" : " >=5.5.9" ,
1616 "twilio/sdk" : " ~5.16" ,
17- "illuminate/notifications" : " ^5.1" ,
18- "illuminate/support" : " ^5.1" ,
19- "illuminate/events" : " ^5.1" ,
20- "illuminate/queue" : " ^5.1"
17+ "illuminate/notifications" : " ^5.1|^6.0 " ,
18+ "illuminate/support" : " ^5.1|^6.0 " ,
19+ "illuminate/events" : " ^5.1|^6.0 " ,
20+ "illuminate/queue" : " ^5.1|^6.0 "
2121 },
2222 "require-dev" : {
2323 "mockery/mockery" : " ^0.9.5" ,
24- "phpunit/phpunit" : " 4 .*"
24+ "phpunit/phpunit" : " 5 .*"
2525 },
2626 "autoload" : {
2727 "psr-4" : {
Original file line number Diff line number Diff line change 22
33namespace NotificationChannels \Twilio ;
44
5+ use Illuminate \Support \Arr ;
56use Illuminate \Support \ServiceProvider ;
67use Twilio \Rest \Client as TwilioService ;
78
@@ -23,14 +24,14 @@ public function boot()
2324
2425 $ this ->app ->bind (TwilioService::class, function () {
2526 $ config = $ this ->app ['config ' ]['services.twilio ' ];
26- $ account_sid = array_get ($ config , 'account_sid ' );
27- $ username = array_get ($ config , 'username ' );
27+ $ account_sid = Arr:: get ($ config , 'account_sid ' );
28+ $ username = Arr:: get ($ config , 'username ' );
2829 if (! empty ($ username )) {
29- $ password = array_get ($ config , 'password ' );
30+ $ password = Arr:: get ($ config , 'password ' );
3031
3132 return new TwilioService ($ username , $ password , $ account_sid );
3233 } else {
33- $ auth_token = array_get ($ config , 'auth_token ' );
34+ $ auth_token = Arr:: get ($ config , 'auth_token ' );
3435
3536 return new TwilioService ($ account_sid , $ auth_token );
3637 }
You can’t perform that action at this time.
0 commit comments