Test Failed
Push — master ( 414239...447ec5 )
by Julien
03:43
created
database/migrations/2015_12_23_025811_create_ChampionshipSettings_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('championship_settings', function (Blueprint $table) {
15
+        Schema::create('championship_settings', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('alias')->nullable();
18 18
             $table->integer('championship_id')->unsigned()->unique();
Please login to merge, or discard this patch.
database/migrations/2015_12_03_230346_create_Category_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('category', function (Blueprint $table) {
15
+        Schema::create('category', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name');
18 18
             $table->string('gender')->nullable();
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $table->engine = 'InnoDB';
35 35
         });
36 36
 
37
-        Schema::create('championship', function (Blueprint $table) {
37
+        Schema::create('championship', function(Blueprint $table) {
38 38
             $table->increments('id');
39 39
             $table->integer('tournament_id')->unsigned()->index();
40 40
             $table->integer('category_id')->unsigned()->index();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $table->engine = 'InnoDB';
57 57
         });
58 58
 
59
-        Schema::create('competitor', function (Blueprint $table) {
59
+        Schema::create('competitor', function(Blueprint $table) {
60 60
             $table->increments('id');
61 61
             $table->integer('championship_id')->unsigned()->index();
62 62
             $table->foreign('championship_id')
Please login to merge, or discard this patch.
src/models/Championship.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,9 @@
 block discarded – undo
149 149
     {
150 150
 
151 151
 
152
-        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '')
153
-            return $this->settings->alias;
152
+        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') {
153
+                    return $this->settings->alias;
154
+        }
154 155
 
155 156
         $genders = [
156 157
             'M' => trans('categories.male'),
Please login to merge, or discard this patch.