Apply fixes from StyleCI
This commit is contained in:
@@ -128,6 +128,7 @@ class ArticleController extends Controller
|
||||
* Creating a Article.
|
||||
*
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create(Category $category)
|
||||
@@ -147,6 +148,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @param type Article $article
|
||||
* @param type ArticleRequest $request
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function store(Article $article, ArticleRequest $request)
|
||||
@@ -183,6 +185,7 @@ class ArticleController extends Controller
|
||||
* @param type Article $article
|
||||
* @param type Relationship $relation
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return view
|
||||
*/
|
||||
public function edit($slug)
|
||||
@@ -214,6 +217,7 @@ class ArticleController extends Controller
|
||||
* @param type Article $article
|
||||
* @param type Relationship $relation
|
||||
* @param type ArticleRequest $request
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function update($slug, ArticleUpdate $request)
|
||||
@@ -255,8 +259,9 @@ class ArticleController extends Controller
|
||||
/**
|
||||
* Delete an Agent by id.
|
||||
*
|
||||
* @param type $id
|
||||
* @param type $id
|
||||
* @param type Article $article
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function destroy($slug, Article $article, Relationship $relation, Comment $comment)
|
||||
@@ -290,7 +295,8 @@ class ArticleController extends Controller
|
||||
* user time zone
|
||||
* fetching timezone.
|
||||
*
|
||||
* @param type $utc
|
||||
* @param type $utc
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public static function usertimezone($utc)
|
||||
|
@@ -47,6 +47,7 @@ class CategoryController extends Controller
|
||||
* Indexing all Category.
|
||||
*
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function index()
|
||||
@@ -114,6 +115,7 @@ class CategoryController extends Controller
|
||||
* Create a Category.
|
||||
*
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create(Category $category)
|
||||
@@ -134,6 +136,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @param type Category $category
|
||||
* @param type CategoryRequest $request
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function store(Category $category, CategoryRequest $request)
|
||||
@@ -155,8 +158,9 @@ class CategoryController extends Controller
|
||||
/**
|
||||
* Show the form for editing the specified category.
|
||||
*
|
||||
* @param type $slug
|
||||
* @param type $slug
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function edit($id)
|
||||
@@ -171,9 +175,10 @@ class CategoryController extends Controller
|
||||
/**
|
||||
* Update the specified Category in storage.
|
||||
*
|
||||
* @param type $slug
|
||||
* @param type $slug
|
||||
* @param type Category $category
|
||||
* @param type CategoryUpdate $request
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function update($id, CategoryRequest $request)
|
||||
@@ -199,9 +204,10 @@ class CategoryController extends Controller
|
||||
/**
|
||||
* Remove the specified category from storage.
|
||||
*
|
||||
* @param type $id
|
||||
* @param type $id
|
||||
* @param type Category $category
|
||||
* @param type Relationship $relation
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function destroy($id, Category $category, Relationship $relation)
|
||||
|
@@ -121,6 +121,7 @@ class PageController extends Controller
|
||||
* To insert a value to the table Page.
|
||||
*
|
||||
* @param type Request $request
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function store(PageRequest $request)
|
||||
@@ -141,7 +142,8 @@ class PageController extends Controller
|
||||
/**
|
||||
* To edit a page.
|
||||
*
|
||||
* @param type $slug
|
||||
* @param type $slug
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function edit($slug)
|
||||
@@ -158,8 +160,9 @@ class PageController extends Controller
|
||||
/**
|
||||
* To update a page.
|
||||
*
|
||||
* @param type $slug
|
||||
* @param type $slug
|
||||
* @param type PageUpdate $request
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function update($slug, PageRequest $request)
|
||||
@@ -183,7 +186,8 @@ class PageController extends Controller
|
||||
/**
|
||||
* To Delete a Page.
|
||||
*
|
||||
* @param type $id
|
||||
* @param type $id
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function destroy($id)
|
||||
|
@@ -63,7 +63,8 @@ class SettingsController extends Controller
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @param int $id
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function postSettings($id, Settings $settings, SettingsRequests $request)
|
||||
@@ -80,8 +81,8 @@ class SettingsController extends Controller
|
||||
$settings->logo = $fileName;
|
||||
//$thDestinationPath = 'dist/th';
|
||||
Image::make($destinationPath.'/'.$fileName, [
|
||||
'width' => 300,
|
||||
'height' => 300,
|
||||
'width' => 300,
|
||||
'height' => 300,
|
||||
'grayscale' => false,
|
||||
])->save('lb-faveo/dist/image/'.$fileName);
|
||||
}
|
||||
@@ -94,8 +95,8 @@ class SettingsController extends Controller
|
||||
$settings->background = $fileName;
|
||||
//$thDestinationPath = 'dist/th';
|
||||
Image::make($destinationPath.'/'.$fileName, [
|
||||
'width' => 300,
|
||||
'height' => 300,
|
||||
'width' => 300,
|
||||
'height' => 300,
|
||||
'grayscale' => false,
|
||||
])->save('lb-faveo/dist/image/'.$fileName);
|
||||
}
|
||||
@@ -117,6 +118,7 @@ class SettingsController extends Controller
|
||||
* To Moderate the commenting.
|
||||
*
|
||||
* @param type Comment $comment
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function comment(Comment $comment)
|
||||
@@ -165,8 +167,9 @@ class SettingsController extends Controller
|
||||
/**
|
||||
* Admin can publish the comment.
|
||||
*
|
||||
* @param type $id
|
||||
* @param type $id
|
||||
* @param type Comment $comment
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function publish($id, Comment $comment)
|
||||
@@ -183,8 +186,9 @@ class SettingsController extends Controller
|
||||
/**
|
||||
* delete the comment.
|
||||
*
|
||||
* @param type $id
|
||||
* @param type $id
|
||||
* @param type Comment $comment
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function delete($id, Comment $comment)
|
||||
|
Reference in New Issue
Block a user