Completed
Push — master ( 5b0d51...78f892 )
by Oscar
05:23
created
src/Providers/Middleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function getFactories()
16 16
     {
17 17
         return [
18
-            'middleware' => function (App $app): Dispatcher {
18
+            'middleware' => function(App $app): Dispatcher {
19 19
                 $middleware = [];
20 20
 
21 21
                 $middleware[] = new Middlewares\Expires();
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                 $middleware[] = new Middlewares\ContentType();
25 25
                 $middleware[] = new Middlewares\ContentLanguage(['en', 'gl', 'es']);
26 26
 
27
-                $middleware[] = function ($request, $next) use ($app) {
27
+                $middleware[] = function($request, $next) use ($app) {
28 28
                     $language = $request->getHeaderLine('Accept-Language');
29 29
                     $translator = (new Translator())->loadTranslations(dirname(dirname(__DIR__)).'/locales/'.$language.'.php');
30 30
                     $prev = TranslatorFunctions::register($translator);
Please login to merge, or discard this patch.
locales/es.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1
-<?php return array (
1
+<?php return array(
2 2
   'domain' => 'messages',
3 3
   'plural-forms' => NULL,
4 4
   'messages' => 
5
-  array (
5
+  array(
6 6
     'search' => 
7
-    array (
7
+    array(
8 8
       'Search %s...' => 'Buscar %s...',
9 9
       'More results' => 'Más resultados',
10 10
       'No items found' => 'No se encontraron resultados',
11 11
     ),
12 12
     '' => 
13
-    array (
13
+    array(
14 14
       'Data saved successfully' => 'Datos guardados correctamente',
15 15
       'Too big data' => 'No se pueden subir archivos tan grandes',
16 16
       'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?',
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
       'Are you sure?' => '¿Estas seguro?',
24 24
     ),
25 25
     'insert' => 
26
-    array (
26
+    array(
27 27
       '%s - New | %s' => '%s - Nuevo | %s',
28 28
       'Create' => 'Crear',
29 29
     ),
30 30
     'home' => 
31
-    array (
31
+    array(
32 32
       'View web' => 'Ver la web',
33 33
     ),
34 34
     'edit' => 
35
-    array (
35
+    array(
36 36
       'Save' => 'Guardar',
37 37
       'You will save this data as a new row. Are you sure?' => 'Vas a guardar estos datos en un nuevo registro. Estas seguro?',
38 38
       'Duplicate' => 'Duplicar',
Please login to merge, or discard this patch.
locales/gl.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1
-<?php return array (
1
+<?php return array(
2 2
   'domain' => 'messages',
3 3
   'plural-forms' => NULL,
4 4
   'messages' => 
5
-  array (
5
+  array(
6 6
     'search' => 
7
-    array (
7
+    array(
8 8
       'Search %s...' => 'Buscar %s...',
9 9
       'More results' => 'Máis resultados',
10 10
       'No items found' => 'Non se atoparon resultados',
11 11
     ),
12 12
     '' => 
13
-    array (
13
+    array(
14 14
       'Data saved successfully' => 'Datos gardados correctamente',
15 15
       'Too big data' => 'Non se poden subir arquivos tan grandes',
16 16
       'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?',
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
       'Are you sure?' => 'Estas seguro?',
24 24
     ),
25 25
     'insert' => 
26
-    array (
26
+    array(
27 27
       '%s - New | %s' => '%s - Novo | %s',
28 28
       'Create' => 'Crear',
29 29
     ),
30 30
     'home' => 
31
-    array (
31
+    array(
32 32
       'View web' => 'Ver a web',
33 33
     ),
34 34
     'edit' => 
35
-    array (
35
+    array(
36 36
       'Save' => 'Gardar',
37 37
       'You will save this data as a new row. Are you sure?' => 'Vas gardar estes datos nun novo rexistro. Estas seguro?',
38 38
       'Duplicate' => 'Duplicar',
Please login to merge, or discard this patch.
locales/en.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1
-<?php return array (
1
+<?php return array(
2 2
   'domain' => 'messages',
3 3
   'plural-forms' => NULL,
4 4
   'messages' => 
5
-  array (
5
+  array(
6 6
   ),
7 7
 );
8 8
\ No newline at end of file
Please login to merge, or discard this patch.