| @@ -20,7 +20,7 @@ discard block | ||
| 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 | ||
| 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" => "", | 
| @@ -18,4 +18,4 @@ | ||
| 18 | 18 | * | 
| 19 | 19 | * @author Mark C. Prins <[email protected]> | 
| 20 | 20 | */ | 
| 21 | -$meta['enabled'] = array ('onoff'); | |
| 21 | +$meta['enabled'] = array('onoff'); | |
| @@ -19,4 +19,4 @@ | ||
| 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'; | |
| @@ -18,4 +18,4 @@ | ||
| 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'; | |
| @@ -19,4 +19,4 @@ | ||
| 19 | 19 | * @author Mark C. Prins <[email protected]> | 
| 20 | 20 | * @author alhajr <[email protected]> | 
| 21 | 21 | */ | 
| 22 | -$lang['enabled'] = 'تمكين أو تعطيل الثلج'; | |
| 22 | +$lang['enabled'] = 'تمكين أو تعطيل الثلج'; | |
| @@ -19,4 +19,4 @@ | ||
| 19 | 19 | * @author Mark C. Prins <[email protected]> | 
| 20 | 20 | * @author HL <[email protected]> | 
| 21 | 21 | */ | 
| 22 | - $lang['enabled'] = '启用或禁用雪'; | |
| 22 | + $lang['enabled'] = '启用或禁用雪'; | |
| @@ -19,4 +19,4 @@ | ||
| 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'; | |
| @@ -19,4 +19,4 @@ | ||
| 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'; | |
| @@ -55,8 +55,8 @@ | ||
| 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 | } | 
| @@ -29,7 +29,7 @@ | ||
| 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); |