Passed
Push — master ( 54d9ab...d9df60 )
by Mike
02:54
created
src/EntryPoint/Abstracts/PUT/AbstractPutEntryPoint.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/Abstracts/GET/AbstractGetEntryPoint.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/Abstracts/POST/AbstractPostEntryPoint.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/Abstracts/AbstractEntryPoint.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * Whether or not Authentication is Required
45 45
      * @var bool
46 46
      */
47
-    protected $_AUTH_REQUIRED = true;
47
+    protected $_AUTH_REQUIRED = TRUE;
48 48
 
49 49
     /**
50 50
      * The URL for the EntryPoint
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         if (strpos($UrlArray[0],"$") !== FALSE){
321 321
             throw new InvalidURLException(get_called_class(),"Configured URL is ".$this->Url);
322 322
         }
323
-        return true;
323
+        return TRUE;
324 324
     }
325 325
 
326 326
     /**
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
         if ($urlVarCount>$optionCount){
336 336
             throw new RequiredOptionsException(get_called_class(),"URL requires $urlVarCount options, only $optionCount provided.");
337 337
         }
338
-        return true;
338
+        return TRUE;
339 339
     }
340 340
 
341 341
     /**
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         if (!empty($this->_REQUIRED_DATA)){
351 351
             $this->verifyRequiredData();
352 352
         }
353
-        return true;
353
+        return TRUE;
354 354
     }
355 355
 
356 356
     /**
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         if (gettype($this->Data) !== $this->_DATA_TYPE) {
363 363
             throw new RequiredDataException(get_called_class(),"Valid DataType is {$this->_DATA_TYPE}");
364 364
         }
365
-        return true;
365
+        return TRUE;
366 366
     }
367 367
 
368 368
     /**
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
         if (count($errors)>0){
381 381
             throw new RequiredDataException(get_called_class(),"Missing data for ".implode(",",$errors));
382 382
         }
383
-        return true;
383
+        return TRUE;
384 384
     }
385 385
 
386 386
     /**
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/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/Response/File.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 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)){
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.