mirror of
https://github.com/flarum/core.git
synced 2025-07-18 15:21:16 +02:00
Applied fixes from StyleCI
This commit is contained in:
@@ -28,7 +28,7 @@ abstract class AbstractModel extends Eloquent
|
||||
/**
|
||||
* Indicates if the model should be timestamped. Turn off by default.
|
||||
*
|
||||
* @var boolean
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
@@ -107,7 +107,7 @@ abstract class AbstractModel extends Eloquent
|
||||
if (! $this->relationLoaded($key) && ($relation = $this->getCustomRelation($key))) {
|
||||
if (! $relation instanceof Relation) {
|
||||
throw new LogicException('Relationship method must return an object of type '
|
||||
. 'Illuminate\Database\Eloquent\Relations\Relation');
|
||||
.'Illuminate\Database\Eloquent\Relations\Relation');
|
||||
}
|
||||
|
||||
return $this->relations[$key] = $relation->getResults();
|
||||
|
@@ -10,7 +10,6 @@
|
||||
|
||||
namespace Flarum\Database;
|
||||
|
||||
use Flarum\Core;
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Flarum\Foundation\Application;
|
||||
use Illuminate\Database\ConnectionResolver;
|
||||
|
@@ -65,8 +65,8 @@ class Migrator
|
||||
Resolver $resolver,
|
||||
Filesystem $files
|
||||
) {
|
||||
$this->files = $files;
|
||||
$this->resolver = $resolver;
|
||||
$this->files = $files;
|
||||
$this->resolver = $resolver;
|
||||
$this->repository = $repository;
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ class Migrator
|
||||
*/
|
||||
public function getMigrationFiles($path)
|
||||
{
|
||||
$files = $this->files->glob($path . '/*_*.php');
|
||||
$files = $this->files->glob($path.'/*_*.php');
|
||||
|
||||
if ($files === false) {
|
||||
return [];
|
||||
@@ -287,7 +287,7 @@ class Migrator
|
||||
*/
|
||||
public function setConnection($name)
|
||||
{
|
||||
if (!is_null($name)) {
|
||||
if (! is_null($name)) {
|
||||
$this->resolver->setDefaultConnection($name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user