Completed
Push — master ( 1fcf15...b5ecd9 )
by Philipp
06:47 queued 04:14
created
src/Dialect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public function translate($routeName, $routeAttributes = null, $locale = null)
124 124
     {
125 125
         // If no locale is given, we use the current locale
126
-        if (! $locale) {
126
+        if (!$locale) {
127 127
             $locale = tongue()->current();
128 128
         }
129 129
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $routePath = Accent::findRoutePathByName($routeName);
165 165
 
166
-        if (! isset($this->translatedRoutes[$routeName])) {
166
+        if (!isset($this->translatedRoutes[$routeName])) {
167 167
             $this->translatedRoutes[$routeName] = $routePath;
168 168
         }
169 169
 
Please login to merge, or discard this patch.
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
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function current($key = null): string
46 46
     {
47
-        if (! $key) {
47
+        if (!$key) {
48 48
             return $this->locale->get();
49 49
         }
50 50
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         //fallback language is the same as the current language
90 90
         if (Config::beautify() && $this->current() === Config::fallbackLocale()) {
91 91
             //didn't found locale means browser is set to exmaple.com
92
-            if (! $locale) {
92
+            if (!$locale) {
93 93
                 return false;
94 94
             }
95 95
             //browser is set to en.example.com but should be forced back to example.com
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function speaks(string $locale)
113 113
     {
114
-        if (! $this->isSpeaking($locale)) {
114
+        if (!$this->isSpeaking($locale)) {
115 115
             //locale does not exist.
116 116
             return dialect()->redirectBackToLatest();
117 117
         }
Please login to merge, or discard this patch.