@@ -69,11 +69,11 @@ |
||
| 69 | 69 | { |
| 70 | 70 | list($city, $file) = explode('/', $this->canonical($value), 2) + ['', '']; |
| 71 | 71 | |
| 72 | - $cities = array_map(function (string $item): array { |
|
| 72 | + $cities = array_map(function(string $item): array { |
|
| 73 | 73 | return [$this->url_obfuscator_service->obfuscate($item), $item]; |
| 74 | 74 | }, $this->certif_filesystem->cities($tree)); |
| 75 | 75 | |
| 76 | - return view($this->module->name() . '::components/edit-certificate', [ |
|
| 76 | + return view($this->module->name().'::components/edit-certificate', [ |
|
| 77 | 77 | 'module_name' => $this->module->name(), |
| 78 | 78 | 'tree' => $tree, |
| 79 | 79 | 'id' => $id, |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | $this->module->setPreference('PAT_FORCE_EXEC_TOKEN', $token); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - return $this->viewResponse($this->module->name() . '::admin/config', [ |
|
| 76 | + return $this->viewResponse($this->module->name().'::admin/config', [ |
|
| 77 | 77 | 'title' => $this->module->title(), |
| 78 | 78 | 'trigger_token' => $token, |
| 79 | 79 | 'trigger_route' => route(TaskTrigger::class, ['task' => '__TASKNAME__', 'force' => '__TOKEN__']), |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | $token = $this->token_service->generateRandomToken(); |
| 58 | 58 | $this->module->setPreference('MAJ_AT_FORCE_EXEC_TOKEN', $token); |
| 59 | - Log::addConfigurationLog($this->module->title() . ' : New token generated.'); |
|
| 59 | + Log::addConfigurationLog($this->module->title().' : New token generated.'); |
|
| 60 | 60 | |
| 61 | 61 | return response(['token' => $token]); |
| 62 | 62 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | // Clean up previous admin tasks table if it exists |
| 35 | 35 | DB::schema()->dropIfExists('maj_admintasks'); |
| 36 | 36 | |
| 37 | - DB::schema()->create('maj_admintasks', static function (Blueprint $table): void { |
|
| 37 | + DB::schema()->create('maj_admintasks', static function(Blueprint $table): void { |
|
| 38 | 38 | |
| 39 | 39 | $table->increments('majat_id'); |
| 40 | 40 | $table->string('majat_task_id', 32)->unique(); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function changesByRecordType(Tree $tree, int $nb_days): Collection |
| 80 | 80 | { |
| 81 | 81 | return DB::table('change') |
| 82 | - ->joinSub($this->allGedcomRecords($tree), 'gedrecords', function (JoinClause $join) use ($tree): void { |
|
| 82 | + ->joinSub($this->allGedcomRecords($tree), 'gedrecords', function(JoinClause $join) use ($tree): void { |
|
| 83 | 83 | |
| 84 | 84 | $join->on('change.xref', '=', 'gedrecords.ged_id') |
| 85 | 85 | ->where('change.gedcom_id', '=', $tree->id()); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | new Expression('MAX(log_time) AS lastoccurred') |
| 116 | 116 | ) |
| 117 | 117 | ->where('log_type', '=', 'error') |
| 118 | - ->where(function (Builder $query) use ($tree): void { |
|
| 118 | + ->where(function(Builder $query) use ($tree): void { |
|
| 119 | 119 | $query->where('gedcom_id', '=', $tree->id()) |
| 120 | 120 | ->orWhereNull('gedcom_id'); |
| 121 | 121 | }) |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | //How to update the database schema for this module |
| 56 | 56 | private const SCHEMA_TARGET_VERSION = 2; |
| 57 | 57 | private const SCHEMA_SETTING_NAME = 'MAJ_ADMTASKS_SCHEMA_VERSION'; |
| 58 | - private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__ . '\Schema'; |
|
| 58 | + private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__.'\Schema'; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * {@inheritDoc} |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function loadRoutes(Map $router): void |
| 97 | 97 | { |
| 98 | - $router->attach('', '', static function (Map $router): void { |
|
| 98 | + $router->attach('', '', static function(Map $router): void { |
|
| 99 | 99 | |
| 100 | - $router->attach('', '/module-maj/admintasks', static function (Map $router): void { |
|
| 100 | + $router->attach('', '/module-maj/admintasks', static function(Map $router): void { |
|
| 101 | 101 | $router->tokens(['enable' => '[01]']); |
| 102 | 102 | |
| 103 | - $router->attach('', '/admin', static function (Map $router): void { |
|
| 103 | + $router->attach('', '/admin', static function(Map $router): void { |
|
| 104 | 104 | |
| 105 | 105 | $router->extras([ |
| 106 | 106 | 'middleware' => [ |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | ]); |
| 110 | 110 | $router->get(AdminConfigPage::class, '/config', AdminConfigPage::class); |
| 111 | 111 | |
| 112 | - $router->attach('', '/tasks', static function (Map $router): void { |
|
| 112 | + $router->attach('', '/tasks', static function(Map $router): void { |
|
| 113 | 113 | |
| 114 | 114 | $router->get(TasksList::class, '', TasksList::class); |
| 115 | 115 | $router->get(TaskEditPage::class, '/{task}', TaskEditPage::class); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | public function bodyContent(): string |
| 153 | 153 | { |
| 154 | - return view($this->name() . '::snippet', [ 'url' => route(TaskTrigger::class) ]); |
|
| 154 | + return view($this->name().'::snippet', ['url' => route(TaskTrigger::class)]); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function name(): string |
| 59 | 59 | { |
| 60 | - return $this->module->name() . '-' . |
|
| 60 | + return $this->module->name().'-'. |
|
| 61 | 61 | mb_substr(str_replace('collector', '', mb_strtolower((new ReflectionClass($this))->getShortName())), 0, 64); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -105,10 +105,10 @@ |
||
| 105 | 105 | public function jsonSerialize() |
| 106 | 106 | { |
| 107 | 107 | return [ |
| 108 | - 'default' => (string) $this->defaultColor()->toHex(), |
|
| 109 | - 'stroke' => (string) $this->strokeColor()->toHex(), |
|
| 110 | - 'maxvalue' => (string) $this->maxValueColor()->toHex(), |
|
| 111 | - 'hover' => (string) $this->hoverColor()->toHex(), |
|
| 108 | + 'default' => (string)$this->defaultColor()->toHex(), |
|
| 109 | + 'stroke' => (string)$this->strokeColor()->toHex(), |
|
| 110 | + 'maxvalue' => (string)$this->maxValueColor()->toHex(), |
|
| 111 | + 'hover' => (string)$this->hoverColor()->toHex(), |
|
| 112 | 112 | ]; |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $geoanalyses = $this->module_service |
| 52 | 52 | ->findByInterface(ModuleGeoAnalysisProviderInterface::class, $include_disabled) |
| 53 | 53 | ->flatMap(fn(ModuleGeoAnalysisProviderInterface $module) => $module->listGeoAnalyses()) |
| 54 | - ->map(static function (string $analysis_class): ?GeoAnalysisInterface { |
|
| 54 | + ->map(static function(string $analysis_class): ?GeoAnalysisInterface { |
|
| 55 | 55 | try { |
| 56 | 56 | $analysis = app($analysis_class); |
| 57 | 57 | return $analysis instanceof GeoAnalysisInterface ? $analysis : null; |