|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
// How to update the database schema for this module |
|
44
|
44
|
private const SCHEMA_TARGET_VERSION = 3; |
|
45
|
45
|
private const SCHEMA_SETTING_NAME = 'MAJ_SOSA_SCHEMA_VERSION'; |
|
46
|
|
- private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__ . '\Schema'; |
|
|
46
|
+ private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__.'\Schema'; |
|
47
|
47
|
|
|
48
|
48
|
/** |
|
49
|
49
|
* {@inheritDoc} |
|
@@ -85,7 +85,7 @@ discard block |
|
|
block discarded – undo |
|
85
|
85
|
{ |
|
86
|
86
|
$router->attach('', '', static function(Map $router) : void { |
|
87
|
87
|
$router->attach('', '/module-maj/sosa', static function(Map $router) : void { |
|
88
|
|
- $router->attach('', '/list', static function (Map $router) : void { |
|
|
88
|
+ $router->attach('', '/list', static function(Map $router) : void { |
|
89
|
89
|
|
|
90
|
90
|
$router->get(AncestorsList::class, '/ancestors/{tree}/{/gen}', AncestorsList::class); |
|
91
|
91
|
$router->get(MissingAncestorsList::class, '/missing/{tree}/{/gen}', MissingAncestorsList::class); |
|
@@ -93,7 +93,7 @@ discard block |
|
|
block discarded – undo |
|
93
|
93
|
|
|
94
|
94
|
$router->get(SosaStatistics::class, '/statistics/{tree}', SosaStatistics::class); |
|
95
|
95
|
|
|
96
|
|
- $router->attach('', '/config/{tree}', static function (Map $router) : void { |
|
|
96
|
+ $router->attach('', '/config/{tree}', static function(Map $router) : void { |
|
97
|
97
|
|
|
98
|
98
|
$router->get(SosaConfig::class, '', SosaConfig::class); |
|
99
|
99
|
$router->post(SosaConfigAction::class, '', SosaConfigAction::class); |
|
@@ -133,11 +133,11 @@ discard block |
|
|
block discarded – undo |
|
133
|
133
|
|
|
134
|
134
|
$menu->setSubmenus([ |
|
135
|
135
|
new Menu(I18N::translate('Sosa Ancestors'), route(AncestorsList::class, ['tree' => $tree->name()]), 'menu-maj-sosa-list', ['rel' => 'nofollow']), |
|
136
|
|
- new Menu(I18N::translate('Missing Ancestors'), route(MissingAncestorsList::class, ['tree' => $tree->name()]), 'menu-maj-sosa-missing', ['rel' => 'nofollow']), |
|
|
136
|
+ new Menu(I18N::translate('Missing Ancestors'), route(MissingAncestorsList::class, ['tree' => $tree->name()]), 'menu-maj-sosa-missing', ['rel' => 'nofollow']), |
|
137
|
137
|
new Menu(I18N::translate('Sosa Statistics'), route(SosaStatistics::class, ['tree' => $tree->name()]), 'menu-maj-sosa-stats') |
|
138
|
138
|
]); |
|
139
|
139
|
|
|
140
|
|
- if(Auth::check()) { |
|
|
140
|
+ if (Auth::check()) { |
|
141
|
141
|
$menu->addSubmenu( |
|
142
|
142
|
new Menu(I18N::translate('Sosa Configuration'), route(SosaConfig::class, ['tree' => $tree->name()]), 'menu-maj-sosa-config') |
|
143
|
143
|
); |
|
@@ -152,7 +152,7 @@ discard block |
|
|
block discarded – undo |
|
152
|
152
|
*/ |
|
153
|
153
|
public function headContent(): string |
|
154
|
154
|
{ |
|
155
|
|
- return '<link rel="stylesheet" href="' . e($this->moduleCssUrl()) . '">'; |
|
|
155
|
+ return '<link rel="stylesheet" href="'.e($this->moduleCssUrl()).'">'; |
|
156
|
156
|
} |
|
157
|
157
|
} |
|
158
|
158
|
|
|
159
|
159
|
\ No newline at end of file |