Passed
Push — main ( 97749d...c2190a )
by Dimitri
10:25 queued 04:01
created
src/Helpers/common.php 1 patch
Spacing   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
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/Cli/Commands/Cache/Clear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $config  = config('cache');
55 55
         $handler = $this->argument('driver', $params[0] ?? $config['handler']);
56 56
 
57
-        if (! array_key_exists($handler, $config['valid_handlers'])) {
57
+        if (!array_key_exists($handler, $config['valid_handlers'])) {
58 58
             $this->fail($handler . ' n\'est pas un gestionnaire de cache valide.');
59 59
 
60 60
             return;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $config['handler'] = $handler;
64 64
         $cache             = Services::cache($config);
65 65
 
66
-        if (! $cache->clear()) {
66
+        if (!$cache->clear()) {
67 67
             // @codeCoverageIgnoreStart
68 68
             $this->fail('Erreur lors de l\'effacement du cache.');
69 69
 
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.