Completed
Push — master ( 81d6fd...f0ec8f )
by Aitor Riba
02:22 queued 33s
created
src/Builder.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,6 @@
 block discarded – undo
82 82
     /**
83 83
      * Returns  the current language name.
84 84
      *
85
-     * @param string $ucfirst
86 85
      *
87 86
      * @return string
88 87
      */
Please login to merge, or discard this patch.
src/Migrations/2016_11_28_115831_add_locale_column.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::table('users', function ($table) {
15
+        Schema::table('users', function($table) {
16 16
             $table->string('locale')->default('en');
17 17
         });
18 18
     }
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function down()
26 26
     {
27
-        Schema::table('users', function ($table) {
27
+        Schema::table('users', function($table) {
28 28
             $table->dropColumn('locale');
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/Routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
         'as'         => 'localizer::',
7 7
         'prefix'     => config('localizer.prefix'),
8 8
         'namespace'  => 'Aitor24\Localizer\Controllers',
9
-    ], function () {
9
+    ], function() {
10 10
         Route::get('/set/{locale}/', 'LocalizerController@set')->name('setLocale');
11 11
         Route::get('/set/{locale}/home', 'LocalizerController@setHome')->name('setLocaleHome');
12 12
     });
Please login to merge, or discard this patch.
src/Controllers/LocalizerController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 class LocalizerController extends Controller
11 11
 {
12 12
     /**
13
-	 *
13
+     *
14 14
      * Set locale if it's allowed.
15 15
      *
16 16
      * @param string $locale
17 17
      * @param \Illuminate\Http\Request $request
18
-	 *
18
+     *
19 19
      **/
20 20
     private function setLocale($locale, $request)
21 21
     {
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-	 *
35
+     *
36 36
      * Set locale and return home url.
37 37
      *
38 38
      * @param string $locale
39 39
      * @param \Illuminate\Http\Request $request
40
-	 *
40
+     *
41 41
      **/
42 42
     public function setHome($locale, Request $request)
43 43
     {
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-	 *
50
+     *
51 51
      * Set locale and return back.
52 52
      *
53 53
      * @param string $locale
54 54
      * @param \Illuminate\Http\Request $request
55
-	 *
55
+     *
56 56
      **/
57 57
     public function set($locale, Request $request)
58 58
     {
Please login to merge, or discard this patch.