Completed
Branch master (3b9644)
by Zach
07:08
created
src/database/migrations/2016_11_27_1000000_create_links_table.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
             $table->timestamps();
25 25
 
26 26
             $table->foreign('project_id')
27
-              ->references('id')
28
-              ->on('projects')
29
-              ->onDelete('cascade');
27
+                ->references('id')
28
+                ->on('projects')
29
+                ->onDelete('cascade');
30 30
         });
31 31
     }
32 32
 
Please login to merge, or discard this 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('links', function (Blueprint $table) {
16
+        Schema::create('links', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name')->nullable()->index();
19 19
             $table->string('url')->nullable();
Please login to merge, or discard this patch.
src/database/migrations/2016_11_04_080931_create_images_table.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
             $table->timestamps();
24 24
 
25 25
             $table->foreign('project_id')
26
-              ->references('id')
27
-              ->on('projects')
28
-              ->onDelete('cascade');
26
+                ->references('id')
27
+                ->on('projects')
28
+                ->onDelete('cascade');
29 29
         });
30 30
     }
31 31
 
Please login to merge, or discard this 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('images', function (Blueprint $table) {
16
+        Schema::create('images', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('path')->unique();
19 19
             $table->string('name')->nullable()->index();
Please login to merge, or discard this patch.
src/database/migrations/2016_11_04_062947_create_projects_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('projects', function (Blueprint $table) {
16
+        Schema::create('projects', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name')->unique()->index();
19 19
             $table->string('slug')->unique()->index();
Please login to merge, or discard this patch.
src/database/migrations/2014_10_12_000000_create_users_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('users', function (Blueprint $table) {
16
+        Schema::create('users', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('email')->unique();
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 (Faker\Generator $faker) {
15
+$factory->define(Larafolio\Models\Project::class, function(Faker\Generator $faker) {
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) {
18
+        $images = $projects->mapWithKeys(function($project) {
19 19
             return [$project->name() => $project->getProjectImageUrl()];
20 20
         });
21 21
 
22
-        $blocks = $projects->mapWithKeys(function ($project) {
22
+        $blocks = $projects->mapWithKeys(function($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) {
40
+            ->map(function($project) {
41 41
                 return $project->generateProps();
42 42
             });
43 43
 
Please login to merge, or discard this patch.
src/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct()
26 26
     {
27
-        $this->middleware(function ($request, $next) {
27
+        $this->middleware(function($request, $next) {
28 28
             $this->user = Auth::user();
29 29
 
30 30
             return $next($request);
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function applyFilter(Image $image)
18 18
     {
19
-        return $image->resize(null, 300, function ($constraint) {
19
+        return $image->resize(null, 300, function($constraint) {
20 20
             $constraint->aspectRatio();
21 21
         });
22 22
     }
Please login to merge, or discard this patch.