mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -77,7 +77,7 @@ class MigrationSourceRepository
|
|||||||
if ($add) {
|
if ($add) {
|
||||||
// Selectively add files, but only include those matching the format YYYY_MM_DD_HHIISS_<something>.php
|
// Selectively add files, but only include those matching the format YYYY_MM_DD_HHIISS_<something>.php
|
||||||
// This excludes the create_<table>_table.
|
// 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.
|
// Once we found the version that is installed, we can quit.
|
||||||
@@ -133,6 +133,7 @@ class MigrationSourceRepository
|
|||||||
$path = realpath($path);
|
$path = realpath($path);
|
||||||
$path = Str::after($path, 'migrations/');
|
$path = Str::after($path, 'migrations/');
|
||||||
$basename = Str::before($path, '.php');
|
$basename = Str::before($path, '.php');
|
||||||
|
|
||||||
return [$path => $basename];
|
return [$path => $basename];
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
namespace Flarum\Extension;
|
namespace Flarum\Extension;
|
||||||
|
|
||||||
use Flarum\Database\MigrationSourceRepository;
|
|
||||||
use Flarum\Database\Migrator;
|
use Flarum\Database\Migrator;
|
||||||
use Flarum\Extend\LifecycleInterface;
|
use Flarum\Extend\LifecycleInterface;
|
||||||
use Flarum\Extension\Exception\ExtensionBootError;
|
use Flarum\Extension\Exception\ExtensionBootError;
|
||||||
|
Reference in New Issue
Block a user