@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | * |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | // ================================= FONCTIONS UTIILITAIRES ESSENTIELLES ================================= // |
33 | 33 | |
34 | -if (! function_exists('env')) { |
|
34 | +if (!function_exists('env')) { |
|
35 | 35 | /** |
36 | 36 | * Obtient une variable d'environnement à partir des sources disponibles et fournit une émulation |
37 | 37 | * pour les variables d'environnement non prises en charge ou incohérentes |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | } |
49 | 49 | |
50 | -if (! function_exists('helper')) { |
|
50 | +if (!function_exists('helper')) { |
|
51 | 51 | /** |
52 | 52 | * Charge un fichier d'aide en mémoire. Prend en charge les assistants d'espace de noms, |
53 | 53 | * à la fois dans et hors du répertoire 'helpers' d'un répertoire à espace de noms. |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
66 | -if (! function_exists('model')) { |
|
66 | +if (!function_exists('model')) { |
|
67 | 67 | /** |
68 | 68 | * Simple maniere d'obtenir un modele. |
69 | 69 | * |
@@ -73,13 +73,13 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @return T |
75 | 75 | */ |
76 | - function model(array|string $name, ?ConnectionInterface &$conn = null) |
|
76 | + function model(array|string $name, ?ConnectionInterface&$conn = null) |
|
77 | 77 | { |
78 | 78 | return Load::model($name, $conn); |
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | -if (! function_exists('service')) { |
|
82 | +if (!function_exists('service')) { |
|
83 | 83 | /** |
84 | 84 | * Permet un accès plus propre au fichier de configuration des services. |
85 | 85 | * Renvoie toujours une instance SHARED de la classe, donc l'appel de la fonction plusieurs fois renvera toujours la même instance. |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
103 | -if (! function_exists('single_service')) { |
|
103 | +if (!function_exists('single_service')) { |
|
104 | 104 | /** |
105 | 105 | * Autoriser l'accès propre à un service. |
106 | 106 | * Renvoie toujours une nouvelle instance de la classe. |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | } |
121 | 121 | } |
122 | 122 | |
123 | -if (! function_exists('show404')) { |
|
123 | +if (!function_exists('show404')) { |
|
124 | 124 | /** |
125 | 125 | * Afficher une page 404 introuvable dans le navigateur |
126 | 126 | */ |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
133 | -if (! function_exists('command')) { |
|
133 | +if (!function_exists('command')) { |
|
134 | 134 | /** |
135 | 135 | * Exécute une seule commande. |
136 | 136 | * Entrée attendue dans une seule chaîne comme celle qui serait utilisée sur la ligne de commande elle-même : |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | } |
194 | 194 | } |
195 | 195 | |
196 | -if (! function_exists('config')) { |
|
196 | +if (!function_exists('config')) { |
|
197 | 197 | /** |
198 | 198 | * GET/SET App config |
199 | 199 | * |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | } |
225 | 225 | |
226 | -if (! function_exists('logger')) { |
|
226 | +if (!function_exists('logger')) { |
|
227 | 227 | /** |
228 | 228 | * Une méthode de commodité pour les événements de journalisation via le système Log. |
229 | 229 | * |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | } |
254 | 254 | } |
255 | 255 | |
256 | -if (! function_exists('cache')) { |
|
256 | +if (!function_exists('cache')) { |
|
257 | 257 | /** |
258 | 258 | * Une méthode pratique qui donne accès au cache |
259 | 259 | * objet. Si aucun paramètre n'est fourni, renverra l'objet, |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | } |
284 | 284 | } |
285 | 285 | |
286 | -if (! function_exists('cookie')) { |
|
286 | +if (!function_exists('cookie')) { |
|
287 | 287 | /** |
288 | 288 | * Une méthode pratique qui donne accès à l'objet cookie. |
289 | 289 | * Si aucun paramètre n'est fourni, renverra l'objet, |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | } |
312 | 312 | } |
313 | 313 | |
314 | -if (! function_exists('session')) { |
|
314 | +if (!function_exists('session')) { |
|
315 | 315 | /** |
316 | 316 | * Une méthode pratique pour accéder à l'instance de session, ou un élément qui a été défini dans la session. |
317 | 317 | * |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | |
337 | 337 | // =========================== FONCTIONS DE PREVENTION D'ATTAQUE =========================== // |
338 | 338 | |
339 | -if (! function_exists('esc')) { |
|
339 | +if (!function_exists('esc')) { |
|
340 | 340 | /** |
341 | 341 | * Effectue un simple échappement automatique des données pour des raisons de sécurité. |
342 | 342 | * Pourrait envisager de rendre cela plus complexe à une date ultérieure. |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | } |
364 | 364 | } |
365 | 365 | |
366 | -if (! function_exists('h')) { |
|
366 | +if (!function_exists('h')) { |
|
367 | 367 | /** |
368 | 368 | * Méthode pratique pour htmlspecialchars. |
369 | 369 | * |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | } |
383 | 383 | } |
384 | 384 | |
385 | -if (! function_exists('purify')) { |
|
385 | +if (!function_exists('purify')) { |
|
386 | 386 | /** |
387 | 387 | * Purifiez l'entrée à l'aide de la classe autonome HTMLPurifier. |
388 | 388 | * Utilisez facilement plusieurs configurations de purificateur. |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | } |
399 | 399 | } |
400 | 400 | |
401 | -if (! function_exists('remove_invisible_characters')) { |
|
401 | +if (!function_exists('remove_invisible_characters')) { |
|
402 | 402 | /** |
403 | 403 | * Supprimer les caractères invisibles |
404 | 404 | * |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | } |
412 | 412 | } |
413 | 413 | |
414 | -if (! function_exists('stringify_attributes')) { |
|
414 | +if (!function_exists('stringify_attributes')) { |
|
415 | 415 | /** |
416 | 416 | * Chaîner les attributs à utiliser dans les balises HTML. |
417 | 417 | * |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | |
426 | 426 | // ================================= FONCTIONS DE FORMULAIRE ================================= // |
427 | 427 | |
428 | -if (! function_exists('csrf_token')) { |
|
428 | +if (!function_exists('csrf_token')) { |
|
429 | 429 | /** |
430 | 430 | * Renvoie la valeur de hachage actuelle pour la protection CSRF. |
431 | 431 | * Peut être utilisé dans les vues lors de la construction manuelle d'input cachées, ou utilisé dans les variables javascript pour l'utilisation de l'API. |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | } |
437 | 437 | } |
438 | 438 | |
439 | -if (! function_exists('csrf_field')) { |
|
439 | +if (!function_exists('csrf_field')) { |
|
440 | 440 | /** |
441 | 441 | * Génère un champ input caché à utiliser dans les formulaires générés manuellement. |
442 | 442 | */ |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | } |
449 | 449 | } |
450 | 450 | |
451 | -if (! function_exists('csrf_meta')) { |
|
451 | +if (!function_exists('csrf_meta')) { |
|
452 | 452 | /** |
453 | 453 | * Génère une balise méta à utiliser dans les appels javascript. |
454 | 454 | */ |
@@ -460,13 +460,13 @@ discard block |
||
460 | 460 | } |
461 | 461 | } |
462 | 462 | |
463 | -if (! function_exists('method_field')) { |
|
463 | +if (!function_exists('method_field')) { |
|
464 | 464 | /** |
465 | 465 | * Générer un champ de formulaire pour usurper le verbe HTTP utilisé par les formulaires. |
466 | 466 | */ |
467 | 467 | function method_field(string $method): string |
468 | 468 | { |
469 | - if (! in_array($method = strtoupper($method), ['PUT', 'POST', 'DELETE', 'PATCH'], true)) { |
|
469 | + if (!in_array($method = strtoupper($method), ['PUT', 'POST', 'DELETE', 'PATCH'], true)) { |
|
470 | 470 | throw new InvalidArgumentException(sprintf('Methode %s invalide', $method)); |
471 | 471 | } |
472 | 472 | |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | |
477 | 477 | // ================================= FONCTIONS D'ENVIRONNEMENT D'EXECUTION ================================= // |
478 | 478 | |
479 | -if (! function_exists('environment')) { |
|
479 | +if (!function_exists('environment')) { |
|
480 | 480 | /** |
481 | 481 | * Renvoi l'environnement d'execution actuel ou determine si on est dans un environnement specifie |
482 | 482 | * |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | } |
515 | 515 | } |
516 | 516 | |
517 | -if (! function_exists('on_dev')) { |
|
517 | +if (!function_exists('on_dev')) { |
|
518 | 518 | /** |
519 | 519 | * Testez pour voir si nous sommes dans un environnement de développement. |
520 | 520 | */ |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | } |
529 | 529 | } |
530 | 530 | |
531 | -if (! function_exists('on_prod')) { |
|
531 | +if (!function_exists('on_prod')) { |
|
532 | 532 | /** |
533 | 533 | * Testez pour voir si nous sommes dans un environnement de production. |
534 | 534 | */ |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | } |
543 | 543 | } |
544 | 544 | |
545 | -if (! function_exists('on_test')) { |
|
545 | +if (!function_exists('on_test')) { |
|
546 | 546 | /** |
547 | 547 | * Testez pour voir si nous sommes dans un environnement de test |
548 | 548 | */ |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | } |
553 | 553 | } |
554 | 554 | |
555 | -if (! function_exists('is_cli')) { |
|
555 | +if (!function_exists('is_cli')) { |
|
556 | 556 | /** |
557 | 557 | * Testez pour voir si une demande a été faite à partir de la ligne de commande. |
558 | 558 | */ |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | } |
563 | 563 | } |
564 | 564 | |
565 | -if (! function_exists('is_php')) { |
|
565 | +if (!function_exists('is_php')) { |
|
566 | 566 | /** |
567 | 567 | * Détermine si la version actuelle de PHP est égale ou supérieure à la valeur fournie. |
568 | 568 | */ |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | } |
573 | 573 | } |
574 | 574 | |
575 | -if (! function_exists('is_windows')) { |
|
575 | +if (!function_exists('is_windows')) { |
|
576 | 576 | /** |
577 | 577 | * Déterminez si l'environnement actuel est basé sur Windows. |
578 | 578 | */ |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | } |
583 | 583 | } |
584 | 584 | |
585 | -if (! function_exists('is_https')) { |
|
585 | +if (!function_exists('is_https')) { |
|
586 | 586 | /** |
587 | 587 | * Determines if the application is accessed via an encrypted * (HTTPS) connection. |
588 | 588 | */ |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | } |
593 | 593 | } |
594 | 594 | |
595 | -if (! function_exists('is_localfile')) { |
|
595 | +if (!function_exists('is_localfile')) { |
|
596 | 596 | /** |
597 | 597 | * Vérifiez si le fichier auquel vous souhaitez accéder est un fichier local de votre application ou non |
598 | 598 | */ |
@@ -602,11 +602,11 @@ discard block |
||
602 | 602 | return true; |
603 | 603 | } |
604 | 604 | |
605 | - return ! preg_match('#^(https?://)#i', $name); |
|
605 | + return !preg_match('#^(https?://)#i', $name); |
|
606 | 606 | } |
607 | 607 | } |
608 | 608 | |
609 | -if (! function_exists('is_online')) { |
|
609 | +if (!function_exists('is_online')) { |
|
610 | 610 | /** |
611 | 611 | * Tester si l'application s'exécute en local ou en ligne. |
612 | 612 | */ |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | } |
617 | 617 | } |
618 | 618 | |
619 | -if (! function_exists('is_connected')) { |
|
619 | +if (!function_exists('is_connected')) { |
|
620 | 620 | /** |
621 | 621 | * Verifie si l'utilisateur a une connexion internet active. |
622 | 622 | */ |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | } |
627 | 627 | } |
628 | 628 | |
629 | -if (! function_exists('is_ajax_request')) { |
|
629 | +if (!function_exists('is_ajax_request')) { |
|
630 | 630 | /** |
631 | 631 | * Testez pour voir si une requête contient l'en-tête HTTP_X_REQUESTED_WITH. |
632 | 632 | */ |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | } |
637 | 637 | } |
638 | 638 | |
639 | -if (! function_exists('redirection')) { |
|
639 | +if (!function_exists('redirection')) { |
|
640 | 640 | /** |
641 | 641 | * Redirige l'utilisateur |
642 | 642 | */ |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | } |
651 | 651 | } |
652 | 652 | |
653 | -if (! function_exists('redirect')) { |
|
653 | +if (!function_exists('redirect')) { |
|
654 | 654 | /** |
655 | 655 | * Méthode pratique qui fonctionne avec la $request globale actuelle et |
656 | 656 | * l'instance $router à rediriger à l'aide de routes nommées et le routage inversé |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | } |
673 | 673 | } |
674 | 674 | |
675 | -if (! function_exists('back')) { |
|
675 | +if (!function_exists('back')) { |
|
676 | 676 | /** |
677 | 677 | * Retourne a la page precedente |
678 | 678 | * |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | } |
685 | 685 | } |
686 | 686 | |
687 | -if (! function_exists('link_to')) { |
|
687 | +if (!function_exists('link_to')) { |
|
688 | 688 | /** |
689 | 689 | * Étant donné une chaîne de contrôleur/méthode et tous les paramètres, |
690 | 690 | * tentera de créer l'URL relative à la route correspondante. |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | } |
705 | 705 | } |
706 | 706 | |
707 | -if (! function_exists('clean_path')) { |
|
707 | +if (!function_exists('clean_path')) { |
|
708 | 708 | /** |
709 | 709 | * Une méthode pratique pour nettoyer les chemins pour |
710 | 710 | * une sortie plus belle. Utile pour les exceptions |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | } |
726 | 726 | } |
727 | 727 | |
728 | -if (! function_exists('old')) { |
|
728 | +if (!function_exists('old')) { |
|
729 | 729 | /** |
730 | 730 | * Fournit l'accès à "entrée ancienne" qui a été définie dans la session lors d'un redirect()-withInput(). |
731 | 731 | * |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | function old(string $key, $default = null, $escape = 'html') |
739 | 739 | { |
740 | 740 | // Assurez-vous de charger la session |
741 | - if (session_status() === PHP_SESSION_NONE && ! on_test()) { |
|
741 | + if (session_status() === PHP_SESSION_NONE && !on_test()) { |
|
742 | 742 | session(); // @codeCoverageIgnore |
743 | 743 | } |
744 | 744 | |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | |
754 | 754 | // ================================= FONCTIONS DE DEBOGAGE ================================= // |
755 | 755 | |
756 | -if (! function_exists('deprecationWarning')) { |
|
756 | +if (!function_exists('deprecationWarning')) { |
|
757 | 757 | /** |
758 | 758 | * Méthode d'assistance pour générer des avertissements d'obsolescence |
759 | 759 | * |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | } |
768 | 768 | } |
769 | 769 | |
770 | -if (! function_exists('pr')) { |
|
770 | +if (!function_exists('pr')) { |
|
771 | 771 | /** |
772 | 772 | * print_r() convenience function. |
773 | 773 | * |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | } |
790 | 790 | } |
791 | 791 | |
792 | -if (! function_exists('pj')) { |
|
792 | +if (!function_exists('pj')) { |
|
793 | 793 | /** |
794 | 794 | * json pretty print convenience function. |
795 | 795 | * |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | } |
811 | 811 | } |
812 | 812 | |
813 | -if (! function_exists('trigger_warning')) { |
|
813 | +if (!function_exists('trigger_warning')) { |
|
814 | 814 | /** |
815 | 815 | * Déclenche un E_USER_WARNING. |
816 | 816 | */ |
@@ -822,7 +822,7 @@ discard block |
||
822 | 822 | |
823 | 823 | // ================================= FONCTIONS DIVERSES ================================= // |
824 | 824 | |
825 | -if (! function_exists('force_https')) { |
|
825 | +if (!function_exists('force_https')) { |
|
826 | 826 | /** |
827 | 827 | * Utilisé pour forcer l'accès à une page via HTTPS. |
828 | 828 | * Utilise une redirection standard, plus définira l'en-tête HSTS |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | |
850 | 850 | // Si la session est active, nous devons régénérer |
851 | 851 | // l'ID de session pour des raisons de sécurité. |
852 | - if (! on_test() && session_status() === PHP_SESSION_ACTIVE) { |
|
852 | + if (!on_test() && session_status() === PHP_SESSION_ACTIVE) { |
|
853 | 853 | Services::session()->regenerate(); // @codeCoverageIgnore |
854 | 854 | } |
855 | 855 | |
@@ -865,7 +865,7 @@ discard block |
||
865 | 865 | } |
866 | 866 | } |
867 | 867 | |
868 | -if (! function_exists('get_type_name')) { |
|
868 | +if (!function_exists('get_type_name')) { |
|
869 | 869 | /** |
870 | 870 | * Renvoie la classe d'objets ou le type var de ce n'est pas un objet |
871 | 871 | * |
@@ -879,7 +879,7 @@ discard block |
||
879 | 879 | } |
880 | 880 | } |
881 | 881 | |
882 | -if (! function_exists('ip_address')) { |
|
882 | +if (!function_exists('ip_address')) { |
|
883 | 883 | /** |
884 | 884 | * Renvoie l'adresse IP de l'utilisateur actuel |
885 | 885 | */ |
@@ -889,7 +889,7 @@ discard block |
||
889 | 889 | } |
890 | 890 | } |
891 | 891 | |
892 | -if (! function_exists('is_really_writable')) { |
|
892 | +if (!function_exists('is_really_writable')) { |
|
893 | 893 | /** |
894 | 894 | * Tests d'inscriptibilité des fichiers |
895 | 895 | */ |
@@ -899,7 +899,7 @@ discard block |
||
899 | 899 | } |
900 | 900 | } |
901 | 901 | |
902 | -if (! function_exists('lang')) { |
|
902 | +if (!function_exists('lang')) { |
|
903 | 903 | /** |
904 | 904 | * Une méthode pratique pour traduire une chaîne ou un tableau d'entrées et formater |
905 | 905 | * le résultat avec le MessageFormatter de l'extension intl. |
@@ -910,7 +910,7 @@ discard block |
||
910 | 910 | } |
911 | 911 | } |
912 | 912 | |
913 | -if (! function_exists('__')) { |
|
913 | +if (!function_exists('__')) { |
|
914 | 914 | /** |
915 | 915 | * Une méthode pratique pour traduire une chaîne ou un tableau d'entrées et formater |
916 | 916 | * le résultat avec le MessageFormatter de l'extension intl. |
@@ -923,7 +923,7 @@ discard block |
||
923 | 923 | } |
924 | 924 | } |
925 | 925 | |
926 | -if (! function_exists('namespace_split')) { |
|
926 | +if (!function_exists('namespace_split')) { |
|
927 | 927 | /** |
928 | 928 | * Séparez l'espace de noms du nom de classe. |
929 | 929 | * |
@@ -944,7 +944,7 @@ discard block |
||
944 | 944 | } |
945 | 945 | } |
946 | 946 | |
947 | -if (! function_exists('view_exist')) { |
|
947 | +if (!function_exists('view_exist')) { |
|
948 | 948 | /** |
949 | 949 | * Verifie si un fichier de vue existe. Utile pour limiter les failles include |
950 | 950 | */ |
@@ -954,7 +954,7 @@ discard block |
||
954 | 954 | } |
955 | 955 | } |
956 | 956 | |
957 | -if (! function_exists('view')) { |
|
957 | +if (!function_exists('view')) { |
|
958 | 958 | /** |
959 | 959 | * Saisit la classe compatible avec le RendererInterface et lui demande d'effectuer le rendu de la vue spécifiée. |
960 | 960 | * Fournit simplement une méthode de commodité qui peut être utilisée dans les contrôleurs, les bibliothèques et les routes sous forme de closure. |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | } |
970 | 970 | } |
971 | 971 | |
972 | -if (! function_exists('component')) { |
|
972 | +if (!function_exists('component')) { |
|
973 | 973 | /** |
974 | 974 | * Les composants de vue sont utilisées dans les vues pour insérer des morceaux de HTML qui sont gérés par d'autres classes. |
975 | 975 | * |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | } |
986 | 986 | } |
987 | 987 | |
988 | -if (! function_exists('flash')) { |
|
988 | +if (!function_exists('flash')) { |
|
989 | 989 | /** |
990 | 990 | * Fournisseur d'acces rapide a la classe PHP Flash |
991 | 991 | * |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | }*/ |
1018 | 1018 | } |
1019 | 1019 | |
1020 | -if (! function_exists('geo_ip')) { |
|
1020 | +if (!function_exists('geo_ip')) { |
|
1021 | 1021 | /** |
1022 | 1022 | * Recuperation des coordonnees (pays, ville, etc) d'un utilisateur en fonction de son ip |
1023 | 1023 | */ |
@@ -1027,7 +1027,7 @@ discard block |
||
1027 | 1027 | } |
1028 | 1028 | } |
1029 | 1029 | |
1030 | -if (! function_exists('to_stream')) { |
|
1030 | +if (!function_exists('to_stream')) { |
|
1031 | 1031 | /** |
1032 | 1032 | * Créez un nouveau flux basé sur le type d'entrée. |
1033 | 1033 | * |
@@ -1048,7 +1048,7 @@ discard block |
||
1048 | 1048 | } |
1049 | 1049 | } |
1050 | 1050 | |
1051 | -if (! function_exists('value')) { |
|
1051 | +if (!function_exists('value')) { |
|
1052 | 1052 | /** |
1053 | 1053 | * Renvoie la valeur par défaut de la valeur donnée. |
1054 | 1054 | */ |
@@ -1058,7 +1058,7 @@ discard block |
||
1058 | 1058 | } |
1059 | 1059 | } |
1060 | 1060 | |
1061 | -if (! function_exists('collect')) { |
|
1061 | +if (!function_exists('collect')) { |
|
1062 | 1062 | /** |
1063 | 1063 | * Créez une collection à partir de la valeur donnée. |
1064 | 1064 | */ |
@@ -1068,7 +1068,7 @@ discard block |
||
1068 | 1068 | } |
1069 | 1069 | } |
1070 | 1070 | |
1071 | -if (! function_exists('with')) { |
|
1071 | +if (!function_exists('with')) { |
|
1072 | 1072 | /** |
1073 | 1073 | * Renvoie la valeur donnée, éventuellement transmise via le rappel donné. |
1074 | 1074 | * |
@@ -1080,7 +1080,7 @@ discard block |
||
1080 | 1080 | } |
1081 | 1081 | } |
1082 | 1082 | |
1083 | -if (! function_exists('tap')) { |
|
1083 | +if (!function_exists('tap')) { |
|
1084 | 1084 | /** |
1085 | 1085 | * Appelez la Closure donnée avec cette instance puis renvoyez l'instance. |
1086 | 1086 | */ |
@@ -1090,7 +1090,7 @@ discard block |
||
1090 | 1090 | } |
1091 | 1091 | } |
1092 | 1092 | |
1093 | -if (! function_exists('last')) { |
|
1093 | +if (!function_exists('last')) { |
|
1094 | 1094 | /** |
1095 | 1095 | * Recupere le dernier element d'un tableau |
1096 | 1096 | * |
@@ -1106,7 +1106,7 @@ discard block |
||
1106 | 1106 | } |
1107 | 1107 | } |
1108 | 1108 | |
1109 | -if (! function_exists('invade')) { |
|
1109 | +if (!function_exists('invade')) { |
|
1110 | 1110 | /** |
1111 | 1111 | * Cette classe offre une fonction d'invasion qui vous permettra de lire / écrire des propriétés privées d'un objet. |
1112 | 1112 | * Il vous permettra également de définir, obtenir et appeler des méthodes privées. |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | collect(static::$data) |
80 | 80 | ->map( |
81 | 81 | static fn ($items) => collect($items) |
82 | - ->map(static function ($value) { |
|
82 | + ->map(static function($value) { |
|
83 | 83 | if (is_array($value)) { |
84 | 84 | return [$value]; |
85 | 85 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | ->all(); |
95 | 95 | })->flatten(1) |
96 | 96 | ) |
97 | - ->sortBy(static function ($data, $key) { |
|
97 | + ->sortBy(static function($data, $key) { |
|
98 | 98 | $index = array_search($key, ['Environnement', 'Cache', 'Gestionnaires'], true); |
99 | 99 | |
100 | 100 | return $index === false ? 99 : $index; |
@@ -118,14 +118,14 @@ discard block |
||
118 | 118 | */ |
119 | 119 | protected function displayDetail(Collection $data): void |
120 | 120 | { |
121 | - $data->each(function ($data, $section): void { |
|
121 | + $data->each(function($data, $section): void { |
|
122 | 122 | $this->newLine(); |
123 | 123 | |
124 | 124 | $this->justify($section, '', ['first' => ['fg' => Color::GREEN]]); |
125 | 125 | |
126 | - $data->pipe(static fn ($data) => $section !== 'Environnement' ? $data->sort() : $data)->each(function ($detail): void { |
|
126 | + $data->pipe(static fn ($data) => $section !== 'Environnement' ? $data->sort() : $data)->each(function($detail): void { |
|
127 | 127 | [$label, $value] = $detail; |
128 | - if (! in_array($label, static::$displayed, true)) { |
|
128 | + if (!in_array($label, static::$displayed, true)) { |
|
129 | 129 | $this->justify($label, value($value, false)); |
130 | 130 | static::$displayed[] = $label; |
131 | 131 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | static::addToSection('Gestionnaires', static fn () => array_filter([ |
181 | 181 | 'Cache' => config('cache.handler'), |
182 | - 'Logs' => static function ($json) { |
|
182 | + 'Logs' => static function($json) { |
|
183 | 183 | $handlers = []; |
184 | 184 | |
185 | 185 | foreach (config('log.handlers') as $k => $v) { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | */ |
253 | 253 | public static function format(mixed $value, ?Closure $console = null, ?Closure $json = null) |
254 | 254 | { |
255 | - return static function ($isJson) use ($value, $console, $json) { |
|
255 | + return static function($isJson) use ($value, $console, $json) { |
|
256 | 256 | if ($isJson === true && $json instanceof Closure) { |
257 | 257 | return value($json, $value); |
258 | 258 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | foreach ($options as $key => $value) { |
160 | 160 | $key = preg_replace('/^\-\-/', '', $key); |
161 | - if (! isset($options[$key])) { |
|
161 | + if (!isset($options[$key])) { |
|
162 | 162 | $options[$key] = $value; |
163 | 163 | } |
164 | 164 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function commandExists(string $commandName): bool |
173 | 173 | { |
174 | - return ! empty($this->_commands[$commandName]); |
|
174 | + return !empty($this->_commands[$commandName]); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | foreach ($files as $file) { |
207 | 207 | $className = $locator->findQualifiedNameFromPath($file); |
208 | 208 | |
209 | - if ($className === false || ! class_exists($className)) { |
|
209 | + if ($className === false || !class_exists($className)) { |
|
210 | 210 | continue; |
211 | 211 | } |
212 | 212 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | $class = new ReflectionClass($className); |
233 | 233 | $logger = $logger ?: Services::logger(); |
234 | 234 | |
235 | - if (! $class->isInstantiable() || ! $class->isSubclassOf(Command::class)) { |
|
235 | + if (!$class->isInstantiable() || !$class->isSubclassOf(Command::class)) { |
|
236 | 236 | throw CLIException::invalidCommand($className); |
237 | 237 | } |
238 | 238 | |
@@ -259,13 +259,13 @@ discard block |
||
259 | 259 | $value = (array) $value; |
260 | 260 | |
261 | 261 | $description = $value[0]; |
262 | - if (! is_string($description)) { |
|
262 | + if (!is_string($description)) { |
|
263 | 263 | continue; |
264 | 264 | } |
265 | 265 | |
266 | 266 | $default = $value[1] ?? null; |
267 | 267 | $filter = $value[2] ?? null; |
268 | - if ($filter !== null && ! is_callable($filter)) { |
|
268 | + if ($filter !== null && !is_callable($filter)) { |
|
269 | 269 | $filter = null; |
270 | 270 | } |
271 | 271 | |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | $value = (array) $value; |
278 | 278 | |
279 | 279 | $description = $value[0]; |
280 | - if (! is_string($description)) { |
|
280 | + if (!is_string($description)) { |
|
281 | 281 | continue; |
282 | 282 | } |
283 | 283 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | } |
288 | 288 | |
289 | 289 | $console = $this; |
290 | - $action = function (?array $arguments = [], ?array $options = [], ?bool $suppress = null) use ($instance, $command, $console) { |
|
290 | + $action = function(?array $arguments = [], ?array $options = [], ?bool $suppress = null) use ($instance, $command, $console) { |
|
291 | 291 | foreach ($instance->required as $package) { |
292 | 292 | $package = explode(':', $package); |
293 | 293 | $version = $package[1] ?? null; |
@@ -296,9 +296,9 @@ discard block |
||
296 | 296 | /** @var Interactor $io */ |
297 | 297 | $io = $this->io(); |
298 | 298 | |
299 | - if (! InstalledVersions::isInstalled($package)) { |
|
299 | + if (!InstalledVersions::isInstalled($package)) { |
|
300 | 300 | $io->info('Cette commande nécessite le package "' . $package . '" mais vous ne l\'avez pas', true); |
301 | - if (! $io->confirm('Voulez-vous l\'installer maintenant ?')) { |
|
301 | + if (!$io->confirm('Voulez-vous l\'installer maintenant ?')) { |
|
302 | 302 | return; |
303 | 303 | } |
304 | 304 | |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | } |
315 | 315 | |
316 | 316 | $suppress = $suppress ?: $console->suppress; |
317 | - if (! $suppress) { |
|
317 | + if (!$suppress) { |
|
318 | 318 | $console->start($instance); |
319 | 319 | } |
320 | 320 | |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | |
330 | 330 | $result = $instance->setOptions($options)->setArguments($arguments)->execute($parameters); |
331 | 331 | |
332 | - if (! $suppress) { |
|
332 | + if (!$suppress) { |
|
333 | 333 | $console->end(); |
334 | 334 | } |
335 | 335 | |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | |
345 | 345 | private function registerException(Logger $logger) |
346 | 346 | { |
347 | - $this->onException(static function (Throwable $e, int $exitCode) use ($logger): void { |
|
347 | + $this->onException(static function(Throwable $e, int $exitCode) use ($logger): void { |
|
348 | 348 | $logger->error((string) $e, ['exitCode' => $exitCode, 'klinge' => true]); |
349 | 349 | |
350 | 350 | throw new CLIException($e->getMessage(), $exitCode, $e); |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; |
43 | 43 | |
44 | 44 | return RectorConfig::configure() |
45 | - ->withPhpSets(php81: true) |
|
46 | - ->withPreparedSets(deadCode: true) |
|
47 | - ->withParallel(120, 8, 10) |
|
45 | + ->withPhpSets(php81: true) |
|
46 | + ->withPreparedSets(deadCode: true) |
|
47 | + ->withParallel(120, 8, 10) |
|
48 | 48 | ->withCache( |
49 | 49 | // Github action cache or local |
50 | 50 | is_dir('/tmp') ? '/tmp/rector' : null, |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | ->withPHPStanConfigs([ |
63 | 63 | // __DIR__ . '/phpstan.neon.dist', |
64 | 64 | ]) |
65 | - // is there a file you need to skip? |
|
65 | + // is there a file you need to skip? |
|
66 | 66 | ->withSkip([ |
67 | 67 | __DIR__ . '/src/Debug/Toolbar/Views/toolbar.tpl.php', |
68 | 68 | __DIR__ . '/spec/support/application/app/Views', |
@@ -120,5 +120,5 @@ discard block |
||
120 | 120 | StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true, |
121 | 121 | ]) |
122 | 122 | |
123 | - ; |
|
123 | + ; |
|
124 | 124 |
@@ -81,7 +81,7 @@ |
||
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, |