Unverified Commit 55bfeb5e authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #182 from viralsolani/analysis-zEdDGy

Apply fixes from StyleCI
parents eabd3fd9 254e06e8
......@@ -2,7 +2,6 @@
namespace App\Http\Controllers\Api\V1;
use App\Http\Requests\Backend\BlogTags\StoreApiBlogTagsRequest;
use App\Http\Resources\BlogTagsResource;
use App\Models\BlogTags\BlogTag;
use App\Repositories\Backend\BlogTags\BlogTagsRepository;
......@@ -69,7 +68,7 @@ class BlogTagsController extends APIController
}
/**
* Update BlogTag
* Update BlogTag.
*
* @param BlogTag $blog_tag
* @param Request $request
......@@ -92,7 +91,7 @@ class BlogTagsController extends APIController
}
/**
* Delete BlogTag
* Delete BlogTag.
*
* @param BlogTag $blog_tag
* @param DeleteBlogTagRequest $request
......@@ -116,10 +115,9 @@ class BlogTagsController extends APIController
public function validatingRequest(Request $request, $id = 0)
{
$validation = Validator::make($request->all(), [
'name' => 'required|max:191|unique:blog_tags,name,' . $id,
'name' => 'required|max:191|unique:blog_tags,name,'.$id,
]);
return $validation;
}
}
......@@ -69,7 +69,7 @@ class BlogsController extends APIController
}
/**
* Update blog
* Update blog.
*
* @param Blog $blog
* @param Request $request
......@@ -92,7 +92,7 @@ class BlogsController extends APIController
}
/**
* Delete Blog
* Delete Blog.
*
* @param Blog $blog
* @param Request $request
......@@ -129,6 +129,7 @@ class BlogsController extends APIController
return $validation;
}
/**
* validate message for validate blog.
*
......@@ -141,5 +142,4 @@ class BlogsController extends APIController
'name.max' => 'Blog Title may not be greater than 191 characters.',
];
}
}
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