Skip to content

Commit 16cb46d

Browse files
committed
Fix whitespace in plugin skeleton templates (code style)
1 parent a038ada commit 16cb46d

File tree

8 files changed

+7
-14
lines changed

8 files changed

+7
-14
lines changed

Skeletor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ protected function actionReplacements($events = [])
256256
}
257257

258258
return [
259-
'@@REGISTER@@' => $register,
260-
'@@HANDLERS@@' => $handler,
259+
'@@REGISTER@@' => rtrim($register, "\n"),
260+
'@@HANDLERS@@' => rtrim($handler, "\n"),
261261
];
262262
}
263263

skel/_test/GeneralTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
class GeneralTest extends DokuWikiTest
1414
{
15-
1615
/**
1716
* Simple test to make sure the @@PLUGIN_TYPE@@.info.txt is in correct format
1817
*/
@@ -81,6 +80,5 @@ public function testPluginConf(): void
8180
);
8281
}
8382
}
84-
8583
}
8684
}

skel/action.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ public function register(EventHandler $controller)
1717
{
1818
@@REGISTER@@
1919
}
20-
2120
@@HANDLERS@@
2221
}

skel/cli.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
class @@PLUGIN_COMPONENT_NAME@@ extends \dokuwiki\Extension\CLIPlugin
1212
{
13-
1413
/** @inheritDoc */
1514
protected function setup(Options $options)
1615
{
@@ -33,6 +32,4 @@ protected function main(Options $options)
3332
// $command = $options->getCmd()
3433
// $arguments = $options->getArgs()
3534
}
36-
3735
}
38-

skel/conf/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2+
23
/**
34
* Default settings for the @@PLUGIN_NAME@@ plugin
45
*
56
* @author @@AUTHOR_NAME@@ <@@AUTHOR_MAIL@@>
67
*/
78

89
//$conf['fixme'] = 'FIXME';
9-

skel/conf/metadata.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
2+
23
/**
34
* Options for the @@PLUGIN_NAME@@ plugin
45
*
56
* @author @@AUTHOR_NAME@@ <@@AUTHOR_MAIL@@>
67
*/
78

8-
99
//$meta['fixme'] = array('string');
10-

skel/lang/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* English language file for @@PLUGIN_NAME@@ plugin
45
*
@@ -10,4 +11,3 @@
1011

1112
// custom language strings for the plugin
1213
// $lang['fixme'] = 'FIXME';
13-

skel/lang/settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2+
23
/**
3-
* english language file for @@PLUGIN_NAME@@ plugin
4+
* English language file for @@PLUGIN_NAME@@ plugin
45
*
56
* @author @@AUTHOR_NAME@@ <@@AUTHOR_MAIL@@>
67
*/
78

89
// keys need to match the config setting name
910
// $lang['fixme'] = 'FIXME';
10-

0 commit comments

Comments
 (0)