Test Failed
Branch development (5e44f6)
by Robert
06:31
created
src/LiveEngageLaravel.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -280,10 +280,10 @@
 block discarded – undo
280 280
 	/**
281 281
 	 * chat function
282 282
 	 *
283
-     * @codeCoverageIgnore
284
-     *
285
-     * @todo connect this to the server chat api - this function currently does nothing.
286
-     */
283
+	 * @codeCoverageIgnore
284
+	 *
285
+	 * @todo connect this to the server chat api - this function currently does nothing.
286
+	 */
287 287
 	public function chat()
288 288
 	{
289 289
 		$this->domain('conversationVep');
Please login to merge, or discard this patch.
src/LiveEngageRequest.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,9 @@  discard block
 block discarded – undo
140 140
 			'body' => json_encode($payload ?: [])
141 141
 		];
142 142
 
143
-		if ($noauth) unset($args['auth']);
143
+		if ($noauth) {
144
+			unset($args['auth']);
145
+		}
144 146
 
145 147
 		// @codeCoverageIgnoreStart
146 148
 		try {
@@ -174,7 +176,9 @@  discard block
 block discarded – undo
174 176
 	 */
175 177
 	public function V2($url, $method, $payload = null, $headers = null, $noauth = false)
176 178
 	{
177
-		if (!($token = session('lptoken', $this->bearer))) $this->login();
179
+		if (!($token = session('lptoken', $this->bearer))) {
180
+			$this->login();
181
+		}
178 182
 
179 183
 		$client = new Client();
180 184
 		$args = [
Please login to merge, or discard this patch.
src/Models/Conversation.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 	{
88 88
 		$matches = [];
89 89
 		$pattern = '/[.A-Za-z0-9_-]+@[A-Za-z0-9_-]+\.([A-Za-z0-9_-][.A-Za-z0-9_]+)/'; //regex for pattern of e-mail address
90
-        preg_match_all($pattern, $this->textTranscript, $matches);
91
-        return count($matches) ? $matches[0] : null;
90
+		preg_match_all($pattern, $this->textTranscript, $matches);
91
+		return count($matches) ? $matches[0] : null;
92 92
 	}
93 93
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 	{
81 81
 		$info = $this->info->attributes;
82 82
 		$info['transcript'] = $this->textTranscript;
83
-		return ((object)$info);
83
+		return ((object) $info);
84 84
 	}
85 85
 
86 86
 	public function extractEmail()
Please login to merge, or discard this patch.