Completed
Pull Request — master (#59)
by Nicolas
08:07
created
Providers/RouteServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     protected function getFrontendRoute()
19 19
     {
20
-        return __DIR__ . '/../Http/frontendRoutes.php';
20
+        return __DIR__.'/../Http/frontendRoutes.php';
21 21
     }
22 22
 
23 23
     /**
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     protected function getBackendRoute()
27 27
     {
28
-        return __DIR__ . '/../Http/backendRoutes.php';
28
+        return __DIR__.'/../Http/backendRoutes.php';
29 29
     }
30 30
 
31 31
     /**
@@ -33,6 +33,6 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function getApiRoute()
35 35
     {
36
-        return __DIR__ . '/../Http/apiRoutes.php';
36
+        return __DIR__.'/../Http/apiRoutes.php';
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
Repositories/Eloquent/EloquentPostRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function allTranslatedIn($lang)
81 81
     {
82
-        return $this->model->whereHas('translations', function (Builder $q) use ($lang) {
82
+        return $this->model->whereHas('translations', function(Builder $q) use ($lang) {
83 83
             $q->where('locale', "$lang");
84 84
             $q->where('title', '!=', '');
85 85
         })->with('translations')->whereStatus(Status::PUBLISHED)->orderBy('created_at', 'DESC')->get();
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function findBySlug($slug)
127 127
     {
128
-        return $this->model->whereHas('translations', function (Builder $q) use ($slug) {
128
+        return $this->model->whereHas('translations', function(Builder $q) use ($slug) {
129 129
             $q->where('slug', "$slug");
130 130
         })->with('translations')->whereStatus(Status::PUBLISHED)->firstOrFail();
131 131
     }
Please login to merge, or discard this patch.
Repositories/Eloquent/EloquentTagRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function findByName($name)
18 18
     {
19
-        $tags = $this->model->with('translations')->whereHas('translations', function (Builder $q) use ($name) {
19
+        $tags = $this->model->with('translations')->whereHas('translations', function(Builder $q) use ($name) {
20 20
             $q->where('name', 'like', "%$name%");
21 21
         })->get();
22 22
 
Please login to merge, or discard this patch.
Http/backendRoutes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,18 +3,18 @@
 block discarded – undo
3 3
 use Illuminate\Routing\Router;
4 4
 
5 5
 /** @var Router $router */
6
-$router->bind('category', function ($id) {
6
+$router->bind('category', function($id) {
7 7
     return app(\Modules\Blog\Repositories\CategoryRepository::class)->find($id);
8 8
 });
9
-$router->bind('post', function ($id) {
9
+$router->bind('post', function($id) {
10 10
     return app(\Modules\Blog\Repositories\PostRepository::class)->find($id);
11 11
 });
12 12
 
13
-$router->bind('tag', function ($id) {
13
+$router->bind('tag', function($id) {
14 14
     return app(Modules\Blog\Repositories\TagRepository::class)->find($id);
15 15
 });
16 16
 
17
-$router->group(['prefix' => '/blog'], function (Router $router) {
17
+$router->group(['prefix' => '/blog'], function(Router $router) {
18 18
     $router->get('posts', [
19 19
         'as' => 'admin.blog.post.index',
20 20
         'uses' => 'PostController@index',
Please login to merge, or discard this patch.
Database/Migrations/2014_09_27_180507_create_tags_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__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();
Please login to merge, or discard this patch.
Database/Migrations/2014_09_27_175736_create_categories_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__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();
Please login to merge, or discard this patch.
Database/Migrations/2014_09_27_181907_create_post_tag_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__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');
Please login to merge, or discard this patch.
Database/Migrations/2014_09_27_175411_create_post_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__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();
Please login to merge, or discard this patch.
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.