Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-01-03 08:25:25 +00:00
parent b535aa90eb
commit 43386fd86d
357 changed files with 15021 additions and 15193 deletions

View File

@@ -128,7 +128,6 @@ class ArticleController extends Controller
* Creating a Article.
*
* @param type Category $category
*
* @return type view
*/
public function create(Category $category)
@@ -148,7 +147,6 @@ class ArticleController extends Controller
*
* @param type Article $article
* @param type ArticleRequest $request
*
* @return type redirect
*/
public function store(Article $article, ArticleRequest $request)
@@ -185,7 +183,6 @@ class ArticleController extends Controller
* @param type Article $article
* @param type Relationship $relation
* @param type Category $category
*
* @return view
*/
public function edit($slug)
@@ -217,7 +214,6 @@ class ArticleController extends Controller
* @param type Article $article
* @param type Relationship $relation
* @param type ArticleRequest $request
*
* @return Response
*/
public function update($slug, ArticleUpdate $request)
@@ -259,9 +255,8 @@ 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)
@@ -295,8 +290,7 @@ class ArticleController extends Controller
* user time zone
* fetching timezone.
*
* @param type $utc
*
* @param type $utc
* @return type
*/
public static function usertimezone($utc)

View File

@@ -47,7 +47,6 @@ class CategoryController extends Controller
* Indexing all Category.
*
* @param type Category $category
*
* @return Response
*/
public function index()
@@ -115,7 +114,6 @@ class CategoryController extends Controller
* Create a Category.
*
* @param type Category $category
*
* @return type view
*/
public function create(Category $category)
@@ -136,7 +134,6 @@ class CategoryController extends Controller
*
* @param type Category $category
* @param type CategoryRequest $request
*
* @return type Redirect
*/
public function store(Category $category, CategoryRequest $request)
@@ -158,9 +155,8 @@ 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)
@@ -175,10 +171,9 @@ 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)
@@ -204,10 +199,9 @@ 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)

View File

@@ -121,7 +121,6 @@ class PageController extends Controller
* To insert a value to the table Page.
*
* @param type Request $request
*
* @return type
*/
public function store(PageRequest $request)
@@ -142,8 +141,7 @@ class PageController extends Controller
/**
* To edit a page.
*
* @param type $slug
*
* @param type $slug
* @return type view
*/
public function edit($slug)
@@ -160,9 +158,8 @@ 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)
@@ -186,8 +183,7 @@ class PageController extends Controller
/**
* To Delete a Page.
*
* @param type $id
*
* @param type $id
* @return type redirect
*/
public function destroy($id)

View File

@@ -63,8 +63,7 @@ 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)
@@ -81,8 +80,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);
}
@@ -95,8 +94,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);
}
@@ -118,7 +117,6 @@ class SettingsController extends Controller
* To Moderate the commenting.
*
* @param type Comment $comment
*
* @return Response
*/
public function comment(Comment $comment)
@@ -167,9 +165,8 @@ 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)
@@ -186,9 +183,8 @@ 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)