Completed
Push — develop ( 61ee3a...f2bd12 )
by Seth
08:02
created
src/SyncIntoCanvas/Calendar.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace smtech\CanvasICSSync\SyncIntoCanvas;
4 4
 
5
-use DateTime;
6 5
 use vcalendar;
7 6
 use Battis\DataUtilities;
8 7
 
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! */
@@ -49,8 +48,7 @@  discard block
 block discarded – undo
49 48
 /* if not authenticated, default to showing credentials */
50 49
 } else {
51 50
     $action = (empty($action) ?
52
-        ACTION_CONFIG :
53
-        $action
51
+        ACTION_CONFIG : $action
54 52
     );
55 53
 }
56 54
 
@@ -59,7 +57,7 @@  discard block
 block discarded – undo
59 57
     /* reset cached install data from config file */
60 58
     case ACTION_INSTALL:
61 59
         $_SESSION['toolbox'] = Toolbox::fromConfiguration(CONFIG_FILE, true);
62
-        $toolbox =& $_SESSION['toolbox'];
60
+        $toolbox = & $_SESSION['toolbox'];
63 61
 
64 62
         /* test to see if we can connect to the API */
65 63
         try {
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
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 /* prepare the toolbox */
15 15
 if (empty($_SESSION[Toolbox::class])) {
16
-    $_SESSION[Toolbox::class] =& Toolbox::fromConfiguration(CONFIG_FILE);
16
+    $_SESSION[Toolbox::class] = & Toolbox::fromConfiguration(CONFIG_FILE);
17 17
 }
18
-$toolbox =& $_SESSION[Toolbox::class];
18
+$toolbox = & $_SESSION[Toolbox::class];
19 19
 $toolbox->smarty_prependTemplateDir(__DIR__ . '/templates', basename(__DIR__));
20 20
 $toolbox->smarty_assign([
21 21
     'category' => DataUtilities::titleCase(preg_replace('/[\-_]+/', ' ', basename(__DIR__)))
Please login to merge, or discard this patch.
src/SyncIntoCanvas/Transform/Transform.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,5 +39,5 @@
 block discarded – undo
39 39
      * @param  Event $event
40 40
      * @return Event The transformed event
41 41
      */
42
-    abstract public function transform(Event &$event);
42
+    abstract public function transform(Event & $event);
43 43
 }
Please login to merge, or discard this patch.
src/SyncIntoCanvas/Transform/RemoveSummaryBracketTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class RemoveSummaryBracketTags extends Transform
8 8
 {
9
-    public function transform(Event &$event)
9
+    public function transform(Event & $event)
10 10
     {
11 11
         $event->setProperty(
12 12
             'SUMMARY',
Please login to merge, or discard this patch.
src/SyncIntoCanvas/Transform/MarkdownDescription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class MarkdownDescription extends Transform
9 9
 {
10
-    public function transform(Event &$event)
10
+    public function transform(Event & $event)
11 11
     {
12 12
         $event->setProperty(
13 13
             'DESCRIPTION',
Please login to merge, or discard this patch.