Passed
Push — main ( f19448...e589da )
by Dimitri
14:16
created
src/Router/Dispatcher.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -756,15 +756,15 @@
 block discarded – undo
756 756
         return Services::redirection()->back()->withInput()->withErrors($errors)->withStatus($code);
757 757
     }
758 758
 
759
-	/**
760
-	 * Verifie que la requete est xhr/fetch pour eviter d'afficher la toolbar dans la reponse
761
-	 */
762
-	private function isAjaxRequest(): bool
763
-	{
764
-		return $this->request->expectsJson() ||
765
-				$this->request->isJson() ||
766
-				$this->request->is('ajax') ||
767
-				$this->request->hasHeader('Hx-Request') ||
768
-				Text::contains($this->response->getType(), ['/json', '+json']);
769
-	}
759
+    /**
760
+     * Verifie que la requete est xhr/fetch pour eviter d'afficher la toolbar dans la reponse
761
+     */
762
+    private function isAjaxRequest(): bool
763
+    {
764
+        return $this->request->expectsJson() ||
765
+                $this->request->isJson() ||
766
+                $this->request->is('ajax') ||
767
+                $this->request->hasHeader('Hx-Request') ||
768
+                Text::contains($this->response->getType(), ['/json', '+json']);
769
+    }
770 770
 }
Please login to merge, or discard this patch.