1
0
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:
Toby Zerner
2016-02-25 22:09:39 -05:00
committed by StyleCI Bot
parent 83c22d73a4
commit a6cf10f854
96 changed files with 240 additions and 245 deletions

View File

@@ -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();

View File

@@ -10,7 +10,6 @@
namespace Flarum\Database;
use Flarum\Core;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Foundation\Application;
use Illuminate\Database\ConnectionResolver;

View File

@@ -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);
}