@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | public function visitor($visitorID, $sessionID, $setData = false) |
109 | 109 | { |
110 | - if (! $this->domain) { |
|
110 | + if (!$this->domain) { |
|
111 | 111 | $this->domain('smt'); |
112 | 112 | } |
113 | 113 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | public function agentStatus() |
126 | 126 | { |
127 | - if (! $this->domain) { |
|
127 | + if (!$this->domain) { |
|
128 | 128 | $this->domain('msgHist'); |
129 | 129 | } |
130 | 130 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | final public function retrieveHistory(Carbon $start, Carbon $end, $url = false) |
137 | 137 | { |
138 | - if (! $this->domain) { |
|
138 | + if (!$this->domain) { |
|
139 | 139 | $this->domain('engHistDomain'); |
140 | 140 | } |
141 | 141 | |
@@ -148,8 +148,8 @@ discard block |
||
148 | 148 | 'interactive' => true, |
149 | 149 | 'ended' => true, |
150 | 150 | 'start' => [ |
151 | - 'from' => strtotime($start_str).'000', |
|
152 | - 'to' => strtotime($end_str).'000', |
|
151 | + 'from' => strtotime($start_str) . '000', |
|
152 | + 'to' => strtotime($end_str) . '000', |
|
153 | 153 | ], |
154 | 154 | ]; |
155 | 155 | if (count($this->skills)) { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | final public function retrieveMsgHistory(Carbon $start, Carbon $end, $url = false) |
165 | 165 | { |
166 | - if (! $this->domain) { |
|
166 | + if (!$this->domain) { |
|
167 | 167 | $this->domain('msgHist'); |
168 | 168 | } |
169 | 169 | |
@@ -176,8 +176,8 @@ discard block |
||
176 | 176 | 'interactive' => true, |
177 | 177 | 'ended' => true, |
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)) { |
@@ -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 |