Completed
Push — master ( 3b9644...b65440 )
by Zach
07:24 queued 02:31
created
src/database/seeds/ProjectsTableSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
             factory(Project::class)
23 23
                 ->create(['name' => $name])
24
-                ->each(function (Project $project) {
24
+                ->each(function(Project $project) {
25 25
                     $project->blocks()->save(factory(TextBlock::class)->make());
26 26
 
27 27
                     $project->links()->save(factory(Link::class)->make());
Please login to merge, or discard this patch.
src/database/factories/ModelFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
4
-$factory->define(App\User::class, function (Faker\Generator $faker) {
4
+$factory->define(App\User::class, function(Faker\Generator $faker) {
5 5
     static $password;
6 6
 
7 7
     return [
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     ];
13 13
 });
14 14
 
15
-$factory->define(Larafolio\Models\Project::class, function () {
15
+$factory->define(Larafolio\Models\Project::class, function() {
16 16
     $name = str_random(30);
17 17
 
18 18
     $types = ['web', 'github', 'volunteer'];
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     ];
28 28
 });
29 29
 
30
-$factory->define(Larafolio\Models\Image::class, function (Faker\Generator $faker) {
30
+$factory->define(Larafolio\Models\Image::class, function(Faker\Generator $faker) {
31 31
     $project = factory(Larafolio\Models\Project::class)->create();
32 32
 
33 33
     return [
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     ];
38 38
 });
39 39
 
40
-$factory->define(Larafolio\Models\TextBlock::class, function (Faker\Generator $faker) {
40
+$factory->define(Larafolio\Models\TextBlock::class, function(Faker\Generator $faker) {
41 41
     $text = $faker->paragraph(5, true);
42 42
 
43 43
     return [
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     ];
49 49
 });
50 50
 
51
-$factory->define(Larafolio\Models\Link::class, function (Faker\Generator $faker) {
51
+$factory->define(Larafolio\Models\Link::class, function(Faker\Generator $faker) {
52 52
     return [
53 53
         'name'  => $faker->word,
54 54
         'text'  => $faker->sentence,
Please login to merge, or discard this patch.
src/Http/Controllers/DashboardController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
     {
16 16
         $projects = Project::all()->sortBy('order')->values();
17 17
 
18
-        $images = $projects->mapWithKeys(function (Project $project) {
18
+        $images = $projects->mapWithKeys(function(Project $project) {
19 19
             return [$project->name() => $project->getProjectImageUrl()];
20 20
         });
21 21
 
22
-        $blocks = $projects->mapWithKeys(function (Project $project) {
22
+        $blocks = $projects->mapWithKeys(function(Project $project) {
23 23
             return [$project->name() => $project->getProjectBlockText()];
24 24
         });
25 25
 
Please login to merge, or discard this patch.
src/Http/Controllers/SettingsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $deletedProjects = Project::onlyTrashed()
38 38
             ->orderBy('deleted_at', 'DESC')
39 39
             ->get()
40
-            ->map(function (Project $project) {
40
+            ->map(function(Project $project) {
41 41
                 return $project->generateProps();
42 42
             });
43 43
 
Please login to merge, or discard this patch.
src/Http/ImageFilters/Medium.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function applyFilter(Image $image)
19 19
     {
20
-        return $image->resize(null, 300, function (Constraint $constraint) {
20
+        return $image->resize(null, 300, function(Constraint $constraint) {
21 21
             $constraint->aspectRatio();
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Http/ImageFilters/Thumbnail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function applyFilter(Image $image)
19 19
     {
20
-        return $image->resize(null, 80, function (Constraint $constraint) {
20
+        return $image->resize(null, 80, function(Constraint $constraint) {
21 21
             $constraint->aspectRatio();
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Http/ImageFilters/Small.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function applyFilter(Image $image)
19 19
     {
20
-        return $image->resize(null, 150, function (Constraint $constraint) {
20
+        return $image->resize(null, 150, function(Constraint $constraint) {
21 21
             $constraint->aspectRatio();
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Models/Traits/HasImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     public function imagesWithProps()
106 106
     {
107 107
         return $this->images
108
-            ->map(function (Image $image) {
108
+            ->map(function(Image $image) {
109 109
                 return $image->generateProps();
110 110
             })->reverse()->values();
111 111
     }
Please login to merge, or discard this patch.
src/Models/Project.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
     {
66 66
         parent::boot();
67 67
 
68
-        static::creating(function (Project $project) {
68
+        static::creating(function(Project $project) {
69 69
             $project->setSlug('name');
70 70
         });
71 71
 
72
-        static::updating(function (Project $project) {
72
+        static::updating(function(Project $project) {
73 73
             $project->setSlug('name');
74 74
         });
75 75
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         if ($group) {
153 153
             return $query->get()
154
-                ->each(function ($project, $key) {
154
+                ->each(function($project, $key) {
155 155
                     $project->index = $key;
156 156
                 })
157 157
                 ->groupBy('type');
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      */
372 372
     public function scopeOrderRelationship($query, $relationship)
373 373
     {
374
-        return $query->with([$relationship => function ($query) {
374
+        return $query->with([$relationship => function($query) {
375 375
             $query->orderBy('order');
376 376
         }]);
377 377
     }
Please login to merge, or discard this patch.