Passed
Push — main ( e80760...ee0f4a )
by Richard
05:13
created
migrations/2017_08_07_080947_create_players_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('players', function (Blueprint $table) {
16
+        Schema::create('players', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
 
19 19
             $table->string('facebook_id', 128)->nullable();
Please login to merge, or discard this patch.
migrations/2016_05_19_053424_create_games_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('games', function (Blueprint $table) {
15
+        Schema::create('games', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             
18 18
             $table->string('name', 128);
Please login to merge, or discard this patch.
src/Http/Controllers/PlayerController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             } else {
134 134
                 return response(Player::findOrFail($id)->games->take($request->limit), 200);
135 135
             } 
136
-         } catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) {
136
+            } catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) {
137 137
             return response([
138 138
                 'error' => 'No player found.'
139 139
             ], 400);
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
     public function showWithName($name)
37 37
     {
38 38
         $player = Player::findByName($name);
39
-        if ($player != NULL)
40
-            return response($player, 200);
39
+        if ($player != NULL) {
40
+                    return response($player, 200);
41
+        }
41 42
         return response([
42 43
             'error' => 'No player found.'
43 44
         ], 400);
Please login to merge, or discard this patch.
migrations/2017_08_07_081215_create_game_player_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function up()
16 16
     {
17
-        Schema::create('game_player', function (Blueprint $table) {
17
+        Schema::create('game_player', function(Blueprint $table) {
18 18
             $table->increments('id');
19 19
             
20 20
             $table->integer('game_id')->unsigned();
Please login to merge, or discard this patch.