Completed
Push — 2.0 ( b61aac...db38c3 )
by Nicolas
12:38
created
Migrations/2014_09_27_175804_create_category_translations_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('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');
Please login to merge, or discard this patch.
Database/Migrations/2015_05_29_180714_add_status_column_to_post_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Database/Migrations/2014_09_27_170107_create_posts_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('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();
Please login to merge, or discard this patch.
Database/Migrations/2014_09_27_180538_create_tag_translations_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('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');
Please login to merge, or discard this patch.
Http/frontendRoutes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,15 +3,15 @@
 block discarded – undo
3 3
 use Illuminate\Routing\Router;
4 4
 
5 5
 /** @var Router $router */
6
-$router->group(['prefix' => 'blog'], function (Router $router) {
6
+$router->group(['prefix' => 'blog'], function(Router $router) {
7 7
     $locale = LaravelLocalization::setLocale() ?: App::getLocale();
8 8
     $router->get('posts', [
9
-        'as' => $locale . '.blog',
9
+        'as' => $locale.'.blog',
10 10
         'uses' => 'PublicController@index',
11 11
         'middleware' => config('asgard.blog.config.middleware'),
12 12
     ]);
13 13
     $router->get('posts/{slug}', [
14
-        'as' => $locale . '.blog.slug',
14
+        'as' => $locale.'.blog.slug',
15 15
         'uses' => 'PublicController@show',
16 16
         'middleware' => config('asgard.blog.config.middleware'),
17 17
     ]);
Please login to merge, or discard this patch.
Http/Controllers/Api/TagController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * Display a listing of the resource.
25 25
      *
26
-     * @return Response
26
+     * @return \Illuminate\Database\Eloquent\Collection
27 27
      */
28 28
     public function index()
29 29
     {
Please login to merge, or discard this patch.
Http/apiRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Illuminate\Routing\Router;
4 4
 
5 5
 /** @var Router $router */
6
-$router->group(['prefix' => 'v1', 'middleware' => 'api.token'], function (Router $router) {
6
+$router->group(['prefix' => 'v1', 'middleware' => 'api.token'], function(Router $router) {
7 7
     $router->post('tag', [
8 8
         'as' => 'api.tag.store',
9 9
         'uses' => 'TagController@store',
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     ]);
15 15
 });
16 16
 
17
-$router->group(['prefix' => 'v1/blog', 'middleware' => 'api.token'], function (Router $router) {
17
+$router->group(['prefix' => 'v1/blog', 'middleware' => 'api.token'], function(Router $router) {
18 18
     $router->get('categories', [
19 19
         'as' => 'api.blog.category.index',
20 20
         'uses' => 'V1\CategoryController@index',
Please login to merge, or discard this patch.
Providers/BlogServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
     public function boot()
42 42
     {
43 43
         $this->publishes([
44
-            __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/blog'),
44
+            __DIR__.'/../Resources/views' => base_path('resources/views/asgard/blog'),
45 45
         ]);
46 46
 
47 47
         $this->publishConfig('blog', 'config');
48 48
         $this->publishConfig('blog', 'permissions');
49 49
         $this->publishConfig('blog', 'settings');
50
-        $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
50
+        $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
51 51
 
52 52
         $this->registerThumbnails();
53 53
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     private function registerBindings()
66 66
     {
67
-        $this->app->bind(PostRepository::class, function () {
67
+        $this->app->bind(PostRepository::class, function() {
68 68
             $repository = new EloquentPostRepository(new Post());
69 69
 
70 70
             if (config('app.cache') === false) {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             return new CachePostDecorator($repository);
75 75
         });
76 76
 
77
-        $this->app->bind(CategoryRepository::class, function () {
77
+        $this->app->bind(CategoryRepository::class, function() {
78 78
             $repository = new EloquentCategoryRepository(new Category());
79 79
 
80 80
             if (config('app.cache') === false) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return new CacheCategoryDecorator($repository);
85 85
         });
86 86
 
87
-        $this->app->bind(TagRepository::class, function () {
87
+        $this->app->bind(TagRepository::class, function() {
88 88
             $repository = new EloquentTagRepository(new Tag());
89 89
 
90 90
             if (config('app.cache') === false) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'fit' => [
102 102
                 'width' => '150',
103 103
                 'height' => '150',
104
-                'callback' => function ($constraint) {
104
+                'callback' => function($constraint) {
105 105
                     $constraint->upsize();
106 106
                 },
107 107
             ],
Please login to merge, or discard this patch.
Repositories/Cache/CacheTagDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ->remember(
31 31
                 "{$this->locale}.{$this->entityName}.findByName.{$name}",
32 32
                 $this->cacheTime,
33
-                function () use ($name) {
33
+                function() use ($name) {
34 34
                     return $this->repository->findByName($name);
35 35
                 }
36 36
             );
Please login to merge, or discard this patch.