1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 16:07:34 +02:00

Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
luceos
2021-05-31 13:45:05 +00:00
committed by StyleCI Bot
parent f5c602c234
commit 43f379093c
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ class MigrationSourceRepository
if ($add) {
// Selectively add files, but only include those matching the format YYYY_MM_DD_HHIISS_<something>.php
// This excludes the create_<table>_table.
$files = array_merge($files, glob(realpath($directory) . "/[0-9_]**.php"));
$files = array_merge($files, glob(realpath($directory).'/[0-9_]**.php'));
}
// Once we found the version that is installed, we can quit.
@@ -133,6 +133,7 @@ class MigrationSourceRepository
$path = realpath($path);
$path = Str::after($path, 'migrations/');
$basename = Str::before($path, '.php');
return [$path => $basename];
})
->toArray();

View File

@@ -9,7 +9,6 @@
namespace Flarum\Extension;
use Flarum\Database\MigrationSourceRepository;
use Flarum\Database\Migrator;
use Flarum\Extend\LifecycleInterface;
use Flarum\Extension\Exception\ExtensionBootError;