Test Failed
Branch master (19e1ba)
by Robert
05:31 queued 03:10
created
src/LiveEngageLaravel.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exceptions/LiveEngageException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Collections/EngagementHistory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Collections/ConversationHistory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.