@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__tags', function (Blueprint $table) { |
|
15 | + Schema::create('blog__tags', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__categories', function (Blueprint $table) { |
|
15 | + Schema::create('blog__categories', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__post_tag', function (Blueprint $table) { |
|
15 | + Schema::create('blog__post_tag', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->integer('tag_id'); |
18 | 18 | $table->integer('post_id'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__post_translations', function (Blueprint $table) { |
|
15 | + Schema::create('blog__post_translations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('post_id')->unsigned(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__category_translations', function (Blueprint $table) { |
|
15 | + Schema::create('blog__category_translations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::table('blog__posts', function (Blueprint $table) { |
|
14 | + Schema::table('blog__posts', function(Blueprint $table) { |
|
15 | 15 | $table->engine = 'InnoDB'; |
16 | 16 | $table->integer('status')->after('category_id')->default(1); |
17 | 17 | }); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function down() |
25 | 25 | { |
26 | - Schema::table('blog__posts', function (Blueprint $table) { |
|
26 | + Schema::table('blog__posts', function(Blueprint $table) { |
|
27 | 27 | $table->dropColumn('status'); |
28 | 28 | }); |
29 | 29 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__posts', function (Blueprint $table) { |
|
15 | + Schema::create('blog__posts', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('category_id')->index(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__tag_translations', function (Blueprint $table) { |
|
15 | + Schema::create('blog__tag_translations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $this->publishConfig('blog', 'config'); |
44 | 44 | $this->publishConfig('blog', 'permissions'); |
45 | 45 | $this->publishConfig('blog', 'settings'); |
46 | - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
46 | + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); |
|
47 | 47 | |
48 | 48 | $this->registerThumbnails(); |
49 | 49 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | private function registerBindings() |
62 | 62 | { |
63 | - $this->app->bind(PostRepository::class, function () { |
|
63 | + $this->app->bind(PostRepository::class, function() { |
|
64 | 64 | $repository = new EloquentPostRepository(new Post()); |
65 | 65 | |
66 | 66 | if (config('app.cache') === false) { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | return new CachePostDecorator($repository); |
71 | 71 | }); |
72 | 72 | |
73 | - $this->app->bind(CategoryRepository::class, function () { |
|
73 | + $this->app->bind(CategoryRepository::class, function() { |
|
74 | 74 | $repository = new EloquentCategoryRepository(new Category()); |
75 | 75 | |
76 | 76 | if (config('app.cache') === false) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | return new CacheCategoryDecorator($repository); |
81 | 81 | }); |
82 | 82 | |
83 | - $this->app->bind(TagRepository::class, function () { |
|
83 | + $this->app->bind(TagRepository::class, function() { |
|
84 | 84 | $repository = new EloquentTagRepository(new Tag()); |
85 | 85 | |
86 | 86 | if (config('app.cache') === false) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'fit' => [ |
98 | 98 | 'width' => '150', |
99 | 99 | 'height' => '150', |
100 | - 'callback' => function ($constraint) { |
|
100 | + 'callback' => function($constraint) { |
|
101 | 101 | $constraint->upsize(); |
102 | 102 | }, |
103 | 103 | ], |