Completed
Push — master ( 44fbe7...335c46 )
by Seth
03:39 queued 01:43
created
src/Toolbox.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
common.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
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
 ]);
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.