Passed
Push — main ( 1b5a5a...dfaed8 )
by Dimitri
13:41 queued 09:37
created
src/Helpers/number.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  *
15 15
  * @credit	<a href="https://codeigniter.com">CodeIgniter 4.2 - number_helper</a>
16 16
  */
17
-if (! function_exists('number_to_size')) {
17
+if (!function_exists('number_to_size')) {
18 18
     /**
19 19
      * Formats a numbers as bytes, based on size, and adds the appropriate suffix
20 20
      *
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 }
60 60
 
61
-if (! function_exists('number_to_amount')) {
61
+if (!function_exists('number_to_amount')) {
62 62
     /**
63 63
      * Converts numbers to a more readable representation
64 64
      * when dealing with very large numbers (in the thousands or above),
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 }
115 115
 
116
-if (! function_exists('number_to_currency')) {
116
+if (!function_exists('number_to_currency')) {
117 117
     function number_to_currency(float $num, string $currency, ?string $locale = null, int $fraction = 0): string
118 118
     {
119 119
         return format_number($num, 1, $locale, [
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     }
125 125
 }
126 126
 
127
-if (! function_exists('format_number')) {
127
+if (!function_exists('format_number')) {
128 128
     /**
129 129
      * A general purpose, locale-aware, number_format method.
130 130
      * Used by all of the functions of the number_helper.
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     }
174 174
 }
175 175
 
176
-if (! function_exists('number_to_roman')) {
176
+if (!function_exists('number_to_roman')) {
177 177
     /**
178 178
      * Convert a number to a roman numeral.
179 179
      *
Please login to merge, or discard this patch.
src/Helpers/path.php 1 patch
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * the LICENSE file that was distributed with this source code.
10 10
  */
11 11
 
12
-if (! function_exists('css_path')) {
12
+if (!function_exists('css_path')) {
13 13
     /**
14 14
      * CSS PATH
15 15
      *
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     }
32 32
 }
33 33
 
34
-if (! function_exists('js_path')) {
34
+if (!function_exists('js_path')) {
35 35
     /**
36 36
      * JS PATH
37 37
      *
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     }
54 54
 }
55 55
 
56
-if (! function_exists('lib_path')) {
56
+if (!function_exists('lib_path')) {
57 57
     /**
58 58
      * LIB PATH
59 59
      *
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 }
73 73
 
74
-if (! function_exists('less_path')) {
74
+if (!function_exists('less_path')) {
75 75
     /**
76 76
      * LESS PATH
77 77
      *
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 }
95 95
 
96
-if (! function_exists('img_path')) {
96
+if (!function_exists('img_path')) {
97 97
     /**
98 98
      * IMG PATH
99 99
      *
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     }
112 112
 }
113 113
 
114
-if (! function_exists('docs_path')) {
114
+if (!function_exists('docs_path')) {
115 115
     /**
116 116
      * DOCS PATH
117 117
      *
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     }
130 130
 }
131 131
 
132
-if (! function_exists('video_path')) {
132
+if (!function_exists('video_path')) {
133 133
     /**
134 134
      * VIDEO PATH
135 135
      *
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     }
148 148
 }
149 149
 
150
-if (! function_exists('public_path')) {
150
+if (!function_exists('public_path')) {
151 151
     /**
152 152
      * PUBLIC PATH
153 153
      *
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
 }
167 167
 
168
-if (! function_exists('root_path')) {
168
+if (!function_exists('root_path')) {
169 169
     /**
170 170
      * ROOT PATH
171 171
      *
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     }
184 184
 }
185 185
 
186
-if (! function_exists('base_path')) {
186
+if (!function_exists('base_path')) {
187 187
     /**
188 188
      * BASE PATH
189 189
      *
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     }
202 202
 }
203 203
 
204
-if (! function_exists('resource_path')) {
204
+if (!function_exists('resource_path')) {
205 205
     /**
206 206
      * BASE RESOURCE PATH
207 207
      *
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     }
220 220
 }
221 221
 
222
-if (! function_exists('class_path')) {
222
+if (!function_exists('class_path')) {
223 223
     /**
224 224
      * CLASS PATH
225 225
      *
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     }
238 238
 }
239 239
 
240
-if (! function_exists('config_path')) {
240
+if (!function_exists('config_path')) {
241 241
     /**
242 242
      * CONFIG PATH
243 243
      *
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     }
260 260
 }
261 261
 
262
-if (! function_exists('controller_path')) {
262
+if (!function_exists('controller_path')) {
263 263
     /**
264 264
      * CONTROLLER PATH
265 265
      *
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         if ($name !== '' && $name !== '0') {
274 274
             $name = ltrim($name, '/\\');
275 275
 
276
-            if ($only === true && ! preg_match('#Controller\.php$#', $name)) {
276
+            if ($only === true && !preg_match('#Controller\.php$#', $name)) {
277 277
                 $name = ucfirst(strtolower($name)) . 'Controller.php';
278 278
             }
279 279
         }
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     }
283 283
 }
284 284
 
285
-if (! function_exists('entity_path')) {
285
+if (!function_exists('entity_path')) {
286 286
     /**
287 287
      * ENTITY PATH
288 288
      *
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         if ($name !== '' && $name !== '0') {
297 297
             $name = ltrim($name, '/\\');
298 298
 
299
-            if ($only === true && ! preg_match('#Entity\.php$#', $name)) {
299
+            if ($only === true && !preg_match('#Entity\.php$#', $name)) {
300 300
                 $name = ucfirst($name) . 'Entity.php';
301 301
             }
302 302
         }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     }
306 306
 }
307 307
 
308
-if (! function_exists('helper_path')) {
308
+if (!function_exists('helper_path')) {
309 309
     /**
310 310
      * HELPER PATH
311 311
      *
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
     }
332 332
 }
333 333
 
334
-if (! function_exists('library_path')) {
334
+if (!function_exists('library_path')) {
335 335
     /**
336 336
      * LIBRARY PATH
337 337
      *
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     }
359 359
 }
360 360
 
361
-if (! function_exists('middleware_path')) {
361
+if (!function_exists('middleware_path')) {
362 362
     /**
363 363
      * MIDDLEWARE PATH
364 364
      *
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
         if ($name !== '' && $name !== '0') {
374 374
             $name = ltrim($name, '/\\');
375 375
 
376
-            if ($only === true && ! preg_match('#Middleware\.php$#', $name)) {
376
+            if ($only === true && !preg_match('#Middleware\.php$#', $name)) {
377 377
                 $name = ucfirst($name) . 'Middleware.php';
378 378
             }
379 379
         }
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     }
386 386
 }
387 387
 
388
-if (! function_exists('model_path')) {
388
+if (!function_exists('model_path')) {
389 389
     /**
390 390
      * MODEL PATH
391 391
      *
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         if ($name !== '' && $name !== '0') {
400 400
             $name = ltrim($name, '/\\');
401 401
 
402
-            if ($only === true && ! preg_match('#Model\.php$#', $name)) {
402
+            if ($only === true && !preg_match('#Model\.php$#', $name)) {
403 403
                 $name = ucfirst(strtolower($name)) . 'Model.php';
404 404
             }
405 405
         }
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     }
409 409
 }
410 410
 
411
-if (! function_exists('app_resource_path')) {
411
+if (!function_exists('app_resource_path')) {
412 412
     /**
413 413
      * APP RESOURCE PATH
414 414
      *
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     }
427 427
 }
428 428
 
429
-if (! function_exists('migration_path')) {
429
+if (!function_exists('migration_path')) {
430 430
     /**
431 431
      * MIGRATION PATH
432 432
      *
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     }
445 445
 }
446 446
 
447
-if (! function_exists('seed_path')) {
447
+if (!function_exists('seed_path')) {
448 448
     /**
449 449
      * SEED PATH
450 450
      *
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     }
463 463
 }
464 464
 
465
-if (! function_exists('lang_path')) {
465
+if (!function_exists('lang_path')) {
466 466
     /**
467 467
      * LANG PATH
468 468
      *
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
     }
485 485
 }
486 486
 
487
-if (! function_exists('service_path')) {
487
+if (!function_exists('service_path')) {
488 488
     /**
489 489
      * SERVICE PATH
490 490
      *
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
         if ($name !== '' && $name !== '0') {
499 499
             $name = ltrim($name, '/\\');
500 500
 
501
-            if ($only === true && ! preg_match('#Service\.php$#', $name)) {
501
+            if ($only === true && !preg_match('#Service\.php$#', $name)) {
502 502
                 $name = ucfirst($name) . 'Service.php';
503 503
             }
504 504
         }
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
     }
508 508
 }
509 509
 
510
-if (! function_exists('view_path')) {
510
+if (!function_exists('view_path')) {
511 511
     /**
512 512
      * VIEW PATH
513 513
      *
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
     }
526 526
 }
527 527
 
528
-if (! function_exists('layout_path')) {
528
+if (!function_exists('layout_path')) {
529 529
     /**
530 530
      * LAYOUT PATH
531 531
      *
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
     }
544 544
 }
545 545
 
546
-if (! function_exists('partial_path')) {
546
+if (!function_exists('partial_path')) {
547 547
     /**
548 548
      * PARTIAL PATH
549 549
      *
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
     }
562 562
 }
563 563
 
564
-if (! function_exists('app_path')) {
564
+if (!function_exists('app_path')) {
565 565
     /**
566 566
      * APP PATH
567 567
      *
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
     }
580 580
 }
581 581
 
582
-if (! function_exists('cache_path')) {
582
+if (!function_exists('cache_path')) {
583 583
     /**
584 584
      * CACHE PATH
585 585
      *
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
     }
598 598
 }
599 599
 
600
-if (! function_exists('dump_path')) {
600
+if (!function_exists('dump_path')) {
601 601
     /**
602 602
      * DUMP PATH
603 603
      *
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     }
616 616
 }
617 617
 
618
-if (! function_exists('storage_path')) {
618
+if (!function_exists('storage_path')) {
619 619
     /**
620 620
      * STORAGE PATH
621 621
      *
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
     }
634 634
 }
635 635
 
636
-if (! function_exists('css_exist')) {
636
+if (!function_exists('css_exist')) {
637 637
     /**
638 638
      * CSS EXIST
639 639
      *
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
     }
648 648
 }
649 649
 
650
-if (! function_exists('js_exist')) {
650
+if (!function_exists('js_exist')) {
651 651
     /**
652 652
      * JS EXIST
653 653
      *
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
     }
662 662
 }
663 663
 
664
-if (! function_exists('lib_exist')) {
664
+if (!function_exists('lib_exist')) {
665 665
     /**
666 666
      * LIB EXIST
667 667
      *
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
     }
676 676
 }
677 677
 
678
-if (! function_exists('less_exist')) {
678
+if (!function_exists('less_exist')) {
679 679
     /**
680 680
      * LESS EXIST
681 681
      *
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
     }
690 690
 }
691 691
 
692
-if (! function_exists('img_exist')) {
692
+if (!function_exists('img_exist')) {
693 693
     /**
694 694
      * IMG EXIST
695 695
      *
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
     }
704 704
 }
705 705
 
706
-if (! function_exists('doc_exist')) {
706
+if (!function_exists('doc_exist')) {
707 707
     /**
708 708
      * DOC EXIST
709 709
      *
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
     }
718 718
 }
719 719
 
720
-if (! function_exists('video_exist')) {
720
+if (!function_exists('video_exist')) {
721 721
     /**
722 722
      * VIDEO EXIST
723 723
      *
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
     }
732 732
 }
733 733
 
734
-if (! function_exists('public_exist')) {
734
+if (!function_exists('public_exist')) {
735 735
     /**
736 736
      * PUBLIC EXIST
737 737
      *
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
     }
746 746
 }
747 747
 
748
-if (! function_exists('class_exist')) {
748
+if (!function_exists('class_exist')) {
749 749
     /**
750 750
      * CLASS EXIST
751 751
      *
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
     }
760 760
 }
761 761
 
762
-if (! function_exists('config_exist')) {
762
+if (!function_exists('config_exist')) {
763 763
     /**
764 764
      * CONFIG EXIST
765 765
      *
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
     }
774 774
 }
775 775
 
776
-if (! function_exists('controller_exist')) {
776
+if (!function_exists('controller_exist')) {
777 777
     /**
778 778
      * CONTROLLER EXIST
779 779
      *
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
     }
789 789
 }
790 790
 
791
-if (! function_exists('entity_exist')) {
791
+if (!function_exists('entity_exist')) {
792 792
     /**
793 793
      * ENTITY EXIST
794 794
      *
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
     }
804 804
 }
805 805
 
806
-if (! function_exists('helper_exist')) {
806
+if (!function_exists('helper_exist')) {
807 807
     /**
808 808
      * HELPER EXIST
809 809
      *
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
     }
819 819
 }
820 820
 
821
-if (! function_exists('library_exist')) {
821
+if (!function_exists('library_exist')) {
822 822
     /**
823 823
      * LIBRARY EXIST
824 824
      *
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
     }
834 834
 }
835 835
 
836
-if (! function_exists('middleware_exist')) {
836
+if (!function_exists('middleware_exist')) {
837 837
     /**
838 838
      * MIDDLEWARE EXIST
839 839
      *
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     }
850 850
 }
851 851
 
852
-if (! function_exists('model_exist')) {
852
+if (!function_exists('model_exist')) {
853 853
     /**
854 854
      * MODEL EXIST
855 855
      *
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
     }
865 865
 }
866 866
 
867
-if (! function_exists('resource_exist')) {
867
+if (!function_exists('resource_exist')) {
868 868
     /**
869 869
      * RESOURCE EXIST
870 870
      *
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
     }
879 879
 }
880 880
 
881
-if (! function_exists('migration_exist')) {
881
+if (!function_exists('migration_exist')) {
882 882
     /**
883 883
      * MIGRATION EXIST
884 884
      *
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
     }
893 893
 }
894 894
 
895
-if (! function_exists('seed_exist')) {
895
+if (!function_exists('seed_exist')) {
896 896
     /**
897 897
      * SEED EXIST
898 898
      *
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
     }
907 907
 }
908 908
 
909
-if (! function_exists('lang_exist')) {
909
+if (!function_exists('lang_exist')) {
910 910
     /**
911 911
      * LANG EXIST
912 912
      *
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
     }
922 922
 }
923 923
 
924
-if (! function_exists('service_exist')) {
924
+if (!function_exists('service_exist')) {
925 925
     /**
926 926
      * SERVICE EXIST
927 927
      *
@@ -936,7 +936,7 @@  discard block
 block discarded – undo
936 936
     }
937 937
 }
938 938
 
939
-if (! function_exists('view_exist')) {
939
+if (!function_exists('view_exist')) {
940 940
     /**
941 941
      * VIEW EXIST
942 942
      *
@@ -950,7 +950,7 @@  discard block
 block discarded – undo
950 950
     }
951 951
 }
952 952
 
953
-if (! function_exists('layout_exist')) {
953
+if (!function_exists('layout_exist')) {
954 954
     /**
955 955
      * LAYOUT EXIST
956 956
      *
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
     }
965 965
 }
966 966
 
967
-if (! function_exists('partial_exist')) {
967
+if (!function_exists('partial_exist')) {
968 968
     /**
969 969
      * PARTIAL EXIST
970 970
      *
@@ -978,7 +978,7 @@  discard block
 block discarded – undo
978 978
     }
979 979
 }
980 980
 
981
-if (! function_exists('app_exist')) {
981
+if (!function_exists('app_exist')) {
982 982
     /**
983 983
      * APP EXIST
984 984
      *
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
     }
993 993
 }
994 994
 
995
-if (! function_exists('cache_exist')) {
995
+if (!function_exists('cache_exist')) {
996 996
     /**
997 997
      * CACHE EXIST
998 998
      *
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
     }
1007 1007
 }
1008 1008
 
1009
-if (! function_exists('dump_exist')) {
1009
+if (!function_exists('dump_exist')) {
1010 1010
     /**
1011 1011
      * DUMP EXIST
1012 1012
      *
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
     }
1021 1021
 }
1022 1022
 
1023
-if (! function_exists('storage_exist')) {
1023
+if (!function_exists('storage_exist')) {
1024 1024
     /**
1025 1025
      * STORAGE EXIST
1026 1026
      *
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
     }
1035 1035
 }
1036 1036
 
1037
-if (! function_exists('include_config')) {
1037
+if (!function_exists('include_config')) {
1038 1038
     /**
1039 1039
      * INCLUDE CONFIG
1040 1040
      *
@@ -1050,7 +1050,7 @@  discard block
 block discarded – undo
1050 1050
     }
1051 1051
 }
1052 1052
 
1053
-if (! function_exists('include_controller')) {
1053
+if (!function_exists('include_controller')) {
1054 1054
     /**
1055 1055
      * INCLUDE CONTROLLER
1056 1056
      *
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
     }
1068 1068
 }
1069 1069
 
1070
-if (! function_exists('include_class')) {
1070
+if (!function_exists('include_class')) {
1071 1071
     /**
1072 1072
      * INCLUDE CLASS
1073 1073
      *
@@ -1083,7 +1083,7 @@  discard block
 block discarded – undo
1083 1083
     }
1084 1084
 }
1085 1085
 
1086
-if (! function_exists('include_entity')) {
1086
+if (!function_exists('include_entity')) {
1087 1087
     /**
1088 1088
      * INCLUDE ENTITY
1089 1089
      *
@@ -1100,7 +1100,7 @@  discard block
 block discarded – undo
1100 1100
     }
1101 1101
 }
1102 1102
 
1103
-if (! function_exists('include_helper')) {
1103
+if (!function_exists('include_helper')) {
1104 1104
     /**
1105 1105
      * INCLUDE HELPER
1106 1106
      *
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
     }
1117 1117
 }
1118 1118
 
1119
-if (! function_exists('include_library')) {
1119
+if (!function_exists('include_library')) {
1120 1120
     /**
1121 1121
      * INCLUDE LIBRARY
1122 1122
      *
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
     }
1134 1134
 }
1135 1135
 
1136
-if (! function_exists('include_middleware')) {
1136
+if (!function_exists('include_middleware')) {
1137 1137
     /**
1138 1138
      * INCLUDE MIDDLEWARE
1139 1139
      *
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
     }
1152 1152
 }
1153 1153
 
1154
-if (! function_exists('include_model')) {
1154
+if (!function_exists('include_model')) {
1155 1155
     /**
1156 1156
      * INCLUDE MODEL
1157 1157
      *
@@ -1168,7 +1168,7 @@  discard block
 block discarded – undo
1168 1168
     }
1169 1169
 }
1170 1170
 
1171
-if (! function_exists('include_resource')) {
1171
+if (!function_exists('include_resource')) {
1172 1172
     /**
1173 1173
      * INCLUDE RESOURCE
1174 1174
      *
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
     }
1185 1185
 }
1186 1186
 
1187
-if (! function_exists('include_service')) {
1187
+if (!function_exists('include_service')) {
1188 1188
     /**
1189 1189
      * INCLUDE SERVICE
1190 1190
      *
@@ -1201,7 +1201,7 @@  discard block
 block discarded – undo
1201 1201
     }
1202 1202
 }
1203 1203
 
1204
-if (! function_exists('include_view')) {
1204
+if (!function_exists('include_view')) {
1205 1205
     /**
1206 1206
      * INCLUDE VIEW
1207 1207
      *
@@ -1217,7 +1217,7 @@  discard block
 block discarded – undo
1217 1217
     }
1218 1218
 }
1219 1219
 
1220
-if (! function_exists('include_layout')) {
1220
+if (!function_exists('include_layout')) {
1221 1221
     /**
1222 1222
      * INCLUDE LAYOUT
1223 1223
      *
@@ -1233,7 +1233,7 @@  discard block
 block discarded – undo
1233 1233
     }
1234 1234
 }
1235 1235
 
1236
-if (! function_exists('include_partial')) {
1236
+if (!function_exists('include_partial')) {
1237 1237
     /**
1238 1238
      * INCLUDE PARTIAL
1239 1239
      *
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
     }
1250 1250
 }
1251 1251
 
1252
-if (! function_exists('_include_path')) {
1252
+if (!function_exists('_include_path')) {
1253 1253
     /**
1254 1254
      * inclus un fichier
1255 1255
      *
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         NullToStrictStringFuncCallArgRector::class,
82 82
     ])
83 83
     // auto import fully qualified class names
84
-    ->withImportNames(removeUnusedImports: true)
84
+    ->withImportNames(removeUnusedImports : true)
85 85
     ->withRules([
86 86
         // DeclareStrictTypesRector::class,
87 87
         SimplifyUselessVariableRector::class,
Please login to merge, or discard this patch.
src/Cli/Traits/GeneratorTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             // @codeCoverageIgnoreStart
165 165
             $this->colorize(lang('CLI.generator.usingBlitzNamespace'), 'yellow');
166 166
 
167
-            if (! $this->confirm('Are you sure you want to continue?')) {
167
+            if (!$this->confirm('Are you sure you want to continue?')) {
168 168
                 $this->eol()->colorize(lang('CLI.generator.cancelOperation'), 'yellow');
169 169
 
170 170
                 return;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
         // Écraser des fichiers sans le savoir est une gêne sérieuse, nous allons donc vérifier si nous dupliquons des choses,
180 180
         // si l'option "forcer" n'est pas fournie, nous renvoyons.
181
-        if (! $this->option('force') && $isFile) {
181
+        if (!$this->option('force') && $isFile) {
182 182
             $this->io->error(lang('CLI.generator.fileExist', [clean_path($target)]), true);
183 183
 
184 184
             return;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         // Vérifie si le répertoire pour enregistrer le fichier existe.
188 188
         $dir = dirname($target);
189 189
 
190
-        if (! is_dir($dir)) {
190
+        if (!is_dir($dir)) {
191 191
             mkdir($dir, 0o755, true);
192 192
         }
193 193
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         // Construisez la classe en fonction des détails dont nous disposons.
197 197
         // Nous obtiendrons le contenu de notre fichier à partir du modèle,
198 198
         // puis nous effectuerons les remplacements nécessaires.
199
-        if (! write_file($target, $content)) {
199
+        if (!write_file($target, $content)) {
200 200
             // @codeCoverageIgnoreStart
201 201
             $this->io->error(lang('CLI.generator.fileError', [clean_path($target)]), true);
202 202
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         // Vérifier que le namespace est réellement défini et que nous ne sommes pas en train de taper du charabia.
322 322
         $base = service('autoloader')->getNamespace($namespace);
323 323
 
324
-        if (! $base = reset($base)) {
324
+        if (!$base = reset($base)) {
325 325
             $this->io->error(lang('CLI.namespaceNotDefined', [$namespace]), true);
326 326
 
327 327
             return '';
Please login to merge, or discard this patch.
src/Controllers/RestController.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $this->config = (object) config('rest');
75 75
 
76 76
         $locale       = $this->config->language ?? null;
77
-        $this->locale = ! empty($locale) ? $locale : $this->request->getLocale();
77
+        $this->locale = !empty($locale) ? $locale : $this->request->getLocale();
78 78
     }
79 79
 
80 80
     public function _remap(string $method, array $params = [])
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $class = static::class;
83 83
 
84 84
         // Bien sûr qu'il existe, mais peuvent-ils en faire quelque chose ?
85
-        if (! method_exists($class, $method)) {
85
+        if (!method_exists($class, $method)) {
86 86
             return $this->respondNotImplemented($this->_translate('notImplemented', [$class, $method]));
87 87
         }
88 88
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             return $this->respondBadRequest($message, $ex->getCode(), $errors);
130 130
         }
131 131
 
132
-        if (! on_dev()) {
132
+        if (!on_dev()) {
133 133
             $url = explode('?', $this->request->getRequestTarget())[0];
134 134
 
135 135
             return $this->respondBadRequest($this->_translate('badUsed', [$url]));
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
         $response = [
183 183
             $this->config->field['message'] ?? 'message' => $message,
184 184
         ];
185
-        if (! empty($this->config->field['status'])) {
185
+        if (!empty($this->config->field['status'])) {
186 186
             $response[$this->config->field['status']] = false;
187 187
         }
188
-        if (! empty($this->config->field['code'])) {
188
+        if (!empty($this->config->field['code'])) {
189 189
             $response[$this->config->field['code']] = $code;
190 190
         }
191 191
         if ($errors !== []) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         $response = [
215 215
             $this->config->field['message'] ?? 'message' => $message,
216 216
         ];
217
-        if (! empty($this->config->field['status'])) {
217
+        if (!empty($this->config->field['status'])) {
218 218
             $response[$this->config->field['status']] = true;
219 219
         }
220 220
         if (is_array($result)) {
@@ -419,13 +419,13 @@  discard block
 block discarded – undo
419 419
         }
420 420
 
421 421
         // Si la méthode de format existe, appelle et renvoie la sortie dans ce format
422
-        if (! empty($mime)) {
422
+        if (!empty($mime)) {
423 423
             $output = Formatter::type($mime)->format($data);
424 424
 
425 425
             // Définit l'en-tête du format
426 426
             // Ensuite, vérifiez si le client a demandé un rappel, et si la sortie contient ce rappel :
427 427
             $callback = $this->request->getQuery('callback');
428
-            if (! empty($callback) && $mime === $this->mimes['json'] && preg_match('/^' . $callback . '/', $output)) {
428
+            if (!empty($callback) && $mime === $this->mimes['json'] && preg_match('/^' . $callback . '/', $output)) {
429 429
                 $this->response = $this->response->withType($this->mimes['jsonp']);
430 430
             } else {
431 431
                 $this->response = $this->response->withType($mime === $this->mimes['array'] ? $this->mimes['json'] : $mime);
@@ -481,22 +481,22 @@  discard block
 block discarded – undo
481 481
     private function checkProcess(): bool|ResponseInterface
482 482
     {
483 483
         // Verifie si la requete est en ajax
484
-        if (! $this->request->is('ajax') && $this->config->ajax_only) {
484
+        if (!$this->request->is('ajax') && $this->config->ajax_only) {
485 485
             return $this->respondNotAcceptable($this->_translate('ajaxOnly'));
486 486
         }
487 487
 
488 488
         // Verifie si la requete est en https
489
-        if (! $this->request->is('https') && $this->config->force_https) {
489
+        if (!$this->request->is('https') && $this->config->force_https) {
490 490
             return $this->respondForbidden($this->_translate('unsupported'));
491 491
         }
492 492
 
493 493
         // Verifie si la methode utilisee pour la requete est autorisee
494
-        if (! in_array(strtoupper($this->request->getMethod()), $this->config->allowed_methods, true)) {
494
+        if (!in_array(strtoupper($this->request->getMethod()), $this->config->allowed_methods, true)) {
495 495
             return $this->respondNotAcceptable($this->_translate('unknownMethod'));
496 496
         }
497 497
 
498 498
         // Verifie que l'ip qui emet la requete n'est pas dans la blacklist
499
-        if (! empty($this->config->ip_blacklis)) {
499
+        if (!empty($this->config->ip_blacklis)) {
500 500
             $this->config->ip_blacklist = implode(',', $this->config->ip_blacklist);
501 501
 
502 502
             // Correspond à une adresse IP dans une liste noire, par ex. 127.0.0.0, 0.0.0.0
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
         }
510 510
 
511 511
         // Verifie que l'ip qui emet la requete est dans la whitelist
512
-        if (! empty($this->config->ip_whitelist)) {
512
+        if (!empty($this->config->ip_whitelist)) {
513 513
             $whitelist   = $this->config->ip_whitelist;
514 514
             $whitelist[] = '127.0.0.1';
515 515
             $whitelist[] = '0.0.0.0';
@@ -517,13 +517,13 @@  discard block
 block discarded – undo
517 517
             // coupez les espaces de début et de fin des ip
518 518
             $whitelist = array_map('trim', $whitelist);
519 519
 
520
-            if (! in_array($this->request->clientIp(), $whitelist, true)) {
520
+            if (!in_array($this->request->clientIp(), $whitelist, true)) {
521 521
                 return $this->respondUnauthorized($this->_translate('ipUnauthorized'));
522 522
             }
523 523
         }
524 524
 
525 525
         // Verifie l'authentification du client
526
-        if (false !== $this->config->auth && ! $this->request->is('options') && 'bearer' === strtolower($this->config->auth)) {
526
+        if (false !== $this->config->auth && !$this->request->is('options') && 'bearer' === strtolower($this->config->auth)) {
527 527
             $token = $this->getBearerToken();
528 528
             if ($token === null || $token === '' || $token === '0') {
529 529
                 return $this->respondInvalidToken($this->_translate('tokenNotFound'));
Please login to merge, or discard this patch.
src/Http/Uri.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
             return '';
148 148
         }
149 149
 
150
-        if (! empty($userInfo = $this->getUserInfo())) {
150
+        if (!empty($userInfo = $this->getUserInfo())) {
151 151
             $authority = $userInfo . '@' . $authority;
152 152
         }
153 153
 
154 154
         // N'ajoute pas de port s'il s'agit d'un port standard pour ce schéma
155
-        if ($this->port !== null && $this->port !== 0 && ! $ignorePort && $this->port !== $this->defaultPorts[$this->scheme]) {
155
+        if ($this->port !== null && $this->port !== 0 && !$ignorePort && $this->port !== $this->defaultPorts[$this->scheme]) {
156 156
             $authority .= ':' . $this->port;
157 157
         }
158 158
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $vars = $this->query;
219 219
 
220 220
         if (array_key_exists('except', $options)) {
221
-            if (! is_array($options['except'])) {
221
+            if (!is_array($options['except'])) {
222 222
                 $options['except'] = [$options['except']];
223 223
             }
224 224
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         } elseif (array_key_exists('only', $options)) {
229 229
             $temp = [];
230 230
 
231
-            if (! is_array($options['only'])) {
231
+            if (!is_array($options['only'])) {
232 232
                 $options['only'] = [$options['only']];
233 233
             }
234 234
 
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
         }
352 352
 
353 353
         if (isset($path) && $path !== '') {
354
-            $uri .= ! str_ends_with($uri, '/')
354
+            $uri .= !str_ends_with($uri, '/')
355 355
                 ? '/' . ltrim($path, '/')
356 356
                 : ltrim($path, '/');
357 357
         }
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
     {
375 375
         $parts = parse_url($str);
376 376
 
377
-        if (! isset($parts['path'])) {
377
+        if (!isset($parts['path'])) {
378 378
             $parts['path'] = $this->getPath();
379 379
         }
380 380
 
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
         $temp = [];
624 624
 
625 625
         foreach ($this->query as $key => $value) {
626
-            if (! in_array($key, $params, true)) {
626
+            if (!in_array($key, $params, true)) {
627 627
                 continue;
628 628
             }
629 629
 
@@ -698,19 +698,19 @@  discard block
 block discarded – undo
698 698
      */
699 699
     protected function applyParts(array $parts)
700 700
     {
701
-        if (! empty($parts['host'])) {
701
+        if (!empty($parts['host'])) {
702 702
             $this->host = $parts['host'];
703 703
         }
704
-        if (! empty($parts['user'])) {
704
+        if (!empty($parts['user'])) {
705 705
             $this->user = $parts['user'];
706 706
         }
707
-        if (! empty($parts['path'])) {
707
+        if (!empty($parts['path'])) {
708 708
             $this->path = $this->filterPath($parts['path']);
709 709
         }
710
-        if (! empty($parts['query'])) {
710
+        if (!empty($parts['query'])) {
711 711
             $this->setQuery($parts['query']);
712 712
         }
713
-        if (! empty($parts['fragment'])) {
713
+        if (!empty($parts['fragment'])) {
714 714
             $this->fragment = $parts['fragment'];
715 715
         }
716 716
 
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
             $basePath = trim($baseUri->getPath(), '/') . '/';
882 882
             $trimPath = ltrim($path, '/');
883 883
 
884
-            if ($basePath !== '/' && ! str_starts_with($trimPath, $basePath)) {
884
+            if ($basePath !== '/' && !str_starts_with($trimPath, $basePath)) {
885 885
                 $path = $basePath . $trimPath;
886 886
             }
887 887
 
Please login to merge, or discard this patch.
src/Http/ServerRequest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         $this->cookies = $config['cookies'];
233 233
 
234 234
         if (isset($config['uri'])) {
235
-            if (! $config['uri'] instanceof UriInterface) {
235
+            if (!$config['uri'] instanceof UriInterface) {
236 236
                 throw new FrameworkException('The `uri` key must be an instance of ' . UriInterface::class);
237 237
             }
238 238
             $uri = $config['uri'];
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         $this->stream = $stream;
266 266
 
267 267
         $post = $config['post'];
268
-        if (! (is_array($post) || is_object($post) || $post === null)) {
268
+        if (!(is_array($post) || is_object($post) || $post === null)) {
269 269
             throw new InvalidArgumentException(sprintf(
270 270
                 'La clé `post` doit être un tableau, un objet ou null. On a obtenu `%s` à la place.',
271 271
                 get_debug_type($post)
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
         }
449 449
 
450 450
         $type = strtolower($type);
451
-        if (! isset(static::$_detectors[$type])) {
451
+        if (!isset(static::$_detectors[$type])) {
452 452
             return false;
453 453
         }
454 454
         if ($args !== []) {
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
     public function isAll(array $types): bool
601 601
     {
602 602
         foreach ($types as $type) {
603
-            if (! $this->is($type)) {
603
+            if (!$this->is($type)) {
604 604
                 return false;
605 605
             }
606 606
         }
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
     protected function normalizeHeaderName(string $name): string
705 705
     {
706 706
         $name = str_replace('-', '_', strtoupper($name));
707
-        if (! in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'], true)) {
707
+        if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'], true)) {
708 708
             $name = 'HTTP_' . $name;
709 709
         }
710 710
 
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
     {
891 891
         $new = clone $this;
892 892
 
893
-        if (! preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method)) {
893
+        if (!preg_match('/^[!#$%&\'*+.^_`\|~0-9a-z-]+$/i', $method)) {
894 894
             throw new InvalidArgumentException(sprintf(
895 895
                 'Méthode HTTP non prise en charge "%s" fournie',
896 896
                 $method
@@ -1150,7 +1150,7 @@  discard block
 block discarded – undo
1150 1150
                 }
1151 1151
             }
1152 1152
 
1153
-            if (! isset($accept[$prefValue])) {
1153
+            if (!isset($accept[$prefValue])) {
1154 1154
                 $accept[$prefValue] = [];
1155 1155
             }
1156 1156
             if ($prefValue !== '' && $prefValue !== '0') {
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
         if ($name === null) {
1229 1229
             return $this->data;
1230 1230
         }
1231
-        if (! is_array($this->data)) {
1231
+        if (!is_array($this->data)) {
1232 1232
             return $default;
1233 1233
         }
1234 1234
 
@@ -1368,7 +1368,7 @@  discard block
 block discarded – undo
1368 1368
      */
1369 1369
     public function withProtocolVersion(string $version): static
1370 1370
     {
1371
-        if (! preg_match('/^(1\.[01]|2(\.[0])?)$/', $version)) {
1371
+        if (!preg_match('/^(1\.[01]|2(\.[0])?)$/', $version)) {
1372 1372
             throw new InvalidArgumentException(sprintf('Version de protocole `%s` non prise en charge fournie.', $version));
1373 1373
         }
1374 1374
         $new           = clone $this;
@@ -1390,7 +1390,7 @@  discard block
 block discarded – undo
1390 1390
     public function getEnv(string $key, ?string $default = null): ?string
1391 1391
     {
1392 1392
         $key = strtoupper($key);
1393
-        if (! array_key_exists($key, $this->_environment) || null === $this->_environment[$key]) {
1393
+        if (!array_key_exists($key, $this->_environment) || null === $this->_environment[$key]) {
1394 1394
             $this->_environment[$key] = env($key, $default);
1395 1395
         }
1396 1396
 
@@ -1607,7 +1607,7 @@  discard block
 block discarded – undo
1607 1607
         $file = Arr::get($this->uploadedFiles, $path);
1608 1608
         if (is_array($file)) {
1609 1609
             foreach ($file as $f) {
1610
-                if (! ($f instanceof UploadedFile)) {
1610
+                if (!($f instanceof UploadedFile)) {
1611 1611
                     return null;
1612 1612
                 }
1613 1613
             }
@@ -1615,7 +1615,7 @@  discard block
 block discarded – undo
1615 1615
             return $file;
1616 1616
         }
1617 1617
 
1618
-        if (! ($file instanceof UploadedFileInterface)) {
1618
+        if (!($file instanceof UploadedFileInterface)) {
1619 1619
             return null;
1620 1620
         }
1621 1621
 
@@ -1663,7 +1663,7 @@  discard block
 block discarded – undo
1663 1663
                 continue;
1664 1664
             }
1665 1665
 
1666
-            if (! $file instanceof UploadedFileInterface) {
1666
+            if (!$file instanceof UploadedFileInterface) {
1667 1667
                 throw new InvalidArgumentException("Fichier invalide à `{$path}{$key}`");
1668 1668
             }
1669 1669
         }
@@ -1716,7 +1716,7 @@  discard block
 block discarded – undo
1716 1716
         if (empty($host = $uri->getHost())) {
1717 1717
             return $new;
1718 1718
         }
1719
-        if (! empty($port = $uri->getPort())) {
1719
+        if (!empty($port = $uri->getPort())) {
1720 1720
             $host .= ':' . $port;
1721 1721
         }
1722 1722
         $new->_environment['HTTP_HOST'] = $host;
@@ -1812,7 +1812,7 @@  discard block
 block discarded – undo
1812 1812
         $validLocales = config('app.supported_locales');
1813 1813
         // S'il ne s'agit pas d'un paramètre régional valide, définissez-le
1814 1814
         // aux paramètres régionaux par défaut du site.
1815
-        if (! in_array($locale, $validLocales, true)) {
1815
+        if (!in_array($locale, $validLocales, true)) {
1816 1816
             $locale = config('app.language');
1817 1817
         }
1818 1818
 
Please login to merge, or discard this patch.
src/Event/EventManager.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function __construct(protected array $listeners = [])
43 43
     {
44
-        if (! array_key_exists(self::WILDCARD, $this->listeners)) {
44
+        if (!array_key_exists(self::WILDCARD, $this->listeners)) {
45 45
             $this->listeners[self::WILDCARD] = [];
46 46
         }
47 47
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             return array_filter($this->listeners, static fn ($key) => $key !== self::WILDCARD, ARRAY_FILTER_USE_KEY);
53 53
         }
54 54
 
55
-        if (! array_key_exists($event, $this->listeners)) {
55
+        if (!array_key_exists($event, $this->listeners)) {
56 56
             return [];
57 57
         }
58 58
 
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function on(string $event, callable $callback, int $priority = 0): bool
78 78
     {
79
-        if (! array_key_exists($event, $this->listeners)) {
79
+        if (!array_key_exists($event, $this->listeners)) {
80 80
             $this->listeners[$event] = [];
81 81
         }
82
-        if (! array_key_exists($priority, $this->listeners[$event])) {
82
+        if (!array_key_exists($priority, $this->listeners[$event])) {
83 83
             $this->listeners[$event][$priority] = [];
84 84
         }
85 85
 
86
-        if (! in_array($callback, $this->listeners[$event][$priority], true)) {
86
+        if (!in_array($callback, $this->listeners[$event][$priority], true)) {
87 87
             $this->listeners[$event][$priority][] = $callback;
88 88
 
89 89
             return true;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function off(string $event, callable $callback): bool
107 107
     {
108
-        if (! array_key_exists($event, $this->listeners) || ! $this->listeners[$event]) {
108
+        if (!array_key_exists($event, $this->listeners) || !$this->listeners[$event]) {
109 109
             return false;
110 110
         }
111 111
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function emit($event, $target = null, $argv = [])
138 138
     {
139
-        if (! ($event instanceof EventInterface)) {
139
+        if (!($event instanceof EventInterface)) {
140 140
             $event = new Event($event, $target, $argv);
141 141
         } else {
142 142
             if ($target) {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         }
149 149
 
150 150
         $eventName = $event->getName();
151
-        if (! array_key_exists($eventName, $this->listeners)) {
151
+        if (!array_key_exists($eventName, $this->listeners)) {
152 152
             $this->listeners[$eventName] = [];
153 153
         }
154 154
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         ksort($events, SORT_NUMERIC);
159 159
 
160 160
         foreach ($events as $priority) {
161
-            if (! is_array($priority)) {
161
+            if (!is_array($priority)) {
162 162
                 continue;
163 163
             }
164 164
 
Please login to merge, or discard this patch.
src/View/Adapters/SmartyAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $this->renderVars['file'] = $this->getRenderedFile($options, $this->renderVars['view'], $this->ext);
68 68
 
69
-        if (! empty($layout = $this->layout)) {
69
+        if (!empty($layout = $this->layout)) {
70 70
             $pathinfo = pathinfo($layout, PATHINFO_EXTENSION);
71 71
             if ($pathinfo === [] || $pathinfo === '' || $pathinfo === '0') {
72 72
                 $layout .= '.' . $this->ext;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $this->engine->assign($this->data);
78 78
 
79 79
         // Doit-on mettre en cache?
80
-        if (! empty($this->renderVars['options']['cache_name']) || ! empty($this->renderVars['options']['cache'])) {
80
+        if (!empty($this->renderVars['options']['cache_name']) || !empty($this->renderVars['options']['cache'])) {
81 81
             $this->enableCache();
82 82
             $this->engine->setCacheLifetime(60 * ($this->renderVars['options']['cache'] ?? 60));
83 83
             $this->engine->setCompileId($this->renderVars['options']['cache_name'] ?? null);
Please login to merge, or discard this patch.