Unverified Commit 0400bf07 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #239 from viralsolani/analysis-XWAQBe

Apply fixes from StyleCI
parents 58f57b3b b3881d33
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
namespace App\Http\Controllers\Backend\BlogCategories; namespace App\Http\Controllers\Backend\BlogCategories;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Models\BlogCategories\BlogCategory;
use App\Http\Responses\Backend\BlogCategory\EditResponse;
use App\Repositories\Backend\BlogCategories\BlogCategoriesRepository;
use App\Http\Requests\Backend\BlogCategories\EditBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\StoreBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\EditBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\StoreBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest;
use App\Http\Responses\Backend\BlogCategory\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\BlogCategories\BlogCategory;
use App\Repositories\Backend\BlogCategories\BlogCategoriesRepository;
/** /**
* Class BlogCategoriesController. * Class BlogCategoriesController.
......
...@@ -27,7 +27,7 @@ class UpdateBlogCategoriesRequest extends Request ...@@ -27,7 +27,7 @@ class UpdateBlogCategoriesRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'name' => 'required|max:191|unique:blog_categories,name,' . $this->segment(3) 'name' => 'required|max:191|unique:blog_categories,name,'.$this->segment(3),
]; ];
} }
......
...@@ -27,7 +27,7 @@ class UpdateBlogTagsRequest extends Request ...@@ -27,7 +27,7 @@ class UpdateBlogTagsRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'name' => 'required|max:191|unique:blog_tags,name,' . $this->segment(3) 'name' => 'required|max:191|unique:blog_tags,name,'.$this->segment(3),
]; ];
} }
......
...@@ -27,7 +27,7 @@ class UpdateBlogsRequest extends Request ...@@ -27,7 +27,7 @@ class UpdateBlogsRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'name' => 'required|max:191|unique:blogs,name,' . $this->segment(3), 'name' => 'required|max:191|unique:blogs,name,'.$this->segment(3),
'content' => 'required', 'content' => 'required',
'categories' => 'required', 'categories' => 'required',
'tags' => 'required', 'tags' => 'required',
......
...@@ -87,6 +87,6 @@ class ManageBlogCategoriesTest extends TestCase ...@@ -87,6 +87,6 @@ class ManageBlogCategoriesTest extends TestCase
$this->patch(route('admin.blogCategories.update', $dogCategory), $this->patch(route('admin.blogCategories.update', $dogCategory),
['name' => 'Cat'] ['name' => 'Cat']
)->assertSessionHasErrors('name'); ; )->assertSessionHasErrors('name');
} }
} }
...@@ -207,6 +207,6 @@ class ManageBlogsTest extends TestCase ...@@ -207,6 +207,6 @@ class ManageBlogsTest extends TestCase
$this->patch(route('admin.blogs.update', $dogCategory), $this->patch(route('admin.blogs.update', $dogCategory),
['name' => 'Cat'] ['name' => 'Cat']
)->assertSessionHasErrors('name'); ; )->assertSessionHasErrors('name');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment