Completed
Push — master ( 3656be...0c0759 )
by Mike
03:02
created
src/Response/Abstracts/AbstractResponse.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@
 block discarded – undo
70 70
     protected function checkErrors($curlRequest){
71 71
         if (curl_errno($curlRequest) !== CURLE_OK) {
72 72
             $this->error = curl_error($curlRequest);
73
-            return false;
73
+            return FALSE;
74 74
         }
75
-        return true;
75
+        return TRUE;
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/Response/File.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     protected $destinationPath;
20 20
 
21
-    public function __construct($curlResponse, $curlRequest,$destination = null) {
21
+    public function __construct($curlResponse, $curlRequest,$destination = NULL) {
22 22
         parent::__construct($curlResponse, $curlRequest);
23 23
         $this->extractFileName();
24 24
         if (!empty($destination)) {
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * Configure the Destination path to store the File response
32 32
      * @param null $destination
33 33
      */
34
-    protected function setupDestination($destination = null){
34
+    protected function setupDestination($destination = NULL){
35 35
         if (empty($destination)){
36 36
             $destination = sys_get_temp_dir().'/SugarAPI';
37 37
             if (!file_exists($destination)){
Please login to merge, or discard this patch.
src/Response/JSON.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * @inheritdoc
19 19
      */
20
-    public function getBody($asArray = true) {
20
+    public function getBody($asArray = TRUE) {
21 21
         return json_decode($this->body,$asArray);
22 22
     }
23 23
 
Please login to merge, or discard this patch.
src/EntryPoint/Abstracts/GET/AbstractGetFileEntryPoint.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@
 block discarded – undo
12 12
      * The directory in which to download the File
13 13
      * @var string
14 14
      */
15
-    protected $downloadDir = null;
15
+    protected $downloadDir = NULL;
16 16
 
17 17
     public function __construct($url, array $options = array()) {
18 18
         $this->setRequest(new GETFile());
19 19
         parent::__construct($url, $options);
20 20
     }
21 21
 
22
-    public function execute($data = null) {
22
+    public function execute($data = NULL) {
23 23
         parent::execute($data);
24 24
         $this->setResponse(new FileResponse($this->Request->getResponse(),$this->Request->getCurlObject(),$this->downloadDir));
25 25
         return $this;
Please login to merge, or discard this patch.
src/EntryPoint/Abstracts/POST/AbstractPostFileEntryPoint.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         parent::__construct($url, $options);
14 14
     }
15 15
 
16
-    public function execute($data = null) {
16
+    public function execute($data = NULL) {
17 17
         parent::execute($data);
18 18
         $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject()));
19 19
         return $this;
Please login to merge, or discard this patch.
src/EntryPoint/POST/ModuleRecordFileField.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     protected $_REQUIRED_DATA = array(
24 24
         'format' => 'sugar-html-json',
25
-        'delete_if_fails' => false
25
+        'delete_if_fails' => FALSE
26 26
     );
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
src/EntryPoint/POST/Oauth2Token.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class OAuth2Token extends AbstractPostEntryPoint {
8 8
 
9
-    protected $_AUTH_REQUIRED = false;
9
+    protected $_AUTH_REQUIRED = FALSE;
10 10
     protected $_URL = 'oauth2/token';
11 11
     protected $_REQUIRED_DATA = array(
12
-        'username' => null,
13
-        'password' => null,
12
+        'username' => NULL,
13
+        'password' => NULL,
14 14
         'grant_type' => 'password',
15
-        'client_id' => null,
16
-        'client_secret' => null,
17
-        'platform' => null
15
+        'client_id' => NULL,
16
+        'client_secret' => NULL,
17
+        'platform' => NULL
18 18
     );
19 19
     protected $_DATA_TYPE = 'array';
20 20
 
Please login to merge, or discard this patch.
src/EntryPoint/POST/RefreshToken.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
      */
10 10
     protected $_REQUIRED_DATA = array(
11 11
         'grant_type' => 'refresh_token',
12
-        'refresh_token' => null,
13
-        'client_id' => null,
14
-        'client_secret' => null
12
+        'refresh_token' => NULL,
13
+        'client_id' => NULL,
14
+        'client_secret' => NULL
15 15
     );
16 16
 
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/EntryPoint/POST/Bulk.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * @inheritdoc
21 21
      */
22 22
     protected $_REQUIRED_DATA = array(
23
-        'requests' => null
23
+        'requests' => NULL
24 24
     );
25 25
 
26 26
     private $bulkRequest = array(
Please login to merge, or discard this patch.