Completed
Push — master ( 1df51a...a5f15b )
by Philipp
07:12 queued 04:59
created
src/Localization/Localization.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             // this could be a future bug
25 25
             // when no middleware is active the language is not set right
26 26
             // domain.com could be in german etc...
27
-            if (! Config::beautify()) {
27
+            if (!Config::beautify()) {
28 28
                 // if the middleware is active we should be redirected to en.domain.com
29 29
                 // if not the fallback language is going to be used
30 30
                 return Config::fallbackLocale();
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         }
35 35
 
36 36
         // could be a custom subdomain
37
-        if (! tongue()->isSpeaking($locale)) {
37
+        if (!tongue()->isSpeaking($locale)) {
38 38
             // check if it is a white listed domain
39 39
 
40 40
             if (tongue()->speaking('subdomains', $locale)) {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected static function languageIsSet(): bool
87 87
     {
88
-        return ! app()->runningInConsole() || Arr::has(request()->server(), 'HTTP_ACCEPT_LANGUAGE');
88
+        return !app()->runningInConsole() || Arr::has(request()->server(), 'HTTP_ACCEPT_LANGUAGE');
89 89
     }
90 90
 
91 91
     /**
Please login to merge, or discard this patch.
src/Tongue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function current($key = null)
45 45
     {
46
-        if (! $key) {
46
+        if (!$key) {
47 47
             return $this->locale->get();
48 48
         }
49 49
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         //fallback language is the same as the current language
89 89
         if (Config::beautify() && $this->current() === Config::fallbackLocale()) {
90 90
             //didn't found locale means browser is set to exmaple.com
91
-            if (! $locale) {
91
+            if (!$locale) {
92 92
                 return false;
93 93
             }
94 94
             //browser is set to en.example.com but should be forced back to example.com
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function speaks(string $locale)
112 112
     {
113
-        if (! $this->isSpeaking($locale)) {
113
+        if (!$this->isSpeaking($locale)) {
114 114
             //locale does not exist.
115 115
             return dialect()->redirectBackToLatest();
116 116
         }
Please login to merge, or discard this patch.