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-07 18:47:35 +00:00
parent da241bacb6
commit cade5f0d23
235 changed files with 14452 additions and 14844 deletions

View File

@@ -129,7 +129,6 @@ class ArticleController extends Controller
* Creating a Article.
*
* @param type Category $category
*
* @return type view
*/
public function create(Category $category)
@@ -149,7 +148,6 @@ class ArticleController extends Controller
*
* @param type Article $article
* @param type ArticleRequest $request
*
* @return type redirect
*/
public function store(Article $article, ArticleRequest $request)
@@ -186,7 +184,6 @@ class ArticleController extends Controller
* @param type Article $article
* @param type Relationship $relation
* @param type Category $category
*
* @return view
*/
public function edit($slug)
@@ -218,7 +215,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)
@@ -260,9 +256,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)
@@ -296,8 +291,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

@@ -48,7 +48,6 @@ class CategoryController extends Controller
* Indexing all Category.
*
* @param type Category $category
*
* @return Response
*/
public function index()
@@ -116,7 +115,6 @@ class CategoryController extends Controller
* Create a Category.
*
* @param type Category $category
*
* @return type view
*/
public function create(Category $category)
@@ -137,7 +135,6 @@ class CategoryController extends Controller
*
* @param type Category $category
* @param type CategoryRequest $request
*
* @return type Redirect
*/
public function store(Category $category, CategoryRequest $request)
@@ -159,9 +156,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)
@@ -176,10 +172,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)
@@ -205,10 +200,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

@@ -122,7 +122,6 @@ class PageController extends Controller
* To insert a value to the table Page.
*
* @param type Request $request
*
* @return type
*/
public function store(PageRequest $request)
@@ -143,8 +142,7 @@ class PageController extends Controller
/**
* To edit a page.
*
* @param type $slug
*
* @param type $slug
* @return type view
*/
public function edit($slug)
@@ -161,9 +159,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)
@@ -187,8 +184,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)