@@ -16,14 +16,14 @@ |
||
16 | 16 | { |
17 | 17 | $table->engine = 'InnoDB'; |
18 | 18 | $table->bigIncrements('id'); |
19 | - $table->string('nickname',50); |
|
20 | - $table->string('scope',50); |
|
21 | - $table->string('lang',10); |
|
19 | + $table->string('nickname', 50); |
|
20 | + $table->string('scope', 50); |
|
21 | + $table->string('lang', 10); |
|
22 | 22 | $table->longtext('content'); |
23 | 23 | $table->boolean('activated')->default(0); |
24 | 24 | $table->bigInteger('user_id')->unsigned()->nullable(); |
25 | 25 | $table->timestamps(); |
26 | - $table->unique(array('nickname','lang','scope')); |
|
26 | + $table->unique(array('nickname', 'lang', 'scope')); |
|
27 | 27 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
28 | 28 | }); |
29 | 29 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | }); |
28 | 28 | Blade::directive('transarticles_tojs', function($expression) { |
29 | 29 | $auxExpression = explode(',', str_replace(['(', ')', ' ', '"', "'"], '', $expression)); |
30 | - if (count($auxExpression) > 1) |
|
30 | + if (count($auxExpression)>1) |
|
31 | 31 | { |
32 | 32 | $scope = $auxExpression[0]; |
33 | 33 | $basevar = $auxExpression[1]; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | return $translations->getjs($scope, $basevar); |
42 | 42 | }); |
43 | 43 | |
44 | - Artisan::command('transarticles:createseed', function () { |
|
44 | + Artisan::command('transarticles:createseed', function() { |
|
45 | 45 | $bar = $this->output->createProgressBar(2); |
46 | 46 | $confirm = $this->choice("Do you wisth to clean the DatabaseSeeder.php list?", ['yes', 'no'], 0); |
47 | 47 | $bar->advance(); |
@@ -31,8 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $scope = $auxExpression[0]; |
33 | 33 | $basevar = $auxExpression[1]; |
34 | - } |
|
35 | - else |
|
34 | + } else |
|
36 | 35 | { |
37 | 36 | $scope = $auxExpression[0]; |
38 | 37 | $basevar = ""; |