@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Configure course and account navigation placements |
23 | 23 | * |
24 | - * @return Generator |
|
24 | + * @return \smtech\LTI\Configuration\Generator |
|
25 | 25 | */ |
26 | 26 | public function getGenerator() |
27 | 27 | { |
@@ -15,9 +15,9 @@ |
||
15 | 15 | |
16 | 16 | /* prepare the toolbox */ |
17 | 17 | if (empty($_SESSION[Toolbox::class])) { |
18 | - $_SESSION[Toolbox::class] =& Toolbox::fromConfiguration(CONFIG_FILE); |
|
18 | + $_SESSION[Toolbox::class] = & Toolbox::fromConfiguration(CONFIG_FILE); |
|
19 | 19 | } |
20 | -$toolbox =& $_SESSION[Toolbox::class]; |
|
20 | +$toolbox = & $_SESSION[Toolbox::class]; |
|
21 | 21 | $toolbox->smarty_assign([ |
22 | 22 | 'category' => DataUtilities::titleCase(preg_replace('/[\-_]+/', ' ', basename(__DIR__))) |
23 | 23 | ]); |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | /* store any requested actions for future handling */ |
15 | 15 | $action = (empty($_REQUEST['action']) ? |
16 | - ACTION_UNSPECIFIED : |
|
17 | - strtolower($_REQUEST['action']) |
|
16 | + ACTION_UNSPECIFIED : strtolower($_REQUEST['action']) |
|
18 | 17 | ); |
19 | 18 | |
20 | 19 | /* action requests only come from outside the LTI! */ |
@@ -42,8 +41,7 @@ discard block |
||
42 | 41 | /* if not authenticated, default to showing credentials */ |
43 | 42 | } else { |
44 | 43 | $action = (empty($action) ? |
45 | - ACTION_CONFIG : |
|
46 | - $action |
|
44 | + ACTION_CONFIG : $action |
|
47 | 45 | ); |
48 | 46 | } |
49 | 47 | |
@@ -52,7 +50,7 @@ discard block |
||
52 | 50 | /* reset cached install data from config file */ |
53 | 51 | case ACTION_INSTALL: |
54 | 52 | $_SESSION['toolbox'] = Toolbox::fromConfiguration(CONFIG_FILE, true); |
55 | - $toolbox =& $_SESSION['toolbox']; |
|
53 | + $toolbox = & $_SESSION['toolbox']; |
|
56 | 54 | |
57 | 55 | /* test to see if we can connect to the API */ |
58 | 56 | try { |