Completed
Push — master ( c7c88d...7873ee )
by Mike
02:24
created
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/DELETE/AbstractDeleteEntryPoint.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         parent::__construct($url, $options);
15 15
     }
16 16
 
17
-    public function execute($data = null) {
17
+    public function execute($data = NULL) {
18 18
         parent::execute($data);
19 19
         $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject()));
20 20
         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
@@ -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/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/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/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/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/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.