@@ -4,7 +4,7 @@ discard block |
||
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 | 9 | public function boot() |
10 | 10 | { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | 'live-engage-laravel' |
21 | 21 | ); |
22 | 22 | |
23 | - $this->app->bind('live-engage-laravel', function () { |
|
23 | + $this->app->bind('live-engage-laravel', function() { |
|
24 | 24 | return new LiveEngageLaravel(); |
25 | 25 | }); |
26 | 26 | } |
@@ -14,6 +14,6 @@ |
||
14 | 14 | // custom string representation of object |
15 | 15 | public function __toString() |
16 | 16 | { |
17 | - return __CLASS__.": [{$this->code}]: {$this->message}\n"; |
|
17 | + return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
|
18 | 18 | } |
19 | 19 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public function find($engagementID) |
21 | 21 | { |
22 | - $result = $this->filter(function ($value, $key) use ($engagementID) { |
|
22 | + $result = $this->filter(function($value, $key) use ($engagementID) { |
|
23 | 23 | return $value->info->sessionId == $engagementID; |
24 | 24 | }); |
25 | 25 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | public function next() |
30 | 30 | { |
31 | - if (! $this->instance) { |
|
31 | + if (!$this->instance) { |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function prev() |
53 | 53 | { |
54 | - if (! $this->instance) { |
|
54 | + if (!$this->instance) { |
|
55 | 55 | return false; |
56 | 56 | } |
57 | 57 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public function find($engagementID) |
21 | 21 | { |
22 | - $result = $this->filter(function ($value, $key) use ($engagementID) { |
|
22 | + $result = $this->filter(function($value, $key) use ($engagementID) { |
|
23 | 23 | return $value->info->conversationId == $engagementID; |
24 | 24 | }); |
25 | 25 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | public function next() |
30 | 30 | { |
31 | - if (! $this->instance) { |
|
31 | + if (!$this->instance) { |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function prev() |
53 | 53 | { |
54 | - if (! $this->instance) { |
|
54 | + if (!$this->instance) { |
|
55 | 55 | return false; |
56 | 56 | } |
57 | 57 |
@@ -150,8 +150,8 @@ discard block |
||
150 | 150 | 'interactive' => $this->interactive, |
151 | 151 | 'ended' => $this->ended, |
152 | 152 | 'start' => [ |
153 | - 'from' => strtotime($start_str).'000', |
|
154 | - 'to' => strtotime($end_str).'000', |
|
153 | + 'from' => strtotime($start_str) . '000', |
|
154 | + 'to' => strtotime($end_str) . '000', |
|
155 | 155 | ], |
156 | 156 | ]; |
157 | 157 | if (count($this->skills)) { |
@@ -176,8 +176,8 @@ discard block |
||
176 | 176 | 'interactive' => $this->interactive, |
177 | 177 | 'ended' => $this->ended, |
178 | 178 | 'start' => [ |
179 | - 'from' => strtotime($start_str).'000', |
|
180 | - 'to' => strtotime($end_str).'000', |
|
179 | + 'from' => strtotime($start_str) . '000', |
|
180 | + 'to' => strtotime($end_str) . '000', |
|
181 | 181 | ], |
182 | 182 | ]; |
183 | 183 | if (count($this->skills)) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | public function state($state = 'ONLINE') |
21 | 21 | { |
22 | - $result = $this->filter(function ($value, $key) use ($state) { |
|
22 | + $result = $this->filter(function($value, $key) use ($state) { |
|
23 | 23 | return strtolower($value->currentStatus) == strtolower($state); |
24 | 24 | }); |
25 | 25 |