Completed
Pull Request — master (#57)
by Nicolas
02:14
created
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/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.
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.
Repositories/Cache/CachePostDecorator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             ->remember(
28 28
                 "{$this->locale}.{$this->entityName}.latest.{$amount}",
29 29
                 $this->cacheTime,
30
-                function () use ($amount) {
30
+                function() use ($amount) {
31 31
                     return $this->repository->latest($amount);
32 32
                 }
33 33
             );
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             ->remember(
48 48
                 "{$this->locale}.{$this->entityName}.getPreviousOf.{$postId}",
49 49
                 $this->cacheTime,
50
-                function () use ($post) {
50
+                function() use ($post) {
51 51
                     return $this->repository->getPreviousOf($post);
52 52
                 }
53 53
             );
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             ->remember(
68 68
                 "{$this->locale}.{$this->entityName}.getNextOf.{$postId}",
69 69
                 $this->cacheTime,
70
-                function () use ($post) {
70
+                function() use ($post) {
71 71
                     return $this->repository->getNextOf($post);
72 72
                 }
73 73
             );
Please login to merge, or discard this patch.
Widgets/PostsWidget.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-    * Get the widget type
49
-    * @return string
50
-    */
48
+     * Get the widget type
49
+     * @return string
50
+     */
51 51
     protected function options()
52 52
     {
53 53
         return [
Please login to merge, or discard this patch.
Events/Handlers/RegisterBlogSidebar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function extendWith(\Maatwebsite\Sidebar\Menu $menu)
16 16
     {
17
-        $menu->group(trans('core::sidebar.content'), function (Group $group) {
18
-            $group->item(trans('blog::blog.title'), function (Item $item) {
17
+        $menu->group(trans('core::sidebar.content'), function(Group $group) {
18
+            $group->item(trans('blog::blog.title'), function(Item $item) {
19 19
                 $item->icon('fa fa-copy');
20 20
                 $item->weight(0);
21 21
 
22
-                $item->item(trans('blog::post.title.post'), function (Item $item) {
22
+                $item->item(trans('blog::post.title.post'), function(Item $item) {
23 23
                     $item->icon('fa fa-copy');
24 24
                     $item->weight(0);
25 25
                     $item->append('admin.blog.post.create');
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                         $this->auth->hasAccess('blog.posts.index')
29 29
                     );
30 30
                 });
31
-                $item->item(trans('blog::tag.title.tag'), function (Item $item) {
31
+                $item->item(trans('blog::tag.title.tag'), function(Item $item) {
32 32
                     $item->icon('fa fa-tags');
33 33
                     $item->weight(0);
34 34
                     $item->append('admin.blog.tag.create');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                         $this->auth->hasAccess('blog.tags.index')
38 38
                     );
39 39
                 });
40
-                $item->item(trans('blog::category.title.category'), function (Item $item) {
40
+                $item->item(trans('blog::category.title.category'), function(Item $item) {
41 41
                     $item->icon('fa fa-file-text');
42 42
                     $item->weight(1);
43 43
                     $item->route('admin.blog.category.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
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
     public function boot()
51 51
     {
52 52
         $this->publishes([
53
-            __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/blog'),
53
+            __DIR__.'/../Resources/views' => base_path('resources/views/asgard/blog'),
54 54
         ]);
55 55
 
56 56
         $this->publishConfig('blog', 'config');
57 57
         $this->publishConfig('blog', 'permissions');
58 58
         $this->publishConfig('blog', 'settings');
59
-        $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
59
+        $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
60 60
 
61 61
         $this->registerThumbnails();
62 62
         $this->app[TagManager::class]->registerNamespace(new Post());
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     private function registerBindings()
76 76
     {
77
-        $this->app->bind(PostRepository::class, function () {
77
+        $this->app->bind(PostRepository::class, function() {
78 78
             $repository = new EloquentPostRepository(new Post());
79 79
 
80 80
             if (config('app.cache') === false) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return new CachePostDecorator($repository);
85 85
         });
86 86
 
87
-        $this->app->bind(CategoryRepository::class, function () {
87
+        $this->app->bind(CategoryRepository::class, function() {
88 88
             $repository = new EloquentCategoryRepository(new Category());
89 89
 
90 90
             if (config('app.cache') === false) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             return new CacheCategoryDecorator($repository);
95 95
         });
96 96
 
97
-        $this->app->bind(TagRepository::class, function () {
97
+        $this->app->bind(TagRepository::class, function() {
98 98
             $repository = new EloquentTagRepository(new Tag());
99 99
 
100 100
             if (config('app.cache') === false) {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             'fit' => [
112 112
                 'width' => '150',
113 113
                 'height' => '150',
114
-                'callback' => function ($constraint) {
114
+                'callback' => function($constraint) {
115 115
                     $constraint->upsize();
116 116
                 },
117 117
             ],
Please login to merge, or discard this patch.