@@ -4,24 +4,24 @@ |
||
4 | 4 | |
5 | 5 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
6 | 6 | { |
7 | - const CONFIG_PATH = __DIR__ . '/../config/live-engage-laravel.php'; |
|
7 | + const CONFIG_PATH = __DIR__ . '/../config/live-engage-laravel.php'; |
|
8 | 8 | |
9 | - public function boot() |
|
10 | - { |
|
11 | - $this->publishes([ |
|
12 | - self::CONFIG_PATH => config_path('live-engage-laravel.php'), |
|
13 | - ], 'config'); |
|
14 | - } |
|
9 | + public function boot() |
|
10 | + { |
|
11 | + $this->publishes([ |
|
12 | + self::CONFIG_PATH => config_path('live-engage-laravel.php'), |
|
13 | + ], 'config'); |
|
14 | + } |
|
15 | 15 | |
16 | - public function register() |
|
17 | - { |
|
18 | - $this->mergeConfigFrom( |
|
19 | - self::CONFIG_PATH, |
|
20 | - 'live-engage-laravel' |
|
21 | - ); |
|
16 | + public function register() |
|
17 | + { |
|
18 | + $this->mergeConfigFrom( |
|
19 | + self::CONFIG_PATH, |
|
20 | + 'live-engage-laravel' |
|
21 | + ); |
|
22 | 22 | |
23 | - $this->app->bind('live-engage-laravel', function () { |
|
24 | - return new LiveEngageLaravel(); |
|
25 | - }); |
|
26 | - } |
|
23 | + $this->app->bind('live-engage-laravel', function () { |
|
24 | + return new LiveEngageLaravel(); |
|
25 | + }); |
|
26 | + } |
|
27 | 27 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class LiveEngageLaravel extends Facade |
8 | 8 | { |
9 | - protected static function getFacadeAccessor() |
|
10 | - { |
|
11 | - return 'live-engage-laravel'; |
|
12 | - } |
|
9 | + protected static function getFacadeAccessor() |
|
10 | + { |
|
11 | + return 'live-engage-laravel'; |
|
12 | + } |
|
13 | 13 | } |
@@ -6,14 +6,14 @@ |
||
6 | 6 | |
7 | 7 | class LiveEngageException extends Exception |
8 | 8 | { |
9 | - public function __construct($message, $code = 0, Exception $previous = null) |
|
10 | - { |
|
11 | - parent::__construct($message, $code, $previous); |
|
12 | - } |
|
9 | + public function __construct($message, $code = 0, Exception $previous = null) |
|
10 | + { |
|
11 | + parent::__construct($message, $code, $previous); |
|
12 | + } |
|
13 | 13 | |
14 | - // custom string representation of object |
|
15 | - public function __toString() { |
|
16 | - return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
|
17 | - } |
|
14 | + // custom string representation of object |
|
15 | + public function __toString() { |
|
16 | + return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
|
17 | + } |
|
18 | 18 | |
19 | 19 | } |
20 | 20 | \ No newline at end of file |
@@ -255,17 +255,17 @@ |
||
255 | 255 | $secret = config("{$this->config}.token_secret"); |
256 | 256 | |
257 | 257 | $stack = HandlerStack::create(); |
258 | - $auth = new Oauth1([ |
|
259 | - 'consumer_key' => $consumer_key, |
|
260 | - 'consumer_secret' => $consumer_secret, |
|
261 | - 'token' => $token, |
|
262 | - 'token_secret' => $secret, |
|
263 | - 'signature_method'=> Oauth1::SIGNATURE_METHOD_HMAC |
|
258 | + $auth = new Oauth1([ |
|
259 | + 'consumer_key' => $consumer_key, |
|
260 | + 'consumer_secret' => $consumer_secret, |
|
261 | + 'token' => $token, |
|
262 | + 'token_secret' => $secret, |
|
263 | + 'signature_method'=> Oauth1::SIGNATURE_METHOD_HMAC |
|
264 | 264 | ]); |
265 | 265 | $stack->push($auth); |
266 | 266 | |
267 | 267 | $client = new Client([ |
268 | - 'handler' => $stack |
|
268 | + 'handler' => $stack |
|
269 | 269 | ]); |
270 | 270 | |
271 | 271 | $args = [ |