Completed
Push — master ( 2adfbb...9718a0 )
by Kazi Mainuddin
09:48
created
tests/SmsManagerTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Tzsk\Sms\Tests;
4 4
 
5 5
 use Tzsk\Sms\Abstracts\Driver;
6
-use Tzsk\Sms\Drivers\Textlocal;
7 6
 use Tzsk\Sms\Tests\Mocks\MockSmsManager;
8 7
 use Tzsk\Sms\Facade\Sms;
9 8
 use Tzsk\Sms\Tests\Mocks\Drivers\BarDriver;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
         $this->assertArraySubset(config('sms'), $manager->getConfig());
18 18
         $this->assertEquals(config('sms.default'), $manager->getDriver());
19
-        $this->assertArraySubset($manager->getSettings(), config('sms.drivers.'.$manager->getDriver()));
19
+        $this->assertArraySubset($manager->getSettings(), config('sms.drivers.' . $manager->getDriver()));
20 20
     }
21 21
 
22 22
     public function test_it_wont_accespt_wrong_driver()
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $manager = (new MockSmsManager())->via($gateway);
32 32
 
33 33
         $this->assertEquals($gateway, $manager->getDriver());
34
-        $this->assertArraySubset($manager->getSettings(), config('sms.drivers.'.$gateway));
34
+        $this->assertArraySubset($manager->getSettings(), config('sms.drivers.' . $gateway));
35 35
     }
36 36
 
37 37
     public function test_it_has_proper_driver_instance()
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function test_can_call_directly()
45 45
     {
46 46
         $response = (new MockSmsManager())->via('bar')
47
-            ->send('foo', function ($message) {
47
+            ->send('foo', function($message) {
48 48
                 $message->to(['baz']);
49 49
             });
50 50
         $this->assertInstanceOf(BarDriver::class, $response);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function test_can_call_from_facade()
56 56
     {
57
-        $response = Sms::via('bar')->send('foo', function ($m) {
57
+        $response = Sms::via('bar')->send('foo', function($m) {
58 58
             $m->to('baz');
59 59
         });
60 60
 
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     protected function getEnvironmentSetUp($app)
23 23
     {
24
-        $settings = require __DIR__.'/../src/Config/sms.php';
24
+        $settings = require __DIR__ . '/../src/Config/sms.php';
25 25
         $settings['drivers']['bar'] = ['key' => 'foo'];
26 26
         $settings['map']['bar'] = BarDriver::class;
27 27
 
Please login to merge, or discard this patch.
src/Provider/SmsServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
          * Configurations that needs to be done by user.
19 19
          */
20 20
         $this->publishes([
21
-            __DIR__.'/../Config/sms.php' => config_path('sms.php'),
21
+            __DIR__ . '/../Config/sms.php' => config_path('sms.php'),
22 22
         ], 'config');
23 23
 
24 24
         /**
25 25
          * Bind to service container.
26 26
          */
27
-        $this->app->bind('tzsk-sms', function () {
27
+        $this->app->bind('tzsk-sms', function() {
28 28
             return new SmsManager(config('sms'));
29 29
         });
30 30
     }
Please login to merge, or discard this patch.