Apply fixes from StyleCI
This commit is contained in:
@@ -129,6 +129,7 @@ class ArticleController extends Controller
|
||||
* Creating a Article.
|
||||
*
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create(Category $category)
|
||||
@@ -148,6 +149,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @param type Article $article
|
||||
* @param type ArticleRequest $request
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function store(Article $article, ArticleRequest $request)
|
||||
@@ -184,6 +186,7 @@ class ArticleController extends Controller
|
||||
* @param type Article $article
|
||||
* @param type Relationship $relation
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return view
|
||||
*/
|
||||
public function edit($slug)
|
||||
@@ -215,6 +218,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)
|
||||
@@ -256,8 +260,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)
|
||||
@@ -291,7 +296,8 @@ class ArticleController extends Controller
|
||||
* user time zone
|
||||
* fetching timezone.
|
||||
*
|
||||
* @param type $utc
|
||||
* @param type $utc
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public static function usertimezone($utc)
|
||||
|
@@ -48,6 +48,7 @@ class CategoryController extends Controller
|
||||
* Indexing all Category.
|
||||
*
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function index()
|
||||
@@ -115,6 +116,7 @@ class CategoryController extends Controller
|
||||
* Create a Category.
|
||||
*
|
||||
* @param type Category $category
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create(Category $category)
|
||||
@@ -135,6 +137,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @param type Category $category
|
||||
* @param type CategoryRequest $request
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function store(Category $category, CategoryRequest $request)
|
||||
@@ -156,8 +159,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)
|
||||
@@ -172,9 +176,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)
|
||||
@@ -200,9 +205,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)
|
||||
|
@@ -122,6 +122,7 @@ class PageController extends Controller
|
||||
* To insert a value to the table Page.
|
||||
*
|
||||
* @param type Request $request
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function store(PageRequest $request)
|
||||
@@ -142,7 +143,8 @@ class PageController extends Controller
|
||||
/**
|
||||
* To edit a page.
|
||||
*
|
||||
* @param type $slug
|
||||
* @param type $slug
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function edit($slug)
|
||||
@@ -159,8 +161,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)
|
||||
@@ -184,7 +187,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