Test Setup Failed
Pull Request — master (#4)
by Raí
05:17
created
Bludata/Doctrine/Common/Helpers/functions.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     function register_annotation_file(string $file)
16 16
     {
17 17
         if (!is_file($file)) {
18
-            return false;
18
+            return FALSE;
19 19
         }
20 20
 
21 21
         return AnnotationRegistry::registerFile($file);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  * Retrieve all annotations of a giving object
27 27
  */
28 28
 if (!function_exists('get_class_annotations')) {
29
-    function get_class_annotations($element, $annotation = null)
29
+    function get_class_annotations($element, $annotation = NULL)
30 30
     {
31 31
         $class = $element;
32 32
         if (is_object($element)) {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
  * Retrieve annotations of a especific property of a giving object
45 45
  */
46 46
 if (!function_exists('get_property_annotations')) {
47
-    function get_property_annotations($element, $property = null, $annotation = null)
47
+    function get_property_annotations($element, $property = NULL, $annotation = NULL)
48 48
     {
49 49
         $class = $element;
50 50
         if (is_object($element) && !($element instanceof ReflectionClass)) {
Please login to merge, or discard this patch.
Bludata/Framework/Laravel/Helpers/functions.php 1 patch
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -298,6 +298,4 @@
 block discarded – undo
298 298
      */
299 299
     function bdEntity(string $className, string $version = 'v1', boolean $abort = true)
300 300
     {
301
-        return app(bdEntityClass($className, $version, $abort));
302
-    }
303
-}
301
+        return app(bdEntityClass($className, $version, $abort
304 302
\ No newline at end of file
Please login to merge, or discard this patch.
Bludata/Helpers/CurlHelper.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
     protected function exec()
25 25
     {
26 26
         curl_setopt($this->init, CURLOPT_URL, trim($this->baseUrl.$this->posFixUrl));
27
-        curl_setopt($this->init, CURLOPT_RETURNTRANSFER, true);
27
+        curl_setopt($this->init, CURLOPT_RETURNTRANSFER, TRUE);
28 28
         curl_setopt($this->init, CURLOPT_HTTPHEADER, $this->headers);
29
-        curl_setopt($this->init, CURLOPT_SSL_VERIFYPEER, false);
29
+        curl_setopt($this->init, CURLOPT_SSL_VERIFYPEER, FALSE);
30 30
 
31 31
         foreach ($this->options as $key => $value) {
32 32
             curl_setopt($this->init, $key, $value);
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
         $this->info = curl_getinfo($this->init);
38 38
     }
39 39
 
40
-    public function send($close = true)
40
+    public function send($close = TRUE)
41 41
     {
42 42
         $this->exec();
43 43
 
44
-        if ($close === true) {
44
+        if ($close === TRUE) {
45 45
             curl_close($this->init);
46 46
         }
47 47
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     public function post(array $data)
86 86
     {
87
-        $this->options[CURLOPT_POST] = true;
87
+        $this->options[CURLOPT_POST] = TRUE;
88 88
         $this->options[CURLOPT_POSTFIELDS] = json_encode($data);
89 89
 
90 90
         return $this;
Please login to merge, or discard this patch.