@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('collections', function (Blueprint $table) { |
|
| 16 | + Schema::create('collections', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->morphs('collectable'); |
| 19 | 19 | $table->integer('user_id')->unsigned()->index(); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | return $query |
| 55 | 55 | ->select("{$collectable->getTable()}.*") |
| 56 | - ->leftJoin('collections', function (JoinClause $join) use ($collectable) { |
|
| 56 | + ->leftJoin('collections', function(JoinClause $join) use ($collectable) { |
|
| 57 | 57 | $join |
| 58 | 58 | ->on('collections.collectable_id', '=', "{$collectable->getTable()}.{$collectable->getKeyName()}") |
| 59 | 59 | ->where('collections.collectable_type', '=', $collectable->getMorphClass()); |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $userId = $this->currentUserId(); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - if ( !$userId) { |
|
| 58 | + if (!$userId) { |
|
| 59 | 59 | throw InvalidCollector::notDefined(); |
| 60 | 60 | } |
| 61 | 61 | |