Skip to content

Commit ed713dc

Browse files
committed
Code style fixes
1 parent 96df3e7 commit ed713dc

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

action.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
class action_plugin_imgpaste extends DokuWiki_Action_Plugin
1010
{
11-
1211
protected $tempdir = '';
1312
protected $tempfile = '';
1413

@@ -162,5 +161,4 @@ protected function fail($status, $text = '')
162161
http_status($status, $text);
163162
exit;
164163
}
165-
166164
}

conf/default.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Default settings for the imgpaste plugin
45
*

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 imgpaste plugin
45
*
56
* @author Andreas Gohr <[email protected]>
67
*/
78

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

helper.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class helper_plugin_imgpaste extends Plugin
2424
* @param string $id The ID to link to
2525
* @return string The relative ID
2626
*/
27-
public static function createRelativeID($ref, $id) {
27+
public static function createRelativeID($ref, $id)
28+
{
2829
// Split the reference and target IDs into namespaces
2930
$sourceNs = explode(':', $ref);
3031
array_pop($sourceNs); // Remove the page part, keep only the namespace
@@ -34,9 +35,11 @@ public static function createRelativeID($ref, $id) {
3435

3536
// Find the common prefix length
3637
$commonPrefixLength = 0;
37-
while ($commonPrefixLength < count($sourceNs) &&
38+
while (
39+
$commonPrefixLength < count($sourceNs) &&
3840
$commonPrefixLength < count($targetNs) &&
39-
$sourceNs[$commonPrefixLength] === $targetNs[$commonPrefixLength]) {
41+
$sourceNs[$commonPrefixLength] === $targetNs[$commonPrefixLength]
42+
) {
4043
$commonPrefixLength++;
4144
}
4245

0 commit comments

Comments
 (0)