Passed
Push — master ( 73cb5c...d21fbf )
by xiao
09:33 queued 10s
created
database/migrations/2018_11_01_083339_create_collections_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Collectable/Models/Traits/Collectable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Collectable/Services/CollectableService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $userId = $this->currentUserId();
56 56
         }
57 57
 
58
-        if ( !$userId) {
58
+        if (!$userId) {
59 59
             throw InvalidCollector::notDefined();
60 60
         }
61 61
 
Please login to merge, or discard this patch.