Unverified Commit 4c400c2a authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #230 from viralsolani/analysis-qgQZyw

Apply fixes from StyleCI
parents 849c0904 1aa29b35
...@@ -3,18 +3,18 @@ ...@@ -3,18 +3,18 @@
namespace App\Http\Controllers\Backend\Access\Permission; namespace App\Http\Controllers\Backend\Access\Permission;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Models\Access\Permission\Permission;
use App\Http\Responses\Backend\Access\Permission\EditResponse;
use App\Http\Responses\Backend\Access\Permission\CreateResponse;
use App\Repositories\Backend\Access\Permission\PermissionRepository;
use App\Http\Requests\Backend\Access\Permission\EditPermissionRequest;
use App\Http\Requests\Backend\Access\Permission\StorePermissionRequest;
use App\Http\Requests\Backend\Access\Permission\CreatePermissionRequest; use App\Http\Requests\Backend\Access\Permission\CreatePermissionRequest;
use App\Http\Requests\Backend\Access\Permission\DeletePermissionRequest; use App\Http\Requests\Backend\Access\Permission\DeletePermissionRequest;
use App\Http\Requests\Backend\Access\Permission\EditPermissionRequest;
use App\Http\Requests\Backend\Access\Permission\ManagePermissionRequest; use App\Http\Requests\Backend\Access\Permission\ManagePermissionRequest;
use App\Http\Requests\Backend\Access\Permission\StorePermissionRequest;
use App\Http\Requests\Backend\Access\Permission\UpdatePermissionRequest; use App\Http\Requests\Backend\Access\Permission\UpdatePermissionRequest;
use App\Http\Responses\Backend\Access\Permission\CreateResponse;
use App\Http\Responses\Backend\Access\Permission\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\Access\Permission\Permission;
use App\Repositories\Backend\Access\Permission\PermissionRepository;
/** /**
* Class PermissionController. * Class PermissionController.
......
...@@ -108,6 +108,6 @@ class RoleController extends Controller ...@@ -108,6 +108,6 @@ class RoleController extends Controller
{ {
$this->roles->delete($role); $this->roles->delete($role);
return new RedirectResponse(route('admin.access.role.index'), ['flash_success' => trans('alerts.backend.roles.deleted')]); return new RedirectResponse(route('admin.access.role.index'), ['flash_success' => trans('alerts.backend.roles.deleted')]);
} }
} }
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
namespace App\Http\Controllers\Backend\BlogCategories; namespace App\Http\Controllers\Backend\BlogCategories;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Models\BlogCategories\BlogCategory;
use App\Repositories\Backend\BlogCategories\BlogCategoriesRepository;
use App\Http\Requests\Backend\BlogCategories\EditBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\StoreBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\EditBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\StoreBlogCategoriesRequest;
use App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest; use App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\BlogCategories\BlogCategory;
use App\Repositories\Backend\BlogCategories\BlogCategoriesRepository;
/** /**
* Class BlogCategoriesController. * Class BlogCategoriesController.
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
namespace App\Http\Controllers\Backend\BlogTags; namespace App\Http\Controllers\Backend\BlogTags;
use App\Models\BlogTags\BlogTag;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\Backend\BlogTag\EditResponse;
use App\Repositories\Backend\BlogTags\BlogTagsRepository;
use App\Http\Requests\Backend\BlogTags\EditBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\CreateBlogTagsRequest; use App\Http\Requests\Backend\BlogTags\CreateBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\DeleteBlogTagsRequest; use App\Http\Requests\Backend\BlogTags\DeleteBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\EditBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest; use App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest;
use App\Http\Requests\Backend\BlogTags\UpdateBlogTagsRequest; use App\Http\Requests\Backend\BlogTags\UpdateBlogTagsRequest;
use App\Http\Responses\Backend\BlogTag\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\BlogTags\BlogTag;
use App\Repositories\Backend\BlogTags\BlogTagsRepository;
/** /**
* Class BlogTagsController. * Class BlogTagsController.
......
...@@ -2,23 +2,23 @@ ...@@ -2,23 +2,23 @@
namespace App\Http\Controllers\Backend\Faqs; namespace App\Http\Controllers\Backend\Faqs;
use App\Models\Faqs\Faq;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\Backend\Faq\EditResponse;
use App\Repositories\Backend\Faqs\FaqsRepository;
use App\Http\Requests\Backend\Faqs\EditFaqsRequest;
use App\Http\Requests\Backend\Faqs\StoreFaqsRequest;
use App\Http\Requests\Backend\Faqs\CreateFaqsRequest; use App\Http\Requests\Backend\Faqs\CreateFaqsRequest;
use App\Http\Requests\Backend\Faqs\DeleteFaqsRequest; use App\Http\Requests\Backend\Faqs\DeleteFaqsRequest;
use App\Http\Requests\Backend\Faqs\EditFaqsRequest;
use App\Http\Requests\Backend\Faqs\ManageFaqsRequest; use App\Http\Requests\Backend\Faqs\ManageFaqsRequest;
use App\Http\Requests\Backend\Faqs\StoreFaqsRequest;
use App\Http\Requests\Backend\Faqs\UpdateFaqsRequest; use App\Http\Requests\Backend\Faqs\UpdateFaqsRequest;
use App\Http\Responses\Backend\Faq\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\Faqs\Faq;
use App\Repositories\Backend\Faqs\FaqsRepository;
class FaqsController extends Controller class FaqsController extends Controller
{ {
/** /**
* Faq Repository * Faq Repository.
* *
* @var \App\Repositories\Backend\Faqs\FaqsRepository * @var \App\Repositories\Backend\Faqs\FaqsRepository
*/ */
......
...@@ -2,42 +2,41 @@ ...@@ -2,42 +2,41 @@
namespace App\Http\Controllers\Backend\Menu; namespace App\Http\Controllers\Backend\Menu;
use App\Models\Menu\Menu;
use Bvipul\Generator\Module;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\Backend\Menu\EditResponse;
use App\Repositories\Backend\Menu\MenuRepository;
use App\Http\Requests\Backend\Menu\EditMenuRequest;
use App\Http\Responses\Backend\Menu\CreateResponse;
use App\Http\Requests\Backend\Menu\StoreMenuRequest;
use App\Http\Requests\Backend\Menu\CreateMenuRequest; use App\Http\Requests\Backend\Menu\CreateMenuRequest;
use App\Http\Requests\Backend\Menu\DeleteMenuRequest; use App\Http\Requests\Backend\Menu\DeleteMenuRequest;
use App\Http\Requests\Backend\Menu\EditMenuRequest;
use App\Http\Requests\Backend\Menu\ManageMenuRequest; use App\Http\Requests\Backend\Menu\ManageMenuRequest;
use App\Http\Requests\Backend\Menu\StoreMenuRequest;
use App\Http\Requests\Backend\Menu\UpdateMenuRequest; use App\Http\Requests\Backend\Menu\UpdateMenuRequest;
use App\Http\Responses\Backend\Menu\CreateResponse;
use App\Http\Responses\Backend\Menu\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\Menu\Menu;
use App\Repositories\Backend\Menu\MenuRepository;
use Bvipul\Generator\Module;
class MenuController extends Controller class MenuController extends Controller
{ {
/** /**
* Menu Model Object * Menu Model Object.
* *
* @var \App\Models\Menu\Menu * @var \App\Models\Menu\Menu
*/ */
protected $menu; protected $menu;
/** /**
* Module Model Object * Module Model Object.
* *
* @var \Bvipul\Generator\Module * @var \Bvipul\Generator\Module
*/ */
protected $modules; protected $modules;
/** /**
* Menu Types * Menu Types.
* *
* @var Array * @var array
*/ */
protected $types; protected $types;
...@@ -47,14 +46,13 @@ class MenuController extends Controller ...@@ -47,14 +46,13 @@ class MenuController extends Controller
public function __construct(MenuRepository $menu, Module $module) public function __construct(MenuRepository $menu, Module $module)
{ {
$this->menu = $menu; $this->menu = $menu;
$this->modules = $module; $this->modules = $module;
$this->types = [ $this->types = [
'backend' => 'Backend', 'backend' => 'Backend',
'frontend' => 'Frontend', 'frontend' => 'Frontend',
]; ];
} }
/** /**
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
namespace App\Http\Controllers\Backend\Pages; namespace App\Http\Controllers\Backend\Pages;
use App\Models\Page\Page;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\ViewResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\Backend\Page\EditResponse;
use App\Repositories\Backend\Pages\PagesRepository;
use App\Http\Requests\Backend\Pages\EditPageRequest;
use App\Http\Requests\Backend\Pages\StorePageRequest;
use App\Http\Requests\Backend\Pages\CreatePageRequest; use App\Http\Requests\Backend\Pages\CreatePageRequest;
use App\Http\Requests\Backend\Pages\DeletePageRequest; use App\Http\Requests\Backend\Pages\DeletePageRequest;
use App\Http\Requests\Backend\Pages\EditPageRequest;
use App\Http\Requests\Backend\Pages\ManagePageRequest; use App\Http\Requests\Backend\Pages\ManagePageRequest;
use App\Http\Requests\Backend\Pages\StorePageRequest;
use App\Http\Requests\Backend\Pages\UpdatePageRequest; use App\Http\Requests\Backend\Pages\UpdatePageRequest;
use App\Http\Responses\Backend\Page\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\ViewResponse;
use App\Models\Page\Page;
use App\Repositories\Backend\Pages\PagesRepository;
/** /**
* Class PagesController. * Class PagesController.
...@@ -37,7 +37,7 @@ class PagesController extends Controller ...@@ -37,7 +37,7 @@ class PagesController extends Controller
*/ */
public function index(ManagePageRequest $request) public function index(ManagePageRequest $request)
{ {
return new ViewResponse('backend.pages.index'); return new ViewResponse('backend.pages.index');
} }
/** /**
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
namespace App\Http\Controllers\Backend\Settings; namespace App\Http\Controllers\Backend\Settings;
use App\Models\Settings\Setting;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Http\Responses\RedirectResponse;
use App\Http\Responses\Backend\Setting\EditResponse;
use App\Repositories\Backend\Settings\SettingsRepository;
use App\Http\Requests\Backend\Settings\ManageSettingsRequest; use App\Http\Requests\Backend\Settings\ManageSettingsRequest;
use App\Http\Requests\Backend\Settings\UpdateSettingsRequest; use App\Http\Requests\Backend\Settings\UpdateSettingsRequest;
use App\Http\Responses\Backend\Setting\EditResponse;
use App\Http\Responses\RedirectResponse;
use App\Models\Settings\Setting;
use App\Repositories\Backend\Settings\SettingsRepository;
/** /**
* Class SettingsController. * Class SettingsController.
......
...@@ -12,7 +12,7 @@ class CreateResponse implements Responsable ...@@ -12,7 +12,7 @@ class CreateResponse implements Responsable
protected $permissions; protected $permissions;
/** /**
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository $permissions * @param \App\Repositories\Backend\Access\Permission\PermissionRepository $permissions
*/ */
public function __construct($permissions) public function __construct($permissions)
{ {
......
...@@ -12,7 +12,7 @@ class EditResponse implements Responsable ...@@ -12,7 +12,7 @@ class EditResponse implements Responsable
protected $permission; protected $permission;
/** /**
* @param \App\Models\Access\Permission\Permission $permission * @param \App\Models\Access\Permission\Permission $permission
*/ */
public function __construct($permission) public function __construct($permission)
{ {
...@@ -20,9 +20,10 @@ class EditResponse implements Responsable ...@@ -20,9 +20,10 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
......
...@@ -12,7 +12,7 @@ class EditResponse implements Responsable ...@@ -12,7 +12,7 @@ class EditResponse implements Responsable
protected $blogCategory; protected $blogCategory;
/** /**
* @param \App\Models\BlogCategories\BlogCategory $blogCategory * @param \App\Models\BlogCategories\BlogCategory $blogCategory
*/ */
public function __construct($blogCategory, $types, $modules) public function __construct($blogCategory, $types, $modules)
{ {
...@@ -20,9 +20,10 @@ class EditResponse implements Responsable ...@@ -20,9 +20,10 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
......
...@@ -20,14 +20,15 @@ class EditResponse implements Responsable ...@@ -20,14 +20,15 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
{ {
return view('backend.blogtags.edit') return view('backend.blogtags.edit')
->with('blogtag', $this->blogTag); ->with('blogtag', $this->blogTag);
} }
} }
...@@ -12,7 +12,7 @@ class EditResponse implements Responsable ...@@ -12,7 +12,7 @@ class EditResponse implements Responsable
protected $faq; protected $faq;
/** /**
* @param \App\Models\Faqs\Faq $faq * @param \App\Models\Faqs\Faq $faq
*/ */
public function __construct($faq) public function __construct($faq)
{ {
...@@ -20,9 +20,10 @@ class EditResponse implements Responsable ...@@ -20,9 +20,10 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
......
...@@ -7,7 +7,7 @@ use Illuminate\Contracts\Support\Responsable; ...@@ -7,7 +7,7 @@ use Illuminate\Contracts\Support\Responsable;
class CreateResponse implements Responsable class CreateResponse implements Responsable
{ {
/** /**
* @var Array * @var array
*/ */
protected $types; protected $types;
...@@ -17,8 +17,8 @@ class CreateResponse implements Responsable ...@@ -17,8 +17,8 @@ class CreateResponse implements Responsable
protected $modules; protected $modules;
/** /**
* @param Array $types * @param array $types
* @param \Bvipul\Generator\Module $modules * @param \Bvipul\Generator\Module $modules
*/ */
public function __construct($types, $modules) public function __construct($types, $modules)
{ {
......
...@@ -7,7 +7,7 @@ use Illuminate\Contracts\Support\Responsable; ...@@ -7,7 +7,7 @@ use Illuminate\Contracts\Support\Responsable;
class EditResponse implements Responsable class EditResponse implements Responsable
{ {
/** /**
* @var Array * @var array
*/ */
protected $types; protected $types;
...@@ -22,9 +22,9 @@ class EditResponse implements Responsable ...@@ -22,9 +22,9 @@ class EditResponse implements Responsable
protected $menu; protected $menu;
/** /**
* @param \App\Models\Menu\Menu $menu * @param \App\Models\Menu\Menu $menu
* @param Array $types * @param array $types
* @param \Bvipul\Generator\Module $modules * @param \Bvipul\Generator\Module $modules
*/ */
public function __construct($menu, $types, $modules) public function __construct($menu, $types, $modules)
{ {
...@@ -34,9 +34,10 @@ class EditResponse implements Responsable ...@@ -34,9 +34,10 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
......
...@@ -20,9 +20,10 @@ class EditResponse implements Responsable ...@@ -20,9 +20,10 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
......
...@@ -20,9 +20,10 @@ class EditResponse implements Responsable ...@@ -20,9 +20,10 @@ class EditResponse implements Responsable
} }
/** /**
* toReponse * toReponse.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/ */
public function toResponse($request) public function toResponse($request)
......
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