Completed
Push — master ( b25e0f...6cb20f )
by Terzi
06:11
created
src/Controllers/ScaffoldController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,8 +173,8 @@
 block discarded – undo
173 173
 
174 174
         $searchTerm = $request->get('query');
175 175
         $instance = (new $searchable)->where('id', (int) $searchTerm)
176
-                                     ->orWhere($titleField, 'LIKE', "%{$request->get('query')}%")
177
-                                     ->get(['id', "{$titleField} as name"]);
176
+                                        ->orWhere($titleField, 'LIKE', "%{$request->get('query')}%")
177
+                                        ->get(['id', "{$titleField} as name"]);
178 178
 
179 179
         return response()->json(['items' => $instance->toArray()]);
180 180
     }
Please login to merge, or discard this patch.
src/Field/Media.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     protected function onView()
45 45
     {
46 46
         $media = $this->model->getMedia($this->id());
47
-        $media = $media->map(function ($item) {
47
+        $media = $media->map(function($item) {
48 48
             return array_merge($item->toArray(), [
49 49
                 'url' => $item->getUrl(),
50 50
                 'conversions' => $this->conversions($item),
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function conversions(MediaModel $item)
74 74
     {
75
-        return array_build($item->getMediaConversionNames(), function ($key, $conversion) use ($item) {
75
+        return array_build($item->getMediaConversionNames(), function($key, $conversion) use ($item) {
76 76
             return [$conversion, $item->getUrl($conversion)];
77 77
         });
78 78
     }
Please login to merge, or discard this patch.
src/Field/Traits/WorksWithModules.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 firstWithModel($model)
15 15
     {
16
-        return app('scaffold.modules')->first(function ($module) use ($model) {
16
+        return app('scaffold.modules')->first(function($module) use ($model) {
17 17
             if (is_string($model)) {
18 18
                 return get_class($module->model()) === $model;
19 19
             }
Please login to merge, or discard this patch.