Completed
Push — master ( cc59db...11708c )
by Travis
02:31
created
database/migrations/2017_02_20_205001_create_snippets_votes.php 3 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateSnippetsVotes extends Migration
8 8
 {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
             $table->timestamps();
21 21
 
22 22
             $table->foreign('user_id')
23
-                  ->references('id')->on('users')
24
-                  ->onDelete('cascade');
23
+                    ->references('id')->on('users')
24
+                    ->onDelete('cascade');
25 25
 
26 26
             $table->foreign('snippet_id')
27
-                  ->references('id')->on('snippets')
28
-                  ->onDelete('cascade');
27
+                    ->references('id')->on('snippets')
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('snippets_votes', function (Blueprint $table) {
16
+        Schema::create('snippets_votes', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('user_id');
19 19
             $table->unsignedInteger('snippet_id');
Please login to merge, or discard this patch.
resources/lang/en/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,6 +114,6 @@
 block discarded – undo
114 114
     |
115 115
     */
116 116
 
117
-    'attributes' => [],
117
+    'attributes' => [ ],
118 118
 
119 119
 ];
Please login to merge, or discard this patch.
server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * @author   Taylor Otwell <[email protected]>
7 7
  */
8 8
 $uri = urldecode(
9
-    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
9
+    parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH)
10 10
 );
11 11
 
12 12
 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Route::middleware('auth:api')->get('/user', function (Request $request) {
16
+Route::middleware('auth:api')->get('/user', function(Request $request) {
17 17
     return $request->user();
18 18
 });
Please login to merge, or discard this patch.
routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Artisan::command('inspire', function () {
16
+Artisan::command('inspire', function() {
17 17
     $this->comment(Inspiring::quote());
18 18
 })->describe('Display an inspiring quote');
Please login to merge, or discard this patch.
routes/channels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Broadcast::channel('App.User.{id}', function ($user, $id) {
14
+Broadcast::channel('App.User.{id}', function($user, $id) {
15 15
     return (int) $user->id === (int) $id;
16 16
 });
Please login to merge, or discard this patch.
database/factories/ModelFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 */
13 13
 
14 14
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
15
-$factory->define(App\User::class, function (Faker\Generator $faker) {
15
+$factory->define(App\User::class, function(Faker\Generator $faker) {
16 16
     static $password;
17 17
 
18 18
     return [
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
     ];
25 25
 });
26 26
 
27
-$factory->define(App\Snippet::class, function (Faker\Generator $faker) {
27
+$factory->define(App\Snippet::class, function(Faker\Generator $faker) {
28 28
     return [
29
-        'user_id' => function () {
29
+        'user_id' => function() {
30 30
             return factory(App\User::class)->create()->id;
31 31
         },
32
-        'forked_id' => $faker->boolean ? function () {
32
+        'forked_id' => $faker->boolean ? function() {
33 33
             return factory(App\Snippet::class)->create()->id;
34 34
         }
35 35
     : null,
Please login to merge, or discard this patch.
config/session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     |
110 110
     */
111 111
 
112
-    'lottery' => [2, 100],
112
+    'lottery' => [ 2, 100 ],
113 113
 
114 114
     /*
115 115
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
app/Http/Controllers/VotesController.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
         return response()->json([
17 17
             'count' => $snippet->votes->count(),
18
-            'favourited' => (bool) count($changes['attached']),
18
+            'favourited' => (bool) count($changes[ 'attached' ]),
19 19
         ]);
20 20
     }
21 21
 }
Please login to merge, or discard this patch.