mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
fix str_starts_with attribute
This commit is contained in:
parent
a3f2ab0aa2
commit
d07025e5ee
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ function getLastSnapTime(array $files): int
|
||||||
|
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
if (is_dir($filename) || is_link($filename) || str_starts_with('.'))
|
if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.'))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ if ($config->snap->storage->local->enabled)
|
||||||
{
|
{
|
||||||
foreach ((array) scandir($directory) as $filename)
|
foreach ((array) scandir($directory) as $filename)
|
||||||
{
|
{
|
||||||
if (is_dir($filename) || is_link($filename) || str_starts_with('.'))
|
if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.'))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue