Completed
Pull Request — 1.0 (#19)
by Vagner Luz do
02:11
created
src/LanguageDetector.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     protected $cookie;
39 39
 
40 40
     /**
41
-     * @param SymfonyTranslator|IlluminateTranslator $translator
41
+     * @param SymfonyTranslator $translator
42 42
      * @param Driver     $driver
43 43
      */
44 44
     public function __construct($translator, Driver $driver = null)
Please login to merge, or discard this patch.
src/Support/helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('parse_langs_to_array')) {
3
+if (!function_exists('parse_langs_to_array')) {
4 4
     /**
5 5
      * Parse a simple string comma-separated to array.
6 6
      * @see split_srt_to_simple_array.
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
                 $newAlias = strtolower($lang).'_'.strtoupper($locale);
27 27
 
28
-                if (! isset($languages[$newAlias])) {
28
+                if (!isset($languages[$newAlias])) {
29 29
                     $languages[$newAlias] = $langLocale;
30 30
                 }
31 31
             }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     }
36 36
 }
37 37
 
38
-if (! function_exists('split_str_to_simple_array')) {
38
+if (!function_exists('split_str_to_simple_array')) {
39 39
     /**
40 40
      * Parse a simple string comma-separated to array. It also allow to use simple
41 41
      * indexes, like: "something:awesome, locale:pt-br, country:brazil".
Please login to merge, or discard this patch.
src/Providers/LanguageDetectorServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     protected function registerEncryptCookies()
90 90
     {
91 91
         $this->app->resolving('Illuminate\Cookie\Middleware\EncryptCookies', function ($middleware) {
92
-            if ($this->config('cookie', true) && ! $this->config('cookie_encrypt', false)) {
92
+            if ($this->config('cookie', true) && !$this->config('cookie_encrypt', false)) {
93 93
                 $middleware->disableFor($this->config('cookie_name', 'locale'));
94 94
             }
95 95
         });
Please login to merge, or discard this patch.