Skip to content

Commit 1690d03

Browse files
authored
Merge pull request dokuwiki#4332 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2 parents def986d + b389473 commit 1690d03

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

inc/Feed/FeedParserItem.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace dokuwiki\Feed;
44

5+
use function PHP81_BC\strftime;
6+
57
use SimplePie\Item;
68
use SimplePie\SimplePie;
79

@@ -17,7 +19,7 @@ public function get_local_date($date_format = '%c')
1719
if (!$date_format) {
1820
return $this->sanitize($this->get_date(''), SimplePie::CONSTRUCT_TEXT);
1921
} elseif (($date = $this->get_date('U')) !== null && $date !== false) {
20-
return \PHP81_BC\strftime($date_format, $date);
22+
return strftime($date_format, $date);
2123
}
2224

2325
return null;

inc/common.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @author Andreas Gohr <[email protected]>
88
*/
99

10+
use function PHP81_BC\strftime;
11+
1012
use dokuwiki\PassHash;
1113
use dokuwiki\Draft;
1214
use dokuwiki\Utf8\Clean;
@@ -1500,7 +1502,7 @@ function dformat($dt = null, $format = '')
15001502
if (!$format) $format = $conf['dformat'];
15011503

15021504
$format = str_replace('%f', datetime_h($dt), $format);
1503-
return \PHP81_BC\strftime($format, $dt);
1505+
return strftime($format, $dt);
15041506
}
15051507

15061508
/**

inc/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ function media_nstree($ns)
17121712
++$pos;
17131713
}
17141714
// insert namespace in hierarchy; if not found in above loop, append it to the end
1715-
if ($insert || $pos == count($data)) {
1715+
if ($insert || $pos === count($data)) {
17161716
array_splice($data, $pos, 0, [['level' => $level + 1, 'id' => $tmp_ns, 'open' => 'true']]);
17171717
}
17181718
}

0 commit comments

Comments
 (0)