Completed
Pull Request — development (#3050)
by John
23:37
created
sources/subs/Menu/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  *
16 16
  */
17 17
 
18
-declare(strict_types=1);
18
+declare(strict_types = 1);
19 19
 
20 20
 namespace ElkArte\Menu;
21 21
 
Please login to merge, or discard this patch.
sources/subs/Menu/MenuOptions.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  *
16 16
  */
17 17
 
18
-declare(strict_types=1);
18
+declare(strict_types = 1);
19 19
 
20 20
 namespace ElkArte\Menu;
21 21
 
@@ -25,34 +25,34 @@  discard block
 block discarded – undo
25 25
 class MenuOptions
26 26
 {
27 27
 	/** @var string $action                    => overrides the default action */
28
-	private $action='';
28
+	private $action = '';
29 29
 
30 30
 	/** @var string $current_area              => overrides the current area */
31
-	private $current_area='';
31
+	private $current_area = '';
32 32
 
33 33
 	/** @var array $extra_url_parameters      => an array or pairs or parameters to be added to the url */
34
-	private $extra_url_parameters=[];
34
+	private $extra_url_parameters = [];
35 35
 
36 36
 	/** @var boolean $disable_url_session_check => (boolean) if true the session var/id are omitted from the url */
37
-	private $disable_url_session_check=false;
37
+	private $disable_url_session_check = false;
38 38
 
39 39
 	/** @var string $base_url                  => an alternative base url */
40
-	private $base_url='';
40
+	private $base_url = '';
41 41
 
42 42
 	/** @var string $menu_type                 => alternative menu types? */
43
-	private $menu_type='';
43
+	private $menu_type = '';
44 44
 
45 45
 	/** @var boolean $can_toggle_drop_down      => (boolean) if the menu can "toggle" */
46
-	private $can_toggle_drop_down=true;
46
+	private $can_toggle_drop_down = true;
47 47
 
48 48
 	/** @var string $template_name             => an alternative template to load (instead of Generic) */
49
-	private $template_name='GenericMenu';
49
+	private $template_name = 'GenericMenu';
50 50
 
51 51
 	/** @var string $layer_name                => alternative layer name for the menu */
52
-	private $layer_name='generic_menu';
52
+	private $layer_name = 'generic_menu';
53 53
 
54 54
 	/** @var array $hook                      => hook name to call integrate_ . 'hook name' . '_areas' */
55
-	private $counters=[];
55
+	private $counters = [];
56 56
 
57 57
 	/**
58 58
 	 * @return string
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
 	{
258 258
 		global $context, $scripturl;
259 259
 
260
-		$this->setAction($this->getAction()?:$context['current_action']);
260
+		$this->setAction($this->getAction() ?: $context['current_action']);
261 261
 
262
-		$this->setBaseUrl($this->getBaseUrl()?:sprintf(
262
+		$this->setBaseUrl($this->getBaseUrl() ?: sprintf(
263 263
 				'%s?action=%s',
264 264
 				$scripturl,
265 265
 				$this->getAction()
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 		// Only include the session ID in the URL if it's strictly necessary.
279 279
 		if (empty($this->menuOptions['disable_url_session_check']))
280 280
 		{
281
-			$arr[$context['session_var']]=$context['session_id'];
281
+			$arr[$context['session_var']] = $context['session_id'];
282 282
 		}
283 283
 
284 284
 		$extra_url_parameters = '';
Please login to merge, or discard this patch.