Completed
Pull Request — master (#29)
by Sebastian
10:22
created
app/Foundation/Models/Traits/HasTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function tagsWithType(TagType $type) : Collection
18 18
     {
19
-        return $this->tags->filter(function (Tag $tag) use ($type) {
19
+        return $this->tags->filter(function(Tag $tag) use ($type) {
20 20
             return $tag->hasType($type);
21 21
         });
22 22
     }
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/HasSeoId.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     protected static function bootHasSeoId()
12 12
     {
13
-        static::creating(function (Model $model) {
13
+        static::creating(function(Model $model) {
14 14
             $model->generateSeoId();
15 15
         });
16 16
     }
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/HasMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     public function clearTemporaryMedia()
36 36
     {
37
-        $this->media()->get()->each(function (Media $media) {
37
+        $this->media()->get()->each(function(Media $media) {
38 38
             if ($media->getCustomProperty('temp', false) === true) {
39 39
                 $media->delete();
40 40
             }
Please login to merge, or discard this patch.
app/Foundation/Models/Updaters/UpdatesTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function updateTagsForType(string $type)
20 20
     {
21
-        collect($this->request->get("{$type}_tags"))->each(function ($name) use ($type) {
21
+        collect($this->request->get("{$type}_tags"))->each(function($name) use ($type) {
22 22
             $type = new TagType($type);
23 23
 
24 24
             $tag = Tag::findByNameOrCreate($name, $type);
Please login to merge, or discard this patch.
app/Foundation/Models/Updaters/UpdatesMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                 $collection
23 23
             );
24 24
 
25
-            collect($updatedMedia)->each(function (Media $media) {
25
+            collect($updatedMedia)->each(function(Media $media) {
26 26
                 $media->setCustomProperty('temp', false);
27 27
                 $media->save();
28 28
             });
Please login to merge, or discard this patch.
app/Models/Article.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         return app('cache')->rememberForever(
19 19
             "article.findByTechnicalName.{$technicalName}",
20
-            function () use ($technicalName) : Article {
20
+            function() use ($technicalName) : Article {
21 21
                 $article = static::where('technical_name', $technicalName)->first();
22 22
 
23 23
                 if ($article === null) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         return app('cache')->rememberForever(
35 35
             "article.getWithTechnicalNameLike.{$technicalName}",
36
-            function () use ($technicalName) : Collection {
36
+            function() use ($technicalName) : Collection {
37 37
                 return static::where('technical_name', 'like', "{$technicalName}.%")
38 38
                     ->orderBy('order_column')
39 39
                     ->get();
Please login to merge, or discard this patch.
app/Http/Middleware/RobotsMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
             return false;
15 15
         }
16 16
 
17
-        if (! app()->environment('production')) {
17
+        if (!app()->environment('production')) {
18 18
             return false;
19 19
         }
20 20
 
21
-        if (! env('ALLOW_ROBOTS')) {
21
+        if (!env('ALLOW_ROBOTS')) {
22 22
             return false;
23 23
         }
24 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/TagController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function index()
17 17
     {
18
-        $tags = Tag::nonDraft()->get()->reduce(function (Collection $carry, Tag $tag) {
18
+        $tags = Tag::nonDraft()->get()->reduce(function(Collection $carry, Tag $tag) {
19 19
 
20 20
             if (!$carry->has($tag->type)) {
21 21
                 $carry->put($tag->type, new Collection());
Please login to merge, or discard this patch.
app/Services/Html/HtmlServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function registerHtmlBuilder()
33 33
     {
34
-        $this->app->singleton('html', function ($app) {
34
+        $this->app->singleton('html', function($app) {
35 35
             return new HtmlBuilder($app['url']);
36 36
         });
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function registerFormBuilder()
43 43
     {
44
-        $this->app->singleton('form', function ($app) {
44
+        $this->app->singleton('form', function($app) {
45 45
             $formBuilder = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());
46 46
 
47 47
             $formBuilder->setSessionStore($app['session.store']);
Please login to merge, or discard this patch.