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:
@@ -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();
|
||||
|
@@ -9,7 +9,6 @@
|
||||
|
||||
namespace Flarum\Extension;
|
||||
|
||||
use Flarum\Database\MigrationSourceRepository;
|
||||
use Flarum\Database\Migrator;
|
||||
use Flarum\Extend\LifecycleInterface;
|
||||
use Flarum\Extension\Exception\ExtensionBootError;
|
||||
|
Reference in New Issue
Block a user