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 1
1
language : php
2
2
3
3
php :
4
- - 5.6
5
- - 7.0
6
- - 7.1
4
+ - 5.6
5
+ - 7.0
6
+ - 7.1
7
+ - 7.2
7
8
8
9
env :
9
- matrix :
10
- - COMPOSER_FLAGS="--prefer-lowest"
11
- - COMPOSER_FLAGS=""
10
+ matrix :
11
+ - COMPOSER_FLAGS="--prefer-lowest"
12
+ - COMPOSER_FLAGS=""
12
13
13
14
before_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
16
17
17
18
script :
18
- - phpunit --coverage-text --coverage-clover=coverage.clover
19
+ - vendor/bin/ phpunit --coverage-text --coverage-clover=coverage.clover
19
20
20
21
after_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 14
14
"require" : {
15
15
"php" : " >=5.5.9" ,
16
16
"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 "
21
21
},
22
22
"require-dev" : {
23
23
"mockery/mockery" : " ^0.9.5" ,
24
- "phpunit/phpunit" : " 4 .*"
24
+ "phpunit/phpunit" : " 5 .*"
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change 2
2
3
3
namespace NotificationChannels \Twilio ;
4
4
5
+ use Illuminate \Support \Arr ;
5
6
use Illuminate \Support \ServiceProvider ;
6
7
use Twilio \Rest \Client as TwilioService ;
7
8
@@ -23,14 +24,14 @@ public function boot()
23
24
24
25
$ this ->app ->bind (TwilioService::class, function () {
25
26
$ 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 ' );
28
29
if (! empty ($ username )) {
29
- $ password = array_get ($ config , 'password ' );
30
+ $ password = Arr:: get ($ config , 'password ' );
30
31
31
32
return new TwilioService ($ username , $ password , $ account_sid );
32
33
} else {
33
- $ auth_token = array_get ($ config , 'auth_token ' );
34
+ $ auth_token = Arr:: get ($ config , 'auth_token ' );
34
35
35
36
return new TwilioService ($ account_sid , $ auth_token );
36
37
}
You can’t perform that action at this time.
0 commit comments