Passed
Push — main ( 902994...f9905b )
by Dimitri
03:03
created
src/View/Adapters/NativeAdapter.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         // Enregistrer les variables actuelles
121 121
         $renderVars = $this->renderVars;
122 122
 
123
-        $output = (function (): string {
123
+        $output = (function(): string {
124 124
             extract($this->tempData);
125 125
             ob_start();
126 126
             include $this->renderVars['file'];
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $this->logPerformance($this->renderVars['start'], microtime(true), $this->renderVars['view']);
143 143
 
144
-        if (($this->debug && (! isset($options['debug']) || $options['debug'] === true))) {
144
+        if (($this->debug && (!isset($options['debug']) || $options['debug'] === true))) {
145 145
             if (in_array(ViewsCollector::class, config('toolbar.collectors'), true)) {
146 146
                 // Nettoyer nos noms de chemins pour les rendre un peu plus propres
147 147
                 $this->renderVars['file'] = clean_path($this->renderVars['file']);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $saveData ??= $this->saveData;
178 178
         $this->prepareTemplateData($saveData);
179 179
 
180
-        $output = (function (string $view): string {
180
+        $output = (function(string $view): string {
181 181
             extract($this->tempData);
182 182
             ob_start();
183 183
             eval('?>' . $view);
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         $section = array_pop($this->sectionStack);
321 321
 
322 322
         // Assurez-vous qu'un tableau existe afin que nous puissions stocker plusieurs entrées pour cela.
323
-        if (! array_key_exists($section, $this->sections)) {
323
+        if (!array_key_exists($section, $this->sections)) {
324 324
             $this->sections[$section] = [];
325 325
         }
326 326
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      */
357 357
     public function show(string $sectionName, bool $preserve = false)
358 358
     {
359
-        if (! isset($this->sections[$sectionName])) {
359
+        if (!isset($this->sections[$sectionName])) {
360 360
             echo '';
361 361
 
362 362
             return;
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      *
414 414
      * @alias self::insert()
415 415
      */
416
-    public function include(string $view, ?array $data = [], ?array $options = null, ?bool $saveData = null): string
416
+    public function include(string $view, ?array $data = [], ?array $options = null, ?bool $saveData = null) : string
417 417
     {
418 418
         return $this->insert($view, $data, $options, $saveData);
419 419
     }
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
     public function addLibCss(string ...$src): self
587 587
     {
588 588
         foreach ($src as $var) {
589
-            if (! in_array($var, $this->_lib_styles, true)) {
589
+            if (!in_array($var, $this->_lib_styles, true)) {
590 590
                 $this->_lib_styles[] = $var;
591 591
             }
592 592
         }
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
     public function addCss(string ...$src): self
601 601
     {
602 602
         foreach ($src as $var) {
603
-            if (! in_array($var, $this->_styles, true)) {
603
+            if (!in_array($var, $this->_styles, true)) {
604 604
                 $this->_styles[] = $var;
605 605
             }
606 606
         }
@@ -629,10 +629,10 @@  discard block
 block discarded – undo
629 629
             );
630 630
         }
631 631
 
632
-        if (! empty($lib_styles)) {
632
+        if (!empty($lib_styles)) {
633 633
             lib_styles(array_unique($lib_styles));
634 634
         }
635
-        if (! empty($styles)) {
635
+        if (!empty($styles)) {
636 636
             styles(array_unique($styles));
637 637
         }
638 638
 
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
     public function addLibJs(string ...$src): self
646 646
     {
647 647
         foreach ($src as $var) {
648
-            if (! in_array($var, $this->_lib_scripts, true)) {
648
+            if (!in_array($var, $this->_lib_scripts, true)) {
649 649
                 $this->_lib_scripts[] = $var;
650 650
             }
651 651
         }
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
     public function addJs(string ...$src): self
660 660
     {
661 661
         foreach ($src as $var) {
662
-            if (! in_array($var, $this->_scripts, true)) {
662
+            if (!in_array($var, $this->_scripts, true)) {
663 663
                 $this->_scripts[] = $var;
664 664
             }
665 665
         }
@@ -688,10 +688,10 @@  discard block
 block discarded – undo
688 688
             );
689 689
         }
690 690
 
691
-        if (! empty($lib_scripts)) {
691
+        if (!empty($lib_scripts)) {
692 692
             lib_scripts(array_unique($lib_scripts));
693 693
         }
694
-        if (! empty($scripts)) {
694
+        if (!empty($scripts)) {
695 695
             scripts(array_unique($scripts));
696 696
         }
697 697
 
Please login to merge, or discard this patch.