Completed
Push — master ( 03681d...dbf93a )
by Nicolas
04:34
created
Http/backendRoutes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 /** @var Router $router */
6 6
 
7
-$router->group(['prefix' =>'/translation'], function (Router $router) {
8
-    $router->bind('translations', function ($id) {
7
+$router->group([ 'prefix' =>'/translation' ], function(Router $router) {
8
+    $router->bind('translations', function($id) {
9 9
         return \Modules\Translation\Entities\TranslationTranslation::find($id);
10 10
     });
11
-    get('translations', ['uses' => 'TranslationController@index', 'as' => 'admin.translation.translation.index', ]);
12
-    get('translations/update/{translations}', ['uses' => 'TranslationController@update', 'as' => 'admin.translation.translation.update', ]);
13
-    get('translations/export', ['uses' => 'TranslationController@export', 'as' => 'admin.translation.translation.export', ]);
14
-    post('translations/import', ['uses' => 'TranslationController@import', 'as' => 'admin.translation.translation.import', ]);
11
+    get('translations', [ 'uses' => 'TranslationController@index', 'as' => 'admin.translation.translation.index', ]);
12
+    get('translations/update/{translations}', [ 'uses' => 'TranslationController@update', 'as' => 'admin.translation.translation.update', ]);
13
+    get('translations/export', [ 'uses' => 'TranslationController@export', 'as' => 'admin.translation.translation.export', ]);
14
+    post('translations/import', [ 'uses' => 'TranslationController@import', 'as' => 'admin.translation.translation.import', ]);
15 15
 });
Please login to merge, or discard this patch.
2015_12_01_094031_update_translation_translations_table_with_index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function up()
13 13
     {
14
-        Schema::table('translation__translations', function (Blueprint $table) {
14
+        Schema::table('translation__translations', function(Blueprint $table) {
15 15
             $table->index('key');
16 16
         });
17 17
     }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function down()
24 24
     {
25
-        Schema::table('translation__translations', function (Blueprint $table) {
25
+        Schema::table('translation__translations', function(Blueprint $table) {
26 26
             $table->dropIndex('key');
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
Http/Controllers/Api/TranslationController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $translation = $translation->translate($request->get('locale'));
38 38
 
39 39
         if (null === $translation) {
40
-            return response()->json(['<tr><td>' . trans('translation::translations.No Revisions yet') . '</td></tr>']);
40
+            return response()->json([ '<tr><td>' . trans('translation::translations.No Revisions yet') . '</td></tr>' ]);
41 41
         }
42 42
 
43 43
         return response()->json($this->formatRevisionHistory($translation->revisionHistory));
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 
46 46
     private function formatRevisionHistory(Collection $revisionHistory)
47 47
     {
48
-        $formattedHistory = [];
48
+        $formattedHistory = [ ];
49 49
 
50 50
         foreach ($revisionHistory as $history) {
51 51
             $timeAgo = $history->created_at->diffForHumans();
52
-            $revertRoute = route('admin.translation.translation.update', [$history->revisionable_id, 'oldValue' => $history->oldValue()]);
53
-            $formattedHistory[] = <<<HTML
52
+            $revertRoute = route('admin.translation.translation.update', [ $history->revisionable_id, 'oldValue' => $history->oldValue() ]);
53
+            $formattedHistory[ ] = <<<HTML
54 54
 <tr>
55 55
     <td>{$history->oldValue()}</td>
56 56
     <td>{$history->userResponsible()->first_name} {$history->userResponsible()->last_name}</td>
Please login to merge, or discard this patch.