Passed
Push — develop ( 7115f3...4811e5 )
by Michael
01:32
created
admin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,28 +15,28 @@  discard block
 block discarded – undo
15 15
         if (empty($secret)) {
16 16
             $exampleSecret = md5(time());
17 17
             $settingsID = 'plugin____swarmzapierstructwebhook____plugin_settings_name';
18
-            $configHRef = DOKU_REL . DOKU_SCRIPT . '?do=admin&page=config#' . $settingsID;
19
-            $configLink = '<a href="' . $configHRef . '">' . $this->getLang('configuration') . '</a>';
18
+            $configHRef = DOKU_REL.DOKU_SCRIPT.'?do=admin&page=config#'.$settingsID;
19
+            $configLink = '<a href="'.$configHRef.'">'.$this->getLang('configuration').'</a>';
20 20
             $secretNeededMsg = sprintf(
21 21
                 $this->getLang('secret needed'),
22 22
                 $configLink,
23
-                '<code>' . $exampleSecret . '</code>'
23
+                '<code>'.$exampleSecret.'</code>'
24 24
             );
25
-            echo '<p>' . $secretNeededMsg . '</p>';
25
+            echo '<p>'.$secretNeededMsg.'</p>';
26 26
             return;
27 27
         }
28 28
         $htmlIFTTT = '<h2>IFTTT</h2>';
29 29
         $htmlIFTTT .= '<ol>';
30 30
         $htmlIFTTT .= '<li>';
31 31
         $iftttFormHref = 'https://ifttt.com/create/if-any-new-check-in-then-make-a-web-request?sid=5';
32
-        $htmlIFTTT .= 'Go to <a href="' . $iftttFormHref . '">the relevant IFTTT form</a>';
32
+        $htmlIFTTT .= 'Go to <a href="'.$iftttFormHref.'">the relevant IFTTT form</a>';
33 33
         $htmlIFTTT .= '</li>';
34 34
         $htmlIFTTT .= '<li>';
35 35
         $htmlIFTTT .= 'Enter the following Data in the Form:';
36 36
         $htmlIFTTT .= '<ul>';
37 37
         $htmlIFTTT .= '<li>';
38
-        $webhookURL = DOKU_URL . 'lib/plugins/swarmzapierstructwebhook/webhook.php';
39
-        $htmlIFTTT .= '<strong>URL</strong>: <code>' . $webhookURL . '</code>';
38
+        $webhookURL = DOKU_URL.'lib/plugins/swarmzapierstructwebhook/webhook.php';
39
+        $htmlIFTTT .= '<strong>URL</strong>: <code>'.$webhookURL.'</code>';
40 40
         $htmlIFTTT .= '</li>';
41 41
         $htmlIFTTT .= '<li>';
42 42
         $htmlIFTTT .= '<strong>Method</strong>: POST';
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 "VenueName": "{{VenueName}}",
52 52
 "VenueUrl": "{{VenueUrl}}",
53 53
 "VenueMapImageUrl": "{{VenueMapImageUrl}}",
54
-"secret": "'. $secret . '"
54
+"secret": "'. $secret.'"
55 55
 }';
56 56
         $htmlIFTTT .= '<li>';
57
-        $htmlIFTTT .= '<strong>Body</strong>: <pre>' . $iftttBody . '</pre>';
57
+        $htmlIFTTT .= '<strong>Body</strong>: <pre>'.$iftttBody.'</pre>';
58 58
         $htmlIFTTT .= '</li>';
59 59
         $htmlIFTTT .= '</ul>';
60 60
         $htmlIFTTT .= '</li>';
Please login to merge, or discard this patch.
lang/en/lang.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 // menu entry for admin plugins
9
- $lang['menu'] = 'Swarm Webhook Instructions';
9
+    $lang['menu'] = 'Swarm Webhook Instructions';
10 10
 
11 11
 // custom language strings for the plugin
12
- $lang['secret needed'] = 'Please enter a secret in the %s. For example: %s';
13
- $lang['configuration'] = 'configuration';
12
+    $lang['secret needed'] = 'Please enter a secret in the %s. For example: %s';
13
+    $lang['configuration'] = 'configuration';
14 14
 
Please login to merge, or discard this patch.
lang/en/settings.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 // keys need to match the config setting name
9
- $lang['hook_secret'] = 'Secret in the Webhhok. Fill for IFTTT. Broken for Zapier 
Please login to merge, or discard this patch.