Completed
Push — master ( 0f93c4...fc9a5f )
by Arjay
34:24 queued 19:20
created
src/Entities/Article.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,6 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Entities;
4 4
 
5
-use Yajra\CMS\Entities\Traits\CanRequireAuthentication;
6
-use Yajra\CMS\Entities\Traits\HasParameters;
7
-use Yajra\CMS\Entities\Traits\PublishableTrait;
8
-use Yajra\CMS\Presenters\ArticlePresenter;
9 5
 use Illuminate\Database\Eloquent\Model;
10 6
 use Illuminate\Support\Collection;
11 7
 use Laracasts\Presenter\PresentableTrait;
@@ -14,6 +10,10 @@  discard block
 block discarded – undo
14 10
 use Yajra\Acl\Models\Permission;
15 11
 use Yajra\Acl\Traits\HasPermission;
16 12
 use Yajra\Auditable\AuditableTrait;
13
+use Yajra\CMS\Entities\Traits\CanRequireAuthentication;
14
+use Yajra\CMS\Entities\Traits\HasParameters;
15
+use Yajra\CMS\Entities\Traits\PublishableTrait;
16
+use Yajra\CMS\Presenters\ArticlePresenter;
17 17
 
18 18
 /**
19 19
  * Class Article
Please login to merge, or discard this patch.
src/Entities/Menu.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Entities;
4 4
 
5
-use Yajra\CMS\Entities\Traits\CanRequireAuthentication;
6
-use Yajra\CMS\Entities\Traits\HasParameters;
7
-use Yajra\CMS\Entities\Traits\PublishableTrait;
8
-use Yajra\CMS\Presenters\MenuPresenter;
9 5
 use Baum\Node;
10 6
 use Illuminate\Database\Eloquent\Model;
11 7
 use Laracasts\Presenter\PresentableTrait;
12 8
 use Yajra\Acl\Models\Permission;
13 9
 use Yajra\Auditable\AuditableTrait;
10
+use Yajra\CMS\Entities\Traits\CanRequireAuthentication;
11
+use Yajra\CMS\Entities\Traits\HasParameters;
12
+use Yajra\CMS\Entities\Traits\PublishableTrait;
13
+use Yajra\CMS\Presenters\MenuPresenter;
14 14
 
15 15
 /**
16 16
  * @property int depth
Please login to merge, or discard this patch.
src/Entities/Traits/PublishableTrait.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * Published an entity.
11 11
      *
12
-     * @return \Illuminate\Database\Eloquent\Model
12
+     * @return PublishableTrait
13 13
      */
14 14
     public function publish()
15 15
     {
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * Published/Unpublished an entity.
24 24
      *
25
-     * @return \Illuminate\Database\Eloquent\Model
25
+     * @return PublishableTrait
26 26
      */
27 27
     public function togglePublishedState()
28 28
     {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * Unpublished an entity.
37 37
      *
38
-     * @return \Illuminate\Database\Eloquent\Model
38
+     * @return PublishableTrait
39 39
      */
40 40
     public function unpublish()
41 41
     {
Please login to merge, or discard this patch.
src/Http/Controllers/LookupController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @param \Yajra\CMS\Http\Requests\LookupFormRequest $request
82 82
      * @param \Yajra\CMS\Entities\Lookup $lookup
83
-     * @return \Illuminate\Http\Response
83
+     * @return \Illuminate\Http\RedirectResponse
84 84
      */
85 85
     public function update(LookupFormRequest $request, Lookup $lookup)
86 86
     {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * Remove the specified resource from storage.
96 96
      *
97 97
      * @param \Yajra\CMS\Entities\Lookup $lookup
98
-     * @return \Illuminate\Http\Response
98
+     * @return JsonResponse
99 99
      * @throws \Exception
100 100
      */
101 101
     public function destroy(Lookup $lookup)
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
-use Yajra\CMS\DataTables\LookupDataTable;
6
-use Yajra\CMS\Entities\Lookup;
7
-use Yajra\CMS\Http\Requests\LookupFormRequest;
8 5
 use App\Http\Requests;
9 6
 use Illuminate\Http\JsonResponse;
10 7
 use Illuminate\Http\Request;
8
+use Yajra\CMS\DataTables\LookupDataTable;
9
+use Yajra\CMS\Entities\Lookup;
10
+use Yajra\CMS\Http\Requests\LookupFormRequest;
11 11
 
12 12
 class LookupController extends Controller
13 13
 {
Please login to merge, or discard this patch.
src/Presenters/MenuPresenter.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Presenters;
4 4
 
5
+use Laracasts\Presenter\Presenter;
5 6
 use Yajra\CMS\Entities\Article;
6 7
 use Yajra\CMS\Entities\Category;
7
-use Laracasts\Presenter\Presenter;
8 8
 
9 9
 class MenuPresenter extends Presenter
10 10
 {
Please login to merge, or discard this patch.
src/Repositories/Category/CategoryEloquentRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /**
21 21
      * Get repository model.
22 22
      *
23
-     * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Builder
23
+     * @return Category
24 24
      */
25 25
     public function getModel()
26 26
     {
Please login to merge, or discard this patch.