@@ -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 |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | public function visitor($visitorID, $sessionID, $setData = false) |
123 | 123 | { |
124 | - if (! $this->domain) { |
|
124 | + if (!$this->domain) { |
|
125 | 125 | $this->domain('smt'); |
126 | 126 | } |
127 | 127 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | public function agentStatus() |
140 | 140 | { |
141 | - if (! $this->domain) { |
|
141 | + if (!$this->domain) { |
|
142 | 142 | $this->domain('msgHist'); |
143 | 143 | } |
144 | 144 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | final public function retrieveHistory(Carbon $start, Carbon $end, $url = false) |
151 | 151 | { |
152 | - if (! $this->domain) { |
|
152 | + if (!$this->domain) { |
|
153 | 153 | $this->domain('engHistDomain'); |
154 | 154 | } |
155 | 155 | |
@@ -162,8 +162,8 @@ discard block |
||
162 | 162 | 'interactive' => $this->interactive, |
163 | 163 | 'ended' => $this->ended, |
164 | 164 | 'start' => [ |
165 | - 'from' => strtotime($start_str).'000', |
|
166 | - 'to' => strtotime($end_str).'000', |
|
165 | + 'from' => strtotime($start_str) . '000', |
|
166 | + 'to' => strtotime($end_str) . '000', |
|
167 | 167 | ], |
168 | 168 | ]; |
169 | 169 | if (count($this->skills)) { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | final public function retrieveMsgHistory(Carbon $start, Carbon $end, $url = false) |
179 | 179 | { |
180 | - if (! $this->domain) { |
|
180 | + if (!$this->domain) { |
|
181 | 181 | $this->domain('msgHist'); |
182 | 182 | } |
183 | 183 | |
@@ -190,8 +190,8 @@ discard block |
||
190 | 190 | 'interactive' => $this->interactive, |
191 | 191 | 'ended' => $this->ended, |
192 | 192 | 'start' => [ |
193 | - 'from' => strtotime($start_str).'000', |
|
194 | - 'to' => strtotime($end_str).'000', |
|
193 | + 'from' => strtotime($start_str) . '000', |
|
194 | + 'to' => strtotime($end_str) . '000', |
|
195 | 195 | ], |
196 | 196 | ]; |
197 | 197 | if (count($this->skills)) { |