Test Setup Failed
Push — 0.5 ( 84d172...3fd929 )
by Ben
07:11
created
src/Fragments/FragmentModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,5 +20,5 @@
 block discarded – undo
20 20
     public $table = 'fragments';
21 21
     public $timestamps = false;
22 22
     public $guarded = [];
23
-    public $with = ['assetRelation','assetRelation.media'];
23
+    public $with = ['assetRelation', 'assetRelation.media'];
24 24
 }
Please login to merge, or discard this patch.
src/Urls/MemoizedUrlRecord.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public static function findByModel(Model $model, string $locale = null): UrlRecord
29 29
     {
30 30
         if (!static::$cachedRecords) {
31
-            static::$cachedRecords = DB::table('chief_urls')->select(['id','redirect_id','locale','slug','model_type','model_id'])->get();
31
+            static::$cachedRecords = DB::table('chief_urls')->select(['id', 'redirect_id', 'locale', 'slug', 'model_type', 'model_id'])->get();
32 32
             // TODO: make simple array map of values instead of collection of models...
33 33
         }
34 34
 
@@ -40,15 +40,15 @@  discard block
 block discarded – undo
40 40
             ->first();
41 41
 
42 42
         if (!$record) {
43
-            throw new UrlRecordNotFound('No url record found for model [' . $model->getMorphClass() . '@' . $model->id . '] for locale [' . $locale . '].');
43
+            throw new UrlRecordNotFound('No url record found for model ['.$model->getMorphClass().'@'.$model->id.'] for locale ['.$locale.'].');
44 44
         }
45 45
 
46
-        return UrlRecord::make((array) $record);
46
+        return UrlRecord::make((array)$record);
47 47
     }
48 48
 
49 49
     public static function getByModel(Model $model)
50 50
     {
51
-        return chiefMemoize('url-records-get-by-model', function ($model) {
51
+        return chiefMemoize('url-records-get-by-model', function($model) {
52 52
             return parent::getByModel($model);
53 53
         }, [$model]);
54 54
     }
Please login to merge, or discard this patch.