@@ -41,12 +41,12 @@ |
||
41 | 41 | |
42 | 42 | private function formatRevisionHistory(Collection $revisionHistory) |
43 | 43 | { |
44 | - $formattedHistory = []; |
|
44 | + $formattedHistory = [ ]; |
|
45 | 45 | |
46 | 46 | foreach ($revisionHistory as $history) { |
47 | 47 | $timeAgo = $history->created_at->diffForHumans(); |
48 | - $revertRoute = route('admin.translation.translation.update', [$history->revisionable_id, 'oldValue' => $history->oldValue()]); |
|
49 | - $formattedHistory[] = <<<HTML |
|
48 | + $revertRoute = route('admin.translation.translation.update', [ $history->revisionable_id, 'oldValue' => $history->oldValue() ]); |
|
49 | + $formattedHistory[ ] = <<<HTML |
|
50 | 50 | <tr> |
51 | 51 | <td>{$history->oldValue()}</td> |
52 | 52 | <td>{$history->userResponsible()->first_name} {$history->userResponsible()->last_name}</td> |
@@ -3,6 +3,6 @@ |
||
3 | 3 | use Illuminate\Routing\Router; |
4 | 4 | |
5 | 5 | /** @var $router Router */ |
6 | -post('translation/update', ['uses' => 'TranslationController@update', 'as' => 'api.translation.translations.update', ]); |
|
7 | -post('translation/clearCache', ['uses' => 'TranslationController@clearCache', 'as' => 'api.translation.translations.clearCache']); |
|
8 | -post('translation/revisions', ['uses' => 'TranslationController@revisions', 'as' => 'api.translation.translations.revisions']); |
|
6 | +post('translation/update', [ 'uses' => 'TranslationController@update', 'as' => 'api.translation.translations.update', ]); |
|
7 | +post('translation/clearCache', [ 'uses' => 'TranslationController@clearCache', 'as' => 'api.translation.translations.clearCache' ]); |
|
8 | +post('translation/revisions', [ 'uses' => 'TranslationController@revisions', 'as' => 'api.translation.translations.revisions' ]); |
@@ -4,12 +4,12 @@ |
||
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 | }); |