Completed
Push — master ( a19a47...15bbc5 )
by Arjay
15:59
created
src/Http/Controllers/ArticlesController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * Store a newly created article.
53 53
      *
54 54
      * @param ArticlesFormRequest $request
55
-     * @return mixed
55
+     * @return \Illuminate\Http\RedirectResponse
56 56
      */
57 57
     public function store(ArticlesFormRequest $request)
58 58
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @param \Yajra\CMS\Entities\Article $article
86 86
      * @param ArticlesFormRequest $request
87
-     * @return mixed
87
+     * @return \Illuminate\Http\RedirectResponse
88 88
      */
89 89
     public function update(Article $article, ArticlesFormRequest $request)
90 90
     {
Please login to merge, or discard this patch.
src/Http/Controllers/MediaController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
     /**
205 205
      * Scan files of the given directory.
206 206
      *
207
-     * @param $current_directory
207
+     * @param string $current_directory
208 208
      * @return \Illuminate\Support\Collection
209 209
      */
210 210
     protected function scanFiles($current_directory)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
-use App\Http\Requests;
6 5
 use Illuminate\Config\Repository;
7 6
 use Illuminate\Contracts\Filesystem\Filesystem;
8 7
 use Illuminate\Database\Eloquent\Collection;
Please login to merge, or discard this patch.
src/Http/Controllers/MenuItemsController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     /**
64 64
      * @param \Yajra\CMS\Entities\Navigation $navigation
65 65
      * @param \Yajra\CMS\Http\Requests\MenuItemsFormRequest $request
66
-     * @return mixed
66
+     * @return \Illuminate\Http\RedirectResponse
67 67
      */
68 68
     public function store(Navigation $navigation, MenuItemsFormRequest $request)
69 69
     {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param \Yajra\CMS\Entities\Navigation $navigation
101 101
      * @param \Yajra\CMS\Entities\Menu $menu
102 102
      * @param \Yajra\CMS\Http\Requests\MenuItemsFormRequest $request
103
-     * @return mixed
103
+     * @return \Illuminate\Http\RedirectResponse
104 104
      */
105 105
     public function update(Navigation $navigation, Menu $menu, MenuItemsFormRequest $request)
106 106
     {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * @param \Yajra\CMS\Entities\Navigation $navigation
120 120
      * @param \Yajra\CMS\Entities\Menu $menu
121
-     * @return string
121
+     * @return \Illuminate\Http\JsonResponse
122 122
      * @throws \Exception
123 123
      */
124 124
     public function destroy(Navigation $navigation, Menu $menu)
Please login to merge, or discard this patch.
src/Http/Controllers/NavigationController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * Store a newly created navigation.
53 53
      *
54 54
      * @param \Illuminate\Http\Request $request
55
-     * @return mixed
55
+     * @return \Illuminate\Http\RedirectResponse
56 56
      */
57 57
     public function store(Request $request)
58 58
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param \Yajra\CMS\Entities\Navigation $navigation
88 88
      * @param \Illuminate\Http\Request $request
89
-     * @return mixed
89
+     * @return \Illuminate\Http\RedirectResponse
90 90
      */
91 91
     public function update(Navigation $navigation, Request $request)
92 92
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * Remove selected navigation.
108 108
      *
109 109
      * @param \Yajra\CMS\Entities\Navigation $navigation
110
-     * @return string
110
+     * @return \Illuminate\Http\JsonResponse
111 111
      * @throws \Exception
112 112
      */
113 113
     public function destroy(Navigation $navigation)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
+use Illuminate\Http\Request;
5 6
 use Yajra\CMS\DataTables\NavigationDataTable;
6 7
 use Yajra\CMS\Entities\Navigation;
7
-use App\Http\Requests;
8
-use Illuminate\Http\Request;
9 8
 
10 9
 class NavigationController extends Controller
11 10
 {
Please login to merge, or discard this patch.
src/Http/Controllers/PermissionsController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      * Remove selected permission.
150 150
      *
151 151
      * @param \Yajra\Acl\Models\Permission $permission
152
-     * @return \Illuminate\Http\RedirectResponse
152
+     * @return \Illuminate\Http\JsonResponse
153 153
      */
154 154
     public function destroy(Permission $permission)
155 155
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
-use Yajra\CMS\DataTables\PermissionsDataTable;
6 5
 use Illuminate\Database\QueryException;
7 6
 use Illuminate\Http\Request;
8 7
 use Yajra\Acl\Models\Permission;
9 8
 use Yajra\Acl\Models\Role;
9
+use Yajra\CMS\DataTables\PermissionsDataTable;
10 10
 
11 11
 class PermissionsController extends Controller
12 12
 {
Please login to merge, or discard this patch.
src/Http/Controllers/ProfileController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      * Update the specified resource in storage.
22 22
      *
23 23
      * @param  \Yajra\CMS\Http\Requests\ProfileFormRequest $request
24
-     * @return \Illuminate\Http\Response
24
+     * @return \Illuminate\Http\RedirectResponse
25 25
      * @throws \Laracasts\Presenter\Exceptions\PresenterException
26 26
      */
27 27
     public function update(ProfileFormRequest $request)
Please login to merge, or discard this patch.
src/Http/Controllers/RolesController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      * Remove selected role.
110 110
      *
111 111
      * @param \Yajra\Acl\Models\Role $role
112
-     * @return \Illuminate\Http\RedirectResponse
112
+     * @return \Illuminate\Http\JsonResponse
113 113
      */
114 114
     public function destroy(Role $role)
115 115
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
-use Yajra\CMS\DataTables\RolesDataTable;
6 5
 use Illuminate\Database\QueryException;
7 6
 use Illuminate\Http\Request;
8 7
 use Yajra\Acl\Models\Permission;
9 8
 use Yajra\Acl\Models\Role;
9
+use Yajra\CMS\DataTables\RolesDataTable;
10 10
 
11 11
 class RolesController extends Controller
12 12
 {
Please login to merge, or discard this patch.
src/Presenters/ArticlePresenter.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * Edit link of the article.
11 11
      *
12
-     * @return string
12
+     * @return \Illuminate\Support\HtmlString
13 13
      */
14 14
     public function editLink()
15 15
     {
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * Publication state.
31 31
      *
32
-     * @return string
32
+     * @return \Illuminate\Support\HtmlString
33 33
      */
34 34
     public function published()
35 35
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Presenters;
4 4
 
5
-use Carbon\Carbon;
6 5
 use Laracasts\Presenter\Presenter;
7 6
 
8 7
 class ArticlePresenter extends Presenter
Please login to merge, or discard this patch.
src/Http/Controllers/WidgetsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      * Get all widget types.
156 156
      *
157 157
      * @param string $type
158
-     * @return string
158
+     * @return \Illuminate\Http\JsonResponse
159 159
      */
160 160
     public function templates($type)
161 161
     {
Please login to merge, or discard this patch.