| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function register(Application $app) |
||
| 20 | { |
||
| 21 | if (!isset($app['sms.handler.from'])) { |
||
| 22 | $app['sms.handler.from'] = 'Apiary'; |
||
| 23 | } |
||
| 24 | $app['sms.handler'] = $app->share(function () use ($app) { |
||
| 25 | $lookupClient = new \Lookups_Services_Twilio($app['sms.handler.twilio_sid'], |
||
| 26 | $app['sms.handler.twilio_auth_token']); |
||
| 27 | $client = new \Services_Twilio($app['sms.handler.twilio_sid'], |
||
| 28 | $app['sms.handler.twilio_auth_token']); |
||
| 29 | return new TwilioSmsHandler($lookupClient, $client); |
||
| 30 | }); |
||
| 31 | } |
||
| 32 | |||
| 39 |
Below you find some examples: