@@ -55,8 +55,8 @@ |
||
55 | 55 | public function test_plugin_backlinks_isloaded() { |
56 | 56 | global $plugin_controller; |
57 | 57 | $this->assertTrue( |
58 | - in_array('webmaster', $plugin_controller->getList()), |
|
59 | - "webmaster plugin is loaded" |
|
60 | - ); |
|
58 | + in_array('webmaster', $plugin_controller->getList()), |
|
59 | + "webmaster 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); |
@@ -7,8 +7,12 @@ discard block |
||
7 | 7 | * @author Marius Rieder <[email protected]> |
8 | 8 | */ |
9 | 9 | |
10 | -if (!defined('DOKU_INC')) die(); |
|
11 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/'); |
|
10 | +if (!defined('DOKU_INC')) { |
|
11 | + die(); |
|
12 | +} |
|
13 | +if (!defined('DOKU_PLUGIN')) { |
|
14 | + define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/'); |
|
15 | +} |
|
12 | 16 | require_once(DOKU_PLUGIN.'action.php'); |
13 | 17 | |
14 | 18 | class action_plugin_webmaster extends DokuWiki_Action_Plugin { |
@@ -18,7 +22,9 @@ discard block |
||
18 | 22 | } |
19 | 23 | |
20 | 24 | function addVerifyHeaders(&$event, $param) { |
21 | - if (empty($event->data)||empty($event->data['meta'])) return; |
|
25 | + if (empty($event->data)||empty($event->data['meta'])) { |
|
26 | + return; |
|
27 | + } |
|
22 | 28 | |
23 | 29 | /* Google */ |
24 | 30 | $g = $this->getConf('webmaster_google'); |