浏览代码

Fix a syntax issue

FusionPBX 10 月之前
父节点
当前提交
4341a97e69
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 5 5
      resources/classes/transcribe_azure.php
  2. 1 1
      resources/classes/transcribe_watson.php

+ 5 - 5
resources/classes/transcribe_azure.php

@@ -185,10 +185,10 @@ if (!class_exists('transcribe_azure')) {
 
 				//set the request method to POST
 				curl_setopt($ch, CURLOPT_POST, true);
-				
+
 				//send the http headers
 				curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
-				
+
 				//return the response as a string instead of outputting it directly
 				curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
@@ -197,7 +197,7 @@ if (!class_exists('transcribe_azure')) {
 
 				//close the handle
 				curl_close($ch);
- 
+
 				//if a token was returned then use it to make the transcribe request
 				if (empty($access_token)) {
 					return false;
@@ -218,7 +218,7 @@ if (!class_exists('transcribe_azure')) {
 
 					//send the http headers
 					curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
-					
+
 					//prepare to send the file or audio
 					if (file_exists($this->path.'/'.$this->filename)) {
 						//send the file using
@@ -226,7 +226,7 @@ if (!class_exists('transcribe_azure')) {
 					}
 					elseif (!empty($this->audio_string)) {
 						//send the audio from as a string
-						curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string));
+						curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string);
 					}
 					else {
 						//audio file or string not found

+ 1 - 1
resources/classes/transcribe_watson.php

@@ -204,7 +204,7 @@ if (!class_exists('transcribe_watson')) {
 			}
 			elseif (!empty($this->audio_string)) {
 				//send the audio from as a string
-				curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string));
+				curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string);
 			}
 			else {
 				//audio file or string not found