@@ -65,7 +65,7 @@ |
||
65 | 65 | $tree = $request->getAttribute('tree'); |
66 | 66 | assert($tree instanceof Tree); |
67 | 67 | |
68 | - $adapter_id = (int) $request->getAttribute('adapter_id'); |
|
68 | + $adapter_id = (int)$request->getAttribute('adapter_id'); |
|
69 | 69 | $map_adapter = $this->mapadapter_data_service->find($adapter_id); |
70 | 70 | |
71 | 71 | $mapper_class = $request->getQueryParams()['mapper'] ?? ''; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $tree = $request->getAttribute('tree'); |
69 | 69 | assert($tree instanceof 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, |
@@ -69,11 +69,11 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | |
72 | - $params = (array) $request->getParsedBody(); |
|
72 | + $params = (array)$request->getParsedBody(); |
|
73 | 73 | |
74 | 74 | $type = $params['view_type'] ?? ''; |
75 | 75 | $description = $params['view_description'] ?? ''; |
76 | - $place_depth = (int) ($params['view_depth'] ?? 1); |
|
76 | + $place_depth = (int)($params['view_depth'] ?? 1); |
|
77 | 77 | |
78 | 78 | $analysis = null; |
79 | 79 | try { |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | 'success' |
106 | 106 | ); |
107 | 107 | //phpcs:ignore Generic.Files.LineLength.TooLong |
108 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : View “' . $new_view_id . '” has been added.'); |
|
108 | + Log::addConfigurationLog('Module '.$this->module->title().' : View “'.$new_view_id.'” has been added.'); |
|
109 | 109 | return redirect( |
110 | - route(GeoAnalysisViewEditPage::class, ['tree' => $tree->name(), 'view_id' => $new_view_id ]) |
|
110 | + route(GeoAnalysisViewEditPage::class, ['tree' => $tree->name(), 'view_id' => $new_view_id]) |
|
111 | 111 | ); |
112 | 112 | } else { |
113 | 113 | FlashMessages::addMessage( |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | 'danger' |
116 | 116 | ); |
117 | 117 | //phpcs:ignore Generic.Files.LineLength.TooLong |
118 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : A new View could not be added. See error log.'); |
|
118 | + Log::addConfigurationLog('Module '.$this->module->title().' : A new View could not be added. See error log.'); |
|
119 | 119 | return redirect($admin_config_route); |
120 | 120 | } |
121 | 121 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $tree = $request->getAttribute('tree'); |
74 | 74 | assert($tree instanceof Tree); |
75 | 75 | |
76 | - $adapter_id = (int) $request->getAttribute('adapter_id'); |
|
76 | + $adapter_id = (int)$request->getAttribute('adapter_id'); |
|
77 | 77 | $map_adapter = $this->mapadapter_data_service->find($adapter_id); |
78 | 78 | |
79 | 79 | if ($map_adapter === null) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | - return $this->viewResponse($this->module->name() . '::admin/map-adapter-edit', [ |
|
85 | + return $this->viewResponse($this->module->name().'::admin/map-adapter-edit', [ |
|
86 | 86 | 'module' => $this->module, |
87 | 87 | 'title' => I18N::translate('Edit the map configuration'), |
88 | 88 | 'tree' => $tree, |
@@ -87,7 +87,7 @@ |
||
87 | 87 | throw new HttpAccessDeniedException(); |
88 | 88 | } |
89 | 89 | |
90 | - return $this->viewResponse($this->module->name() . '::admin/config', [ |
|
90 | + return $this->viewResponse($this->module->name().'::admin/config', [ |
|
91 | 91 | 'module_name' => $this->module->name(), |
92 | 92 | 'title' => $this->module->title(), |
93 | 93 | 'tree' => $tree, |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return redirect($admin_config_route); |
65 | 65 | } |
66 | 66 | |
67 | - $view_id = (int) $request->getAttribute('view_id'); |
|
67 | + $view_id = (int)$request->getAttribute('view_id'); |
|
68 | 68 | $view = $this->geoview_data_service->find($tree, $view_id, true); |
69 | 69 | |
70 | 70 | if ($view === null) { |
@@ -75,20 +75,20 @@ discard block |
||
75 | 75 | return redirect($admin_config_route); |
76 | 76 | } |
77 | 77 | |
78 | - if ($this->geoview_data_service->updateStatus($view, (bool) $request->getAttribute('enable', false)) > 0) { |
|
78 | + if ($this->geoview_data_service->updateStatus($view, (bool)$request->getAttribute('enable', false)) > 0) { |
|
79 | 79 | FlashMessages::addMessage( |
80 | 80 | I18N::translate('The geographical dispersion analysis view has been successfully updated'), |
81 | 81 | 'success' |
82 | 82 | ); |
83 | 83 | //phpcs:ignore Generic.Files.LineLength.TooLong |
84 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : View “' . $view->id() . '” has been updated.'); |
|
84 | + Log::addConfigurationLog('Module '.$this->module->title().' : View “'.$view->id().'” has been updated.'); |
|
85 | 85 | } else { |
86 | 86 | FlashMessages::addMessage( |
87 | 87 | I18N::translate('An error occured while updating the geographical dispersion analysis view'), |
88 | 88 | 'danger' |
89 | 89 | ); |
90 | 90 | //phpcs:ignore Generic.Files.LineLength.TooLong |
91 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : View “' . $view->id() . '” could not be updated. See error log.'); |
|
91 | + Log::addConfigurationLog('Module '.$this->module->title().' : View “'.$view->id().'” could not be updated. See error log.'); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | return redirect($admin_config_route); |
@@ -78,13 +78,13 @@ discard block |
||
78 | 78 | return redirect(route(AdminConfigPage::class, ['tree' => $tree])); |
79 | 79 | } |
80 | 80 | |
81 | - $view_id = (int) $request->getAttribute('view_id'); |
|
81 | + $view_id = (int)$request->getAttribute('view_id'); |
|
82 | 82 | $view = $this->geoview_data_service->find($tree, $view_id); |
83 | 83 | |
84 | - $params = (array) $request->getParsedBody(); |
|
84 | + $params = (array)$request->getParsedBody(); |
|
85 | 85 | |
86 | 86 | $map = $this->map_definition_service->find($params['map_adapter_map'] ?? ''); |
87 | - $mapping_property = $params['map_adapter_property_selected'] ?? ''; |
|
87 | + $mapping_property = $params['map_adapter_property_selected'] ?? ''; |
|
88 | 88 | |
89 | 89 | $mapper = null; |
90 | 90 | try { |
@@ -115,14 +115,14 @@ discard block |
||
115 | 115 | 'success' |
116 | 116 | ); |
117 | 117 | //phpcs:ignore Generic.Files.LineLength.TooLong |
118 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : Map Adapter “' . $new_adapter_id . '” has been added.'); |
|
118 | + Log::addConfigurationLog('Module '.$this->module->title().' : Map Adapter “'.$new_adapter_id.'” has been added.'); |
|
119 | 119 | } else { |
120 | 120 | FlashMessages::addMessage( |
121 | 121 | I18N::translate('An error occured while adding a new map configuration'), |
122 | 122 | 'danger' |
123 | 123 | ); |
124 | 124 | //phpcs:ignore Generic.Files.LineLength.TooLong |
125 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : Map Adapter could not be added. See error log.'); |
|
125 | + Log::addConfigurationLog('Module '.$this->module->title().' : Map Adapter could not be added. See error log.'); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | return redirect(route(GeoAnalysisViewEditPage::class, [ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return redirect($admin_config_route); |
65 | 65 | } |
66 | 66 | |
67 | - $view_id = (int) $request->getAttribute('view_id'); |
|
67 | + $view_id = (int)$request->getAttribute('view_id'); |
|
68 | 68 | $view = $this->geoview_data_service->find($tree, $view_id, true); |
69 | 69 | |
70 | 70 | if ($view === null) { |
@@ -81,14 +81,14 @@ discard block |
||
81 | 81 | 'success' |
82 | 82 | ); |
83 | 83 | //phpcs:ignore Generic.Files.LineLength.TooLong |
84 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : View “' . $view->id() . '” has been deleted.'); |
|
84 | + Log::addConfigurationLog('Module '.$this->module->title().' : View “'.$view->id().'” has been deleted.'); |
|
85 | 85 | } else { |
86 | 86 | FlashMessages::addMessage( |
87 | 87 | I18N::translate('An error occured while deleting the geographical dispersion analysis view'), |
88 | 88 | 'danger' |
89 | 89 | ); |
90 | 90 | //phpcs:ignore Generic.Files.LineLength.TooLong |
91 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : View “' . $view->id() . '” could not be deleted. See error log.'); |
|
91 | + Log::addConfigurationLog('Module '.$this->module->title().' : View “'.$view->id().'” could not be deleted. See error log.'); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | return redirect($admin_config_route); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ); |
64 | 64 | return redirect($admin_config_route); |
65 | 65 | } |
66 | - $adapter_id = (int) $request->getAttribute('adapter_id'); |
|
66 | + $adapter_id = (int)$request->getAttribute('adapter_id'); |
|
67 | 67 | $map_adapter = $this->mapadapter_data_service->find($adapter_id); |
68 | 68 | |
69 | 69 | if ($map_adapter === null) { |
@@ -80,14 +80,14 @@ discard block |
||
80 | 80 | 'success' |
81 | 81 | ); |
82 | 82 | //phpcs:ignore Generic.Files.LineLength.TooLong |
83 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : Map Adapter “' . $map_adapter->id() . '” has been deleted.'); |
|
83 | + Log::addConfigurationLog('Module '.$this->module->title().' : Map Adapter “'.$map_adapter->id().'” has been deleted.'); |
|
84 | 84 | } else { |
85 | 85 | FlashMessages::addMessage( |
86 | 86 | I18N::translate('An error occured while deleting the map configuration'), |
87 | 87 | 'danger' |
88 | 88 | ); |
89 | 89 | //phpcs:ignore Generic.Files.LineLength.TooLong |
90 | - Log::addConfigurationLog('Module ' . $this->module->title() . ' : Map Adapter “' . $map_adapter->id() . '” could not be deleted. See error log.'); |
|
90 | + Log::addConfigurationLog('Module '.$this->module->title().' : Map Adapter “'.$map_adapter->id().'” could not be deleted. See error log.'); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | return redirect(route(GeoAnalysisViewEditPage::class, [ |