Passed
Push — main ( 2cb152...6ff26f )
by TARIQ
23:50
created
brighty/system/Helpers/url_helper.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 // CodeIgniter URL Helpers
19 19
 
20
-if (! function_exists('_get_uri')) {
20
+if (!function_exists('_get_uri')) {
21 21
     /**
22 22
      * Used by the other URL functions to build a
23 23
      * framework-specific URI based on the App config.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     }
71 71
 }
72 72
 
73
-if (! function_exists('site_url')) {
73
+if (!function_exists('site_url')) {
74 74
     /**
75 75
      * Returns a site URL as defined by the App config.
76 76
      *
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 }
92 92
 
93
-if (! function_exists('base_url')) {
93
+if (!function_exists('base_url')) {
94 94
     /**
95 95
      * Returns the base URL as defined by the App config.
96 96
      * Base URLs are trimmed site URLs without the index page.
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     }
108 108
 }
109 109
 
110
-if (! function_exists('current_url')) {
110
+if (!function_exists('current_url')) {
111 111
     /**
112 112
      * Returns the current full URL based on the IncomingRequest.
113 113
      * String returns ignore query and fragment parts.
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     }
137 137
 }
138 138
 
139
-if (! function_exists('previous_url')) {
139
+if (!function_exists('previous_url')) {
140 140
     /**
141 141
      * Returns the previous URL the current visitor was on. For security reasons
142 142
      * we first check in a saved session variable, if it exists, and use that.
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 }
160 160
 
161
-if (! function_exists('uri_string')) {
161
+if (!function_exists('uri_string')) {
162 162
     /**
163 163
      * URL String
164 164
      *
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
 }
176 176
 
177
-if (! function_exists('index_page')) {
177
+if (!function_exists('index_page')) {
178 178
     /**
179 179
      * Index page
180 180
      *
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     }
192 192
 }
193 193
 
194
-if (! function_exists('anchor')) {
194
+if (!function_exists('anchor')) {
195 195
     /**
196 196
      * Anchor Link
197 197
      *
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     }
224 224
 }
225 225
 
226
-if (! function_exists('anchor_popup')) {
226
+if (!function_exists('anchor_popup')) {
227 227
     /**
228 228
      * Anchor Link - Pop-up version
229 229
      *
@@ -251,12 +251,12 @@  discard block
 block discarded – undo
251 251
             return '<a href="' . $siteUrl . '" onclick="window.open(\'' . $siteUrl . "', '_blank'); return false;\">" . $title . '</a>';
252 252
         }
253 253
 
254
-        if (! is_array($attributes)) {
254
+        if (!is_array($attributes)) {
255 255
             $attributes = [$attributes];
256 256
 
257 257
             // Ref: http://www.w3schools.com/jsref/met_win_open.asp
258 258
             $windowName = '_blank';
259
-        } elseif (! empty($attributes['window_name'])) {
259
+        } elseif (!empty($attributes['window_name'])) {
260 260
             $windowName = $attributes['window_name'];
261 261
             unset($attributes['window_name']);
262 262
         } else {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     }
277 277
 }
278 278
 
279
-if (! function_exists('mailto')) {
279
+if (!function_exists('mailto')) {
280 280
     /**
281 281
      * Mailto Link
282 282
      *
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
     }
295 295
 }
296 296
 
297
-if (! function_exists('safe_mailto')) {
297
+if (!function_exists('safe_mailto')) {
298 298
     /**
299 299
      * Encoded Mailto Link
300 300
      *
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     }
385 385
 }
386 386
 
387
-if (! function_exists('auto_link')) {
387
+if (!function_exists('auto_link')) {
388 388
     /**
389 389
      * Auto-linker
390 390
      *
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     }
432 432
 }
433 433
 
434
-if (! function_exists('prep_url')) {
434
+if (!function_exists('prep_url')) {
435 435
     /**
436 436
      * Prep URL - Simply adds the http:// or https:// part if no scheme is included.
437 437
      *
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     }
461 461
 }
462 462
 
463
-if (! function_exists('url_title')) {
463
+if (!function_exists('url_title')) {
464 464
     /**
465 465
      * Create URL Title
466 466
      *
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
     }
498 498
 }
499 499
 
500
-if (! function_exists('mb_url_title')) {
500
+if (!function_exists('mb_url_title')) {
501 501
     /**
502 502
      * Create URL Title that takes into account accented characters
503 503
      *
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
     }
518 518
 }
519 519
 
520
-if (! function_exists('url_to')) {
520
+if (!function_exists('url_to')) {
521 521
     /**
522 522
      * Get the full, absolute URL to a controller method
523 523
      * (with additional arguments)
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
      */
529 529
     function url_to(string $controller, ...$args): string
530 530
     {
531
-        if (! $route = route_to($controller, ...$args)) {
531
+        if (!$route = route_to($controller, ...$args)) {
532 532
             $explode = explode('::', $controller);
533 533
 
534 534
             if (isset($explode[1])) {
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
     }
543 543
 }
544 544
 
545
-if (! function_exists('url_is')) {
545
+if (!function_exists('url_is')) {
546 546
     /**
547 547
      * Determines if current url path contains
548 548
      * the given path. It may contain a wildcard (*)
Please login to merge, or discard this patch.
brighty/system/Helpers/inflector_helper.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 // CodeIgniter Inflector Helpers
13 13
 
14
-if (! function_exists('singular')) {
14
+if (!function_exists('singular')) {
15 15
     /**
16 16
      * Singular
17 17
      *
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $result = $string;
25 25
 
26
-        if (! is_pluralizable($result)) {
26
+        if (!is_pluralizable($result)) {
27 27
             return $result;
28 28
         }
29 29
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     }
71 71
 }
72 72
 
73
-if (! function_exists('plural')) {
73
+if (!function_exists('plural')) {
74 74
     /**
75 75
      * Plural
76 76
      *
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $result = $string;
84 84
 
85
-        if (! is_pluralizable($result)) {
85
+        if (!is_pluralizable($result)) {
86 86
             return $result;
87 87
         }
88 88
 
89 89
         $pluralRules = [
90
-            '/(quiz)$/'               => '\1zes',    // quizzes
90
+            '/(quiz)$/'               => '\1zes', // quizzes
91 91
             '/^(ox)$/'                => '\1\2en', // ox
92 92
             '/([m|l])ouse$/'          => '\1ice', // mouse, louse
93 93
             '/(matr|vert|ind)ix|ex$/' => '\1ices', // matrix, vertex, index
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     }
121 121
 }
122 122
 
123
-if (! function_exists('counted')) {
123
+if (!function_exists('counted')) {
124 124
     /**
125 125
      * Counted
126 126
      *
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     }
139 139
 }
140 140
 
141
-if (! function_exists('camelize')) {
141
+if (!function_exists('camelize')) {
142 142
     /**
143 143
      * Camelize
144 144
      *
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 }
155 155
 
156
-if (! function_exists('pascalize')) {
156
+if (!function_exists('pascalize')) {
157 157
     /**
158 158
      * Pascalize
159 159
      *
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     }
170 170
 }
171 171
 
172
-if (! function_exists('underscore')) {
172
+if (!function_exists('underscore')) {
173 173
     /**
174 174
      * Underscore
175 175
      *
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     }
186 186
 }
187 187
 
188
-if (! function_exists('humanize')) {
188
+if (!function_exists('humanize')) {
189 189
     /**
190 190
      * Humanize
191 191
      *
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     }
204 204
 }
205 205
 
206
-if (! function_exists('is_pluralizable')) {
206
+if (!function_exists('is_pluralizable')) {
207 207
     /**
208 208
      * Checks if the given word has a plural version.
209 209
      *
@@ -264,11 +264,11 @@  discard block
 block discarded – undo
264 264
             true
265 265
         );
266 266
 
267
-        return ! $uncountables;
267
+        return !$uncountables;
268 268
     }
269 269
 }
270 270
 
271
-if (! function_exists('dasherize')) {
271
+if (!function_exists('dasherize')) {
272 272
     /**
273 273
      * Replaces underscores with dashes in the string.
274 274
      *
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
     }
281 281
 }
282 282
 
283
-if (! function_exists('ordinal')) {
283
+if (!function_exists('ordinal')) {
284 284
     /**
285 285
      * Returns the suffix that should be added to a
286 286
      * number to denote the position in an ordered
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     }
308 308
 }
309 309
 
310
-if (! function_exists('ordinalize')) {
310
+if (!function_exists('ordinalize')) {
311 311
     /**
312 312
      * Turns a number into an ordinal string used
313 313
      * to denote the position in an ordered sequence
Please login to merge, or discard this patch.
brighty/system/Helpers/test_helper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 // CodeIgniter Test Helpers
18 18
 
19
-if (! function_exists('fake')) {
19
+if (!function_exists('fake')) {
20 20
     /**
21 21
      * Creates a single item using Fabricator.
22 22
      *
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     }
43 43
 }
44 44
 
45
-if (! function_exists('mock')) {
45
+if (!function_exists('mock')) {
46 46
     /**
47 47
      * Used within our test suite to mock certain system tools.
48 48
      *
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
         $mockClass   = $className::$mockClass;
54 54
         $mockService = $className::$mockServiceName ?? '';
55 55
 
56
-        if (empty($mockClass) || ! class_exists($mockClass)) {
56
+        if (empty($mockClass) || !class_exists($mockClass)) {
57 57
             throw TestException::forInvalidMockClass($mockClass);
58 58
         }
59 59
 
60 60
         $mock = new $mockClass();
61 61
 
62
-        if (! empty($mockService)) {
62
+        if (!empty($mockService)) {
63 63
             Services::injectMock($mockService, $mock);
64 64
         }
65 65
 
Please login to merge, or discard this patch.
brighty/system/Helpers/text_helper.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 // CodeIgniter Text Helpers
15 15
 
16
-if (! function_exists('word_limiter')) {
16
+if (!function_exists('word_limiter')) {
17 17
     /**
18 18
      * Word Limiter
19 19
      *
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     }
38 38
 }
39 39
 
40
-if (! function_exists('character_limiter')) {
40
+if (!function_exists('character_limiter')) {
41 41
     /**
42 42
      * Character Limiter
43 43
      *
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 }
75 75
 
76
-if (! function_exists('ascii_to_entities')) {
76
+if (!function_exists('ascii_to_entities')) {
77 77
     /**
78 78
      * High ASCII to Entities
79 79
      *
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     }
122 122
 }
123 123
 
124
-if (! function_exists('entities_to_ascii')) {
124
+if (!function_exists('entities_to_ascii')) {
125 125
     /**
126 126
      * Entities to ASCII
127 127
      *
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         if ($all) {
150 150
             return str_replace(
151 151
                 ['&amp;', '&lt;', '&gt;', '&quot;', '&apos;', '&#45;'],
152
-                ['&', '<', '>', '"', "'",  '-'],
152
+                ['&', '<', '>', '"', "'", '-'],
153 153
                 $str
154 154
             );
155 155
         }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 }
160 160
 
161
-if (! function_exists('word_censor')) {
161
+if (!function_exists('word_censor')) {
162 162
     /**
163 163
      * Word Censoring Function
164 164
      *
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     }
214 214
 }
215 215
 
216
-if (! function_exists('highlight_code')) {
216
+if (!function_exists('highlight_code')) {
217 217
     /**
218 218
      * Code Highlighter
219 219
      *
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     }
279 279
 }
280 280
 
281
-if (! function_exists('highlight_phrase')) {
281
+if (!function_exists('highlight_phrase')) {
282 282
     /**
283 283
      * Phrase Highlighter
284 284
      *
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     }
296 296
 }
297 297
 
298
-if (! function_exists('convert_accented_characters')) {
298
+if (!function_exists('convert_accented_characters')) {
299 299
     /**
300 300
      * Convert Accented Foreign Characters to ASCII
301 301
      *
@@ -305,10 +305,10 @@  discard block
 block discarded – undo
305 305
     {
306 306
         static $arrayFrom, $arrayTo;
307 307
 
308
-        if (! is_array($arrayFrom)) {
308
+        if (!is_array($arrayFrom)) {
309 309
             $config = new ForeignCharacters();
310 310
 
311
-            if (empty($config->characterList) || ! is_array($config->characterList)) {
311
+            if (empty($config->characterList) || !is_array($config->characterList)) {
312 312
                 $arrayFrom = [];
313 313
                 $arrayTo   = [];
314 314
 
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     }
325 325
 }
326 326
 
327
-if (! function_exists('word_wrap')) {
327
+if (!function_exists('word_wrap')) {
328 328
     /**
329 329
      * Word Wrap
330 330
      *
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     }
405 405
 }
406 406
 
407
-if (! function_exists('ellipsize')) {
407
+if (!function_exists('ellipsize')) {
408 408
     /**
409 409
      * Ellipsize String
410 410
      *
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
     }
441 441
 }
442 442
 
443
-if (! function_exists('strip_slashes')) {
443
+if (!function_exists('strip_slashes')) {
444 444
     /**
445 445
      * Strip Slashes
446 446
      *
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      */
453 453
     function strip_slashes($str)
454 454
     {
455
-        if (! is_array($str)) {
455
+        if (!is_array($str)) {
456 456
             return stripslashes($str);
457 457
         }
458 458
 
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     }
465 465
 }
466 466
 
467
-if (! function_exists('strip_quotes')) {
467
+if (!function_exists('strip_quotes')) {
468 468
     /**
469 469
      * Strip Quotes
470 470
      *
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
     }
477 477
 }
478 478
 
479
-if (! function_exists('quotes_to_entities')) {
479
+if (!function_exists('quotes_to_entities')) {
480 480
     /**
481 481
      * Quotes to Entities
482 482
      *
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
     }
489 489
 }
490 490
 
491
-if (! function_exists('reduce_double_slashes')) {
491
+if (!function_exists('reduce_double_slashes')) {
492 492
     /**
493 493
      * Reduce Double Slashes
494 494
      *
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
     }
508 508
 }
509 509
 
510
-if (! function_exists('reduce_multiples')) {
510
+if (!function_exists('reduce_multiples')) {
511 511
     /**
512 512
      * Reduce Multiples
513 513
      *
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
     }
531 531
 }
532 532
 
533
-if (! function_exists('random_string')) {
533
+if (!function_exists('random_string')) {
534 534
     /**
535 535
      * Create a Random String
536 536
      *
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
     }
581 581
 }
582 582
 
583
-if (! function_exists('increment_string')) {
583
+if (!function_exists('increment_string')) {
584 584
     /**
585 585
      * Add's _1 to a string or increment the ending number to allow _2, _3, etc
586 586
      *
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     }
597 597
 }
598 598
 
599
-if (! function_exists('alternator')) {
599
+if (!function_exists('alternator')) {
600 600
     /**
601 601
      * Alternator
602 602
      *
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
     }
619 619
 }
620 620
 
621
-if (! function_exists('excerpt')) {
621
+if (!function_exists('excerpt')) {
622 622
     /**
623 623
      * Excerpt.
624 624
      *
Please login to merge, or discard this patch.
brighty/system/Helpers/cookie_helper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 // CodeIgniter Cookie Helpers
17 17
 //=============================================================================
18 18
 
19
-if (! function_exists('set_cookie')) {
19
+if (!function_exists('set_cookie')) {
20 20
     /**
21 21
      * Set cookie
22 22
      *
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     }
52 52
 }
53 53
 
54
-if (! function_exists('get_cookie')) {
54
+if (!function_exists('get_cookie')) {
55 55
     /**
56 56
      * Fetch an item from the $_COOKIE array
57 57
      *
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 }
73 73
 
74
-if (! function_exists('delete_cookie')) {
74
+if (!function_exists('delete_cookie')) {
75 75
     /**
76 76
      * Delete a cookie
77 77
      *
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 }
90 90
 
91
-if (! function_exists('has_cookie')) {
91
+if (!function_exists('has_cookie')) {
92 92
     /**
93 93
      * Checks if a cookie exists by name.
94 94
      */
Please login to merge, or discard this patch.
brighty/system/Helpers/security_helper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 // CodeIgniter Security Helpers
15 15
 
16
-if (! function_exists('sanitize_filename')) {
16
+if (!function_exists('sanitize_filename')) {
17 17
     /**
18 18
      * Sanitize a filename to use in a URI.
19 19
      */
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     }
24 24
 }
25 25
 
26
-if (! function_exists('strip_image_tags')) {
26
+if (!function_exists('strip_image_tags')) {
27 27
     /**
28 28
      * Strip Image Tags
29 29
      */
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     }
41 41
 }
42 42
 
43
-if (! function_exists('encode_php_tags')) {
43
+if (!function_exists('encode_php_tags')) {
44 44
     /**
45 45
      * Convert PHP tags to entities
46 46
      */
Please login to merge, or discard this patch.
brighty/system/Helpers/array_helper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 // CodeIgniter Array Helpers
13 13
 
14
-if (! function_exists('dot_array_search')) {
14
+if (!function_exists('dot_array_search')) {
15 15
     /**
16 16
      * Searches an array through dot syntax. Supports
17 17
      * wildcard searches, like foo.*.bar
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             PREG_SPLIT_NO_EMPTY
29 29
         );
30 30
 
31
-        $segments = array_map(static function ($key) {
31
+        $segments = array_map(static function($key) {
32 32
             return str_replace('\.', '.', $key);
33 33
         }, $segments);
34 34
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 }
38 38
 
39
-if (! function_exists('_array_search_dot')) {
39
+if (!function_exists('_array_search_dot')) {
40 40
     /**
41 41
      * Used by `dot_array_search` to recursively search the
42 42
      * array with wildcards.
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         // Grab the current index
51 51
         $currentIndex = $indexes ? array_shift($indexes) : null;
52 52
 
53
-        if ((empty($currentIndex) && (int) $currentIndex !== 0) || (! isset($array[$currentIndex]) && $currentIndex !== '*')) {
53
+        if ((empty($currentIndex) && (int) $currentIndex !== 0) || (!isset($array[$currentIndex]) && $currentIndex !== '*')) {
54 54
             return null;
55 55
         }
56 56
 
@@ -59,14 +59,14 @@  discard block
 block discarded – undo
59 59
             $answer = [];
60 60
 
61 61
             foreach ($array as $value) {
62
-                if (! is_array($value)) {
62
+                if (!is_array($value)) {
63 63
                     return null;
64 64
                 }
65 65
 
66 66
                 $answer[] = _array_search_dot($indexes, $value);
67 67
             }
68 68
 
69
-            $answer = array_filter($answer, static function ($value) {
69
+            $answer = array_filter($answer, static function($value) {
70 70
                 return $value !== null;
71 71
             });
72 72
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     }
99 99
 }
100 100
 
101
-if (! function_exists('array_deep_search')) {
101
+if (!function_exists('array_deep_search')) {
102 102
     /**
103 103
      * Returns the value of an element at a key in an array of uncertain depth.
104 104
      *
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     }
123 123
 }
124 124
 
125
-if (! function_exists('array_sort_by_multiple_keys')) {
125
+if (!function_exists('array_sort_by_multiple_keys')) {
126 126
     /**
127 127
      * Sorts a multidimensional array by its elements values. The array
128 128
      * columns to be used for sorting are passed as an associative
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     }
192 192
 }
193 193
 
194
-if (! function_exists('array_flatten_with_dots')) {
194
+if (!function_exists('array_flatten_with_dots')) {
195 195
     /**
196 196
      * Flatten a multidimensional array using dots as separators.
197 197
      *
Please login to merge, or discard this patch.
brighty/system/Helpers/xml_helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 // CodeIgniter XML Helpers
13 13
 
14
-if (! function_exists('xml_convert')) {
14
+if (!function_exists('xml_convert')) {
15 15
     /**
16 16
      * Convert Reserved XML characters to Entities
17 17
      */
Please login to merge, or discard this patch.
brighty/system/Helpers/number_helper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 // CodeIgniter Number Helpers
15 15
 
16
-if (! function_exists('number_to_size')) {
16
+if (!function_exists('number_to_size')) {
17 17
     /**
18 18
      * Formats a numbers as bytes, based on size, and adds the appropriate suffix
19 19
      *
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         // ignore sub part
35 35
         $generalLocale = $locale;
36
-        if (! empty($locale) && ($underscorePos = strpos($locale, '_'))) {
36
+        if (!empty($locale) && ($underscorePos = strpos($locale, '_'))) {
37 37
             $generalLocale = substr($locale, 0, $underscorePos);
38 38
         }
39 39
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 }
59 59
 
60
-if (! function_exists('number_to_amount')) {
60
+if (!function_exists('number_to_amount')) {
61 61
     /**
62 62
      * Converts numbers to a more readable representation
63 63
      * when dealing with very large numbers (in the thousands or above),
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         // ignore sub part
88 88
         $generalLocale = $locale;
89
-        if (! empty($locale) && ($underscorePos = strpos($locale, '_'))) {
89
+        if (!empty($locale) && ($underscorePos = strpos($locale, '_'))) {
90 90
             $generalLocale = substr($locale, 0, $underscorePos);
91 91
         }
92 92
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     }
112 112
 }
113 113
 
114
-if (! function_exists('number_to_currency')) {
114
+if (!function_exists('number_to_currency')) {
115 115
     function number_to_currency(float $num, string $currency, ?string $locale = null, int $fraction = 0): string
116 116
     {
117 117
         return format_number($num, 1, $locale, [
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     }
123 123
 }
124 124
 
125
-if (! function_exists('format_number')) {
125
+if (!function_exists('format_number')) {
126 126
     /**
127 127
      * A general purpose, locale-aware, number_format method.
128 128
      * Used by all of the functions of the number_helper.
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     }
171 171
 }
172 172
 
173
-if (! function_exists('number_to_roman')) {
173
+if (!function_exists('number_to_roman')) {
174 174
     /**
175 175
      * Convert a number to a roman numeral.
176 176
      *
Please login to merge, or discard this patch.