Completed
Branch master (5eee23)
by Mark
02:52
created
action.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 if (!defined('DOKU_INC')) die();
22 22
 
23
-if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
23
+if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/');
24 24
 require_once DOKU_PLUGIN.'action.php';
25 25
 
26 26
 class action_plugin_snow extends DokuWiki_Action_Plugin {
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     }
31 31
 
32 32
     public function handle_tpl_metaheader_output(Doku_Event $event, $param) {
33
-        if($this->getConf('enabled')){
34
-            $event->data["script"][] = array (
33
+        if ($this->getConf('enabled')) {
34
+            $event->data["script"][] = array(
35 35
                 "type" => "text/javascript",
36 36
                 "src" => DOKU_BASE."lib/plugins/snow/snowstorm-min.js",
37 37
                 "_data" => "",
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,13 @@
 block discarded – undo
18 18
  *
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  */
21
-if (!defined('DOKU_INC')) die();
21
+if (!defined('DOKU_INC')) {
22
+    die();
23
+}
22 24
 
23
-if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
25
+if (!defined('DOKU_PLUGIN')) {
26
+    define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
27
+}
24 28
 require_once DOKU_PLUGIN.'action.php';
25 29
 
26 30
 class action_plugin_snow extends DokuWiki_Action_Plugin {
Please login to merge, or discard this patch.
conf/metadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,4 @@
 block discarded – undo
18 18
  *
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  */
21
-$meta['enabled'] = array ('onoff');
21
+$meta['enabled'] = array('onoff');
Please login to merge, or discard this patch.
lang/hu/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  * @author Serenity87HUN <[email protected]>
21 21
  */
22
-$lang['enabled']               = 'Havazás be- vagy kikapcsolása';
22
+$lang['enabled'] = 'Havazás be- vagy kikapcsolása';
Please login to merge, or discard this patch.
lang/fr/settings.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,4 @@
 block discarded – undo
18 18
  *
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  */
21
- $lang['enabled'] = 'Activer ou désactiver la neige';
21
+    $lang['enabled'] = 'Activer ou désactiver la neige';
Please login to merge, or discard this patch.
lang/ar/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  * @author alhajr <[email protected]>
21 21
  */
22
-$lang['enabled']               = 'تمكين أو تعطيل الثلج';
22
+$lang['enabled'] = 'تمكين أو تعطيل الثلج';
Please login to merge, or discard this patch.
lang/zh/settings.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  * @author HL <[email protected]>
21 21
  */
22
- $lang['enabled'] = '启用或禁用雪';
22
+    $lang['enabled'] = '启用或禁用雪';
Please login to merge, or discard this patch.
lang/eo/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  * @author Robert Bogenschneider <[email protected]>
21 21
  */
22
-$lang['enabled']               = 'En- aŭ elŝalti neĝon';
22
+$lang['enabled'] = 'En- aŭ elŝalti neĝon';
Please login to merge, or discard this patch.
lang/pt/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * @author  Mark C. Prins <[email protected]>
20 20
  * @author João Lopes <[email protected]>
21 21
  */
22
-$lang['enabled']               = 'Activar ou desactivar a neve';
22
+$lang['enabled'] = 'Activar ou desactivar a neve';
Please login to merge, or discard this patch.
_test/general.test.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
     public function test_plugin_backlinks_isloaded() {
56 56
         global $plugin_controller;
57 57
         $this->assertTrue(
58
-                   in_array('snow', $plugin_controller->getList()),
59
-                   "snow plugin is loaded"
60
-                         );
58
+                    in_array('snow', $plugin_controller->getList()),
59
+                    "snow plugin is loaded"
60
+                            );
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * Simple test to make sure the plugin.info.txt is in correct format
30 30
      */
31 31
     public function test_plugininfo() {
32
-        $file = __DIR__ . '/../plugin.info.txt';
32
+        $file = __DIR__.'/../plugin.info.txt';
33 33
         $this->assertFileExists($file);
34 34
 
35 35
         $info = confToHash($file);
Please login to merge, or discard this patch.