Test Setup Failed
Pull Request — master (#4)
by Raí
11:27 queued 04:08
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/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.
Bludata/Framework/Laravel/Helpers/functions.php 1 patch
Upper-Lower-Casing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     function register_annotation_file(string $file)
14 14
     {
15 15
         if (!is_file($file)) {
16
-            return false;
16
+            return FALSE;
17 17
         }
18 18
 
19 19
         return AnnotationRegistry::registerFile($file);
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     function register_annotation_dir(string $dir)
31 31
     {
32 32
         if (!is_dir($dir)) {
33
-            return false;
33
+            return FALSE;
34 34
         }
35 35
 
36 36
         $handle = opendir($dir);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             register_annotation_file($toRegisterPath);
40 40
         }
41 41
 
42
-        return true;
42
+        return TRUE;
43 43
     }
44 44
 }
45 45
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             if ($type == 'boolean') {
104 104
                 $result = $arg ? 'true' : 'false';
105 105
             } else {
106
-                $result = print_r($arg, true);
106
+                $result = print_r($arg, TRUE);
107 107
             }
108 108
             $result = sprintf('(%s) %s', $type, $result);
109 109
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param string  $version = 'v1'
125 125
      * @param boolean $abort   = true
126 126
      */
127
-    function bdClassExists(string $folder, string $className, string $version = 'v1', boolean $abort = true)
127
+    function bdClassExists(string $folder, string $className, string $version = 'v1', boolean $abort = TRUE)
128 128
     {
129 129
         $entityClass = config('bludata.generator.rootNamespace').'\\'.$folder.'\\'.$version.'\\'.$className;
130 130
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             abort(500, 'Undefined \''.$className.'\'');
137 137
         }
138 138
 
139
-        return null;
139
+        return NULL;
140 140
     }
141 141
 }
142 142
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param string  $version = 'v1'
152 152
      * @param boolean $abort   = true
153 153
      */
154
-    function bdInterfaceExists(string $folder, string $className, string $version = 'v1', boolean $abort = true)
154
+    function bdInterfaceExists(string $folder, string $className, string $version = 'v1', boolean $abort = TRUE)
155 155
     {
156 156
         $entityClass = config('bludata.generator.rootNamespace').'\\'.$folder.'\\'.$version.'\\'.$className;
157 157
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             abort(500, 'Undefined \''.$className.'\'');
164 164
         }
165 165
 
166
-        return null;
166
+        return NULL;
167 167
     }
168 168
 }
169 169
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @param string  $version = 'v1'
174 174
      * @param boolean $abort   = true
175 175
      */
176
-    function bdInterfaceClass(string $className, string $version = 'v1', boolean $abort = true)
176
+    function bdInterfaceClass(string $className, string $version = 'v1', boolean $abort = TRUE)
177 177
     {
178 178
         return bdInterfaceExists(config('bludata.generator.paths.interfaces'), $className.'Interface', $version, $abort);
179 179
     }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      * @param string  $version = 'v1'
186 186
      * @param boolean $abort   = true
187 187
      */
188
-    function bdContractClass(string $className, string $version = 'v1', boolean $abort = true)
188
+    function bdContractClass(string $className, string $version = 'v1', boolean $abort = TRUE)
189 189
     {
190 190
         return bdInterfaceExists(config('bludata.generator.paths.contracts'), $className.'Interface', $version, $abort);
191 191
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * @param string  $version = 'v1'
198 198
      * @param boolean $abort   = true
199 199
      */
200
-    function bdContract(string $className, string $version = 'v1', boolean $abort = true)
200
+    function bdContract(string $className, string $version = 'v1', boolean $abort = TRUE)
201 201
     {
202 202
         return app(bdContractClass($className, $version, $abort));
203 203
     }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @param string  $version = 'v1'
210 210
      * @param boolean $abort   = true
211 211
      */
212
-    function bdRepositoryInterfaceClass(string $className, string $version = 'v1', boolean $abort = true)
212
+    function bdRepositoryInterfaceClass(string $className, string $version = 'v1', boolean $abort = TRUE)
213 213
     {
214 214
         return bdInterfaceClass($className.'Repository', $version, $abort);
215 215
     }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      * @param string  $version = 'v1'
222 222
      * @param boolean $abort   = true
223 223
      */
224
-    function bdRepositoryClass(string $className, string $version = 'v1', boolean $abort = true)
224
+    function bdRepositoryClass(string $className, string $version = 'v1', boolean $abort = TRUE)
225 225
     {
226 226
         return bdClassExists(config('bludata.generator.paths.repositories'), $className.'Repository', $version, $abort);
227 227
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      * @param string  $version = 'v1'
234 234
      * @param boolean $abort   = true
235 235
      */
236
-    function bdRepository(string $className, string $version = 'v1', boolean $abort = true)
236
+    function bdRepository(string $className, string $version = 'v1', boolean $abort = TRUE)
237 237
     {
238 238
         return app(bdRepositoryInterfaceClass($className, $version, $abort));
239 239
     }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      * @param string  $version = 'v1'
246 246
      * @param boolean $abort   = true
247 247
      */
248
-    function bdServiceInterfaceClass(string $className, string $version = 'v1', boolean $abort = true)
248
+    function bdServiceInterfaceClass(string $className, string $version = 'v1', boolean $abort = TRUE)
249 249
     {
250 250
         return bdInterfaceClass($className.'Service', $version, $abort);
251 251
     }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      * @param string  $version = 'v1'
258 258
      * @param boolean $abort   = true
259 259
      */
260
-    function bdServiceClass(string $className, string $version = 'v1', boolean $abort = true)
260
+    function bdServiceClass(string $className, string $version = 'v1', boolean $abort = TRUE)
261 261
     {
262 262
         return bdClassExists(config('bludata.generator.paths.services'), $className.'Service', $version, $abort);
263 263
     }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      * @param string  $version = 'v1'
270 270
      * @param boolean $abort   = true
271 271
      */
272
-    function bdService(string $className, string $version = 'v1', boolean $abort = true)
272
+    function bdService(string $className, string $version = 'v1', boolean $abort = TRUE)
273 273
     {
274 274
         return app(bdServiceInterfaceClass($className, $version, $abort));
275 275
     }
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      * @param string  $version = 'v1'
282 282
      * @param boolean $abort   = true
283 283
      */
284
-    function bdEntityClass(string $className, string $version = 'v1', boolean $abort = true)
284
+    function bdEntityClass(string $className, string $version = 'v1', boolean $abort = TRUE)
285 285
     {
286 286
         return bdClassExists(config('bludata.generator.paths.entities'), $className, $version, $abort);
287 287
     }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      * @param string  $version = 'v1'
294 294
      * @param boolean $abort   = true
295 295
      */
296
-    function bdEntity(string $className, string $version = 'v1', boolean $abort = true)
296
+    function bdEntity(string $className, string $version = 'v1', boolean $abort = TRUE)
297 297
     {
298 298
         return app(bdEntityClass($className, $version, $abort));
299 299
     }
Please login to merge, or discard this patch.