Completed
Push — master ( 7873ee...3656be )
by Mike
03:26
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/Interfaces/EPInterface.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param null $data
59 59
      * @return mixed
60 60
      */
61
-    public function execute($data = null);
61
+    public function execute($data = NULL);
62 62
 
63 63
     /**
64 64
      * Get the module that is set on the EntryPoint
Please login to merge, or discard this patch.
src/EntryPoint/Abstracts/AbstractEntryPoint.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * Whether or not Authentication is Required
17 17
      * @var bool
18 18
      */
19
-    protected $_AUTH_REQUIRED = true;
19
+    protected $_AUTH_REQUIRED = TRUE;
20 20
 
21 21
     /**
22 22
      * The URL for the EntryPoint
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
     /**
205 205
      * @inheritdoc
206 206
      */
207
-    public function execute($data = null){
208
-        if ($data!==null){
207
+    public function execute($data = NULL){
208
+        if ($data!==NULL){
209 209
             $this->configureData($data);
210 210
         }
211 211
         $this->Request->send();
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         if (strpos($UrlArray[0],"$") !== FALSE){
268 268
             throw new InvalidURLException(get_called_class(),"Configured URL is ".$this->Url);
269 269
         }
270
-        return true;
270
+        return TRUE;
271 271
     }
272 272
 
273 273
     /**
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         if ($urlVarCount!==$optionCount){
283 283
             throw new RequiredOptionsException(get_called_class(),"URL requires $urlVarCount options.");
284 284
         }
285
-        return true;
285
+        return TRUE;
286 286
     }
287 287
 
288 288
     /**
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
                 throw new RequiredDataException(get_called_class(),"Missing data for $errors");
308 308
             }
309 309
         }
310
-        return true;
310
+        return TRUE;
311 311
     }
312 312
 
313 313
     /**
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.