@@ -11,7 +11,7 @@ discard block |
||
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 |
||
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 | } |
@@ -37,7 +37,7 @@ discard block |
||
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 |
||
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> |