Passed
Branch master (d207f1)
by Robert
03:30
created
src/Collections/EngagementHistory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	
23 23
 	public function find($engagementID)
24 24
 	{
25
-		$result = $this->filter(function ($value, $key) use ($engagementID) {
25
+		$result = $this->filter(function($value, $key) use ($engagementID) {
26 26
 			return $value->info->sessionId == $engagementID;
27 27
 		});
28 28
 		
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	public function next()
33 33
 	{
34
-		if (! $this->instance) {
34
+		if (!$this->instance) {
35 35
 			return false;
36 36
 		}
37 37
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 	public function prev()
69 69
 	{
70
-		if (! $this->instance) {
70
+		if (!$this->instance) {
71 71
 			return false;
72 72
 		}
73 73
 
Please login to merge, or discard this patch.
src/Collections/Humans.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 		
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
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	
23 23
 	public function find($engagementID)
24 24
 	{
25
-		$result = $this->filter(function ($value, $key) use ($engagementID) {
25
+		$result = $this->filter(function($value, $key) use ($engagementID) {
26 26
 			return $value->info->conversationId == $engagementID;
27 27
 		});
28 28
 		
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	public function next()
33 33
 	{
34
-		if (! $this->instance) {
34
+		if (!$this->instance) {
35 35
 			return false;
36 36
 		}
37 37
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
 	public function prev()
67 67
 	{
68
-		if (! $this->instance) {
68
+		if (!$this->instance) {
69 69
 			return false;
70 70
 		}
71 71
 
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/LiveEngageLaravel.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,9 @@
 block discarded – undo
339 339
 	
340 340
 	private function requestV2($url, $method, $payload = false)
341 341
 	{
342
-		if (!$this->bearer) $this->login();
342
+		if (!$this->bearer) {
343
+			$this->login();
344
+		}
343 345
 		
344 346
 		$client = new Client();
345 347
 		$args = [
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
 			'interactive' => $this->interactive,
152 152
 			'ended' => $this->ended,
153 153
 			'start' => [
154
-				'from' => strtotime($start_str).'000',
155
-				'to' => strtotime($end_str).'000',
154
+				'from' => strtotime($start_str) . '000',
155
+				'to' => strtotime($end_str) . '000',
156 156
 			],
157 157
 		];
158 158
 		if (count($this->skills)) {
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 		$data = [
177 177
 			'status' => $this->ended ? ['CLOSE'] : ['OPEN'],
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.