@@ -12,7 +12,7 @@ |
||
| 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(); |
@@ -12,7 +12,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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') |
@@ -149,8 +149,9 @@ |
||
| 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'), |