Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
e38cf422
Unverified
Commit
e38cf422
authored
Jul 05, 2018
by
Viral Solani
Committed by
GitHub
Jul 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #245 from viralsolani/analysis-8n3p4w
Apply fixes from StyleCI
parents
c7999c03
a3053ac3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
BlogCategoriesController.php
app/Http/Controllers/Api/V1/BlogCategoriesController.php
+3
-3
DeactivatedUsersController.php
app/Http/Controllers/Api/V1/DeactivatedUsersController.php
+3
-3
DeletedUsersController.php
app/Http/Controllers/Api/V1/DeletedUsersController.php
+3
-3
FaqsController.php
app/Http/Controllers/Api/V1/FaqsController.php
+3
-3
PagesController.php
app/Http/Controllers/Api/V1/PagesController.php
+3
-3
No files found.
app/Http/Controllers/Api/V1/BlogCategoriesController.php
View file @
e38cf422
...
@@ -31,9 +31,9 @@ class BlogCategoriesController extends APIController
...
@@ -31,9 +31,9 @@ class BlogCategoriesController extends APIController
*/
*/
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
return
BlogCategoriesResource
::
collection
(
return
BlogCategoriesResource
::
collection
(
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
...
...
app/Http/Controllers/Api/V1/DeactivatedUsersController.php
View file @
e38cf422
...
@@ -29,9 +29,9 @@ class DeactivatedUsersController extends APIController
...
@@ -29,9 +29,9 @@ class DeactivatedUsersController extends APIController
*/
*/
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
return
UserResource
::
collection
(
return
UserResource
::
collection
(
$this
->
repository
->
getForDataTable
(
0
,
false
)
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
$this
->
repository
->
getForDataTable
(
0
,
false
)
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
...
...
app/Http/Controllers/Api/V1/DeletedUsersController.php
View file @
e38cf422
...
@@ -29,9 +29,9 @@ class DeletedUsersController extends APIController
...
@@ -29,9 +29,9 @@ class DeletedUsersController extends APIController
*/
*/
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
return
UserResource
::
collection
(
return
UserResource
::
collection
(
$this
->
repository
->
getForDataTable
(
0
,
true
)
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
$this
->
repository
->
getForDataTable
(
0
,
true
)
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
...
...
app/Http/Controllers/Api/V1/FaqsController.php
View file @
e38cf422
...
@@ -29,9 +29,9 @@ class FaqsController extends APIController
...
@@ -29,9 +29,9 @@ class FaqsController extends APIController
*/
*/
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
return
FaqsResource
::
collection
(
return
FaqsResource
::
collection
(
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
...
...
app/Http/Controllers/Api/V1/PagesController.php
View file @
e38cf422
...
@@ -29,9 +29,9 @@ class PagesController extends APIController
...
@@ -29,9 +29,9 @@ class PagesController extends APIController
*/
*/
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
return
PagesResource
::
collection
(
return
PagesResource
::
collection
(
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment