Passed
Push — feature/code-analysis ( 60fe63...00c5b4 )
by Jonathan
11:49
created
app/Module/PatronymicLineage/PatronymicLineageModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function loadRoutes(Map $router): void
71 71
     {
72
-        $router->attach('', '', static function (Map $router): void {
72
+        $router->attach('', '', static function(Map $router): void {
73 73
 
74
-            $router->attach('', '/module-maj/lineages', static function (Map $router): void {
74
+            $router->attach('', '/module-maj/lineages', static function(Map $router): void {
75 75
 
76
-                $router->attach('', '/Page', static function (Map $router): void {
76
+                $router->attach('', '/Page', static function(Map $router): void {
77 77
 
78 78
                     $router->get(SurnamesList::class, '/{tree}/list{/alpha}', SurnamesList::class);
79 79
                     $router->get(LineagesPage::class, '/{tree}/lineage/{surname}', LineagesPage::class);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function headContent(): string
134 134
     {
135
-        return '<link rel="stylesheet" href="' . e($this->moduleCssUrl()) . '">';
135
+        return '<link rel="stylesheet" href="'.e($this->moduleCssUrl()).'">';
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.
app/Module/AdminTasks/Http/RequestHandlers/TaskEditPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,9 +76,9 @@
 block discarded – undo
76 76
         $has_task_config = $task instanceof ConfigurableTaskInterface;
77 77
         /** @var \MyArtJaub\Webtrees\Contracts\Tasks\TaskInterface&\MyArtJaub\Webtrees\Contracts\Tasks\ConfigurableTaskInterface $task */
78 78
 
79
-        return $this->viewResponse($this->module->name() . '::admin/tasks-edit', [
79
+        return $this->viewResponse($this->module->name().'::admin/tasks-edit', [
80 80
             'module'            =>  $this->module,
81
-            'title'             =>  I18N::translate('Edit the administrative task') . ' - ' . $task->name(),
81
+            'title'             =>  I18N::translate('Edit the administrative task').' - '.$task->name(),
82 82
             'task_schedule'     =>  $task_schedule,
83 83
             'task'              =>  $task,
84 84
             'has_task_config'   =>  $has_task_config,
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Views/GeoAnalysisMap.php 1 patch
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function icon(ModuleInterface $module): string
47 47
     {
48
-        return view($module->name() . '::icons/view-map', ['type' => $this->type()]);
48
+        return view($module->name().'::icons/view-map', ['type' => $this->type()]);
49 49
     }
50 50
 
51 51
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function globalSettingsContent(ModuleInterface $module): string
56 56
     {
57
-        return view($module->name() . '::admin/view-edit-map', [
57
+        return view($module->name().'::admin/view-edit-map', [
58 58
             'module_name'   =>  $module->name(),
59 59
             'view'          =>  $this,
60 60
             'colors'        =>  $this->colors(),
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $default_color  = Validator::parsedBody($request)->string('view_map_color_default', '');
73 73
         $stroke_color   = Validator::parsedBody($request)->string('view_map_color_stroke', '');
74
-        $maxvalue_color  = Validator::parsedBody($request)->string('view_map_color_maxvalue', '');
75
-        $hover_color  = Validator::parsedBody($request)->string('view_map_color_hover', '');
74
+        $maxvalue_color = Validator::parsedBody($request)->string('view_map_color_maxvalue', '');
75
+        $hover_color = Validator::parsedBody($request)->string('view_map_color_hover', '');
76 76
 
77 77
         try {
78 78
             return $this->withColors(new MapColorsConfig(
@@ -99,17 +99,16 @@  discard block
 block discarded – undo
99 99
         foreach ($map_adapters as $map_adapter) {
100 100
             $adapter_result_tmp = $map_adapter->convert($result);
101 101
             $adapter_result = $adapter_result === null ?
102
-                $adapter_result_tmp :
103
-                $adapter_result->merge($adapter_result_tmp);
102
+                $adapter_result_tmp : $adapter_result->merge($adapter_result_tmp);
104 103
         }
105 104
 
106 105
         if ($adapter_result === null) {
107
-            return view($module->name() . '::errors/tab-error', [
106
+            return view($module->name().'::errors/tab-error', [
108 107
                 'message'   =>  I18N::translate('The map could not be loaded.'),
109 108
             ]);
110 109
         }
111 110
 
112
-        return view($module->name() . '::geoanalysisview-tab-glb-map', $params + [
111
+        return view($module->name().'::geoanalysisview-tab-glb-map', $params + [
113 112
             'result'            =>  $adapter_result->geoAnalysisResult(),
114 113
             'features'          =>  $adapter_result->features(),
115 114
             'colors'            =>  $this->colors(),
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Schema/Migration1.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $in_transaction = DB::connection()->getPdo()->inTransaction();
33 33
 
34
-        DB::schema()->create('maj_geodisp_views', static function (Blueprint $table): void {
34
+        DB::schema()->create('maj_geodisp_views', static function(Blueprint $table): void {
35 35
             $table->integer('majgv_id')->autoIncrement();
36 36
             $table->integer('majgv_gedcom_id')->index();
37 37
             $table->string('majgv_view_class', 255);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             $table->foreign('majgv_gedcom_id')->references('gedcom_id')->on('gedcom')->onDelete('cascade');
46 46
         });
47 47
 
48
-        DB::schema()->create('maj_geodisp_mapviews', static function (Blueprint $table): void {
48
+        DB::schema()->create('maj_geodisp_mapviews', static function(Blueprint $table): void {
49 49
             $table->integer('majgm_id')->autoIncrement();
50 50
             $table->integer('majgm_majgv_id')->index();
51 51
             $table->string('majgm_map_id', 127);
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Http/RequestHandlers/GeoAnalysisViewAddPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         }
69 69
         $tree = Validator::attributes($request)->tree();
70 70
 
71
-        return $this->viewResponse($this->module->name() . '::admin/view-add', [
71
+        return $this->viewResponse($this->module->name().'::admin/view-add', [
72 72
             'module'        =>  $this->module,
73 73
             'title'         =>  I18N::translate('Add a geographical dispersion analysis view'),
74 74
             'tree'          =>  $tree,
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Http/RequestHandlers/MapAdapterEditPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             );
84 84
         }
85 85
 
86
-        return $this->viewResponse($this->module->name() . '::admin/map-adapter-edit', [
86
+        return $this->viewResponse($this->module->name().'::admin/map-adapter-edit', [
87 87
             'module'            =>  $this->module,
88 88
             'title'             =>  I18N::translate('Edit the map configuration'),
89 89
             'tree'              =>  $tree,
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Http/RequestHandlers/MapAdapterAddPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             );
84 84
         }
85 85
 
86
-        return $this->viewResponse($this->module->name() . '::admin/map-adapter-edit', [
86
+        return $this->viewResponse($this->module->name().'::admin/map-adapter-edit', [
87 87
             'module'            =>  $this->module,
88 88
             'title'             =>  I18N::translate('Add a map configuration'),
89 89
             'tree'              =>  $tree,
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Http/RequestHandlers/GeoAnalysisViewPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $tree = Validator::attributes($request)->tree();
64 64
         $view_id = Validator::attributes($request)->integer('view_id', 0);
65 65
 
66
-        return $this->viewResponse($this->module->name() . '::geoanalysisview-page', [
66
+        return $this->viewResponse($this->module->name().'::geoanalysisview-page', [
67 67
             'module_name'           =>  $this->module->name(),
68 68
             'title'                 =>  I18N::translate('Geographical dispersion'),
69 69
             'tree'                  =>  $tree,
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Http/RequestHandlers/GeoAnalysisViewEditPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             );
83 83
         }
84 84
 
85
-        return $this->viewResponse($this->module->name() . '::admin/view-edit', [
85
+        return $this->viewResponse($this->module->name().'::admin/view-edit', [
86 86
             'module'        =>  $this->module,
87 87
             'title'         =>  I18N::translate('Edit the geographical dispersion analysis view - %s', $view->type()),
88 88
             'tree'          =>  $tree,
Please login to merge, or discard this patch.