Completed
Push — master ( bd4222...e5ba92 )
by Arjay
13:31
created
src/Entities/Widget.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
     /**
86 86
      * Get list of keys used for caching.
87 87
      *
88
-     * @return array
88
+     * @return string[]
89 89
      */
90 90
     public function getCacheKeys()
91 91
     {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Entities;
4 4
 
5
-use Yajra\CMS\Contracts\Cacheable;
6
-use Yajra\CMS\Entities\Traits\CanRequireAuthentication;
7
-use Yajra\CMS\Entities\Traits\HasParameters;
8
-use Yajra\CMS\Presenters\WidgetPresenter;
9 5
 use Illuminate\Database\Eloquent\Collection;
10 6
 use Illuminate\Database\Eloquent\Model;
11 7
 use Laracasts\Presenter\PresentableTrait;
12 8
 use Yajra\Acl\Models\Permission;
13 9
 use Yajra\Acl\Traits\HasPermission;
14 10
 use Yajra\Auditable\AuditableTrait;
11
+use Yajra\CMS\Contracts\Cacheable;
12
+use Yajra\CMS\Entities\Traits\CanRequireAuthentication;
13
+use Yajra\CMS\Entities\Traits\HasParameters;
14
+use Yajra\CMS\Presenters\WidgetPresenter;
15 15
 
16 16
 /**
17 17
  * @property string title
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * Check if file is an image and can have thumbnail.
86 86
      *
87 87
      * @param string $file
88
-     * @return bool
88
+     * @return integer
89 89
      */
90 90
     function file_can_have_thumbnail($file)
91 91
     {
Please login to merge, or discard this patch.
src/Http/Controllers/ArticleController.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
-use Yajra\CMS\Entities\Article;
6 5
 use App\Http\Controllers\Controller;
7
-use App\Http\Requests;
6
+use Yajra\CMS\Entities\Article;
8 7
 
9 8
 class ArticleController extends Controller
10 9
 {
Please login to merge, or discard this patch.
src/Http/Controllers/ArticlesController.php 2 patches
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.
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 Collective\Html\HtmlBuilder;
7 6
 use Illuminate\Contracts\Console\Kernel;
8 7
 use Illuminate\Contracts\Logging\Log;
Please login to merge, or discard this patch.
src/Http/Controllers/CategoriesController.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @param  \Yajra\CMS\Http\Requests\CategoriesFormRequest $request
55 55
      * @param  \Yajra\CMS\Entities\Category $category
56
-     * @return \Illuminate\Http\Response
56
+     * @return \Illuminate\Http\RedirectResponse
57 57
      */
58 58
     public function store(CategoriesFormRequest $request, Category $category)
59 59
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param  CategoriesFormRequest $request
88 88
      * @param  \Yajra\CMS\Entities\Category $category
89
-     * @return \Illuminate\Http\Response
89
+     * @return \Illuminate\Http\RedirectResponse
90 90
      */
91 91
     public function update(CategoriesFormRequest $request, Category $category)
92 92
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * Remove the specified resource from storage.
104 104
      *
105 105
      * @param  \Yajra\CMS\Entities\Category $category
106
-     * @return \Illuminate\Http\Response
106
+     * @return \Laracasts\Flash\FlashNotifier
107 107
      * @throws \Exception
108 108
      */
109 109
     public function destroy(Category $category)
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Button Response from DataTable request to publish status.
122 122
      *
123 123
      * @param  \Yajra\CMS\Entities\Category $category
124
-     * @return \Illuminate\Http\Response
124
+     * @return \Illuminate\Http\JsonResponse
125 125
      * @throws \Exception
126 126
      */
127 127
     public function publish(Category $category)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
+use App\Http\Requests;
5 6
 use Yajra\CMS\DataTables\CategoriesDataTable;
6 7
 use Yajra\CMS\Entities\Category;
7 8
 use Yajra\CMS\Http\Requests\CategoriesFormRequest;
8
-use App\Http\Requests;
9 9
 
10 10
 class CategoriesController extends Controller
11 11
 {
Please login to merge, or discard this patch.
src/Http/Controllers/CategoryController.php 1 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 Yajra\CMS\Entities\Category;
6 5
 use App\Http\Controllers\Controller;
7
-use App\Http\Requests;
8 6
 use Illuminate\Http\Request;
7
+use Yajra\CMS\Entities\Category;
9 8
 
10 9
 class CategoryController extends Controller
11 10
 {
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 Collective\Html\HtmlBuilder;
7 6
 use Illuminate\Contracts\Console\Kernel;
8 7
 use Illuminate\Contracts\Logging\Log;
Please login to merge, or discard this patch.
src/Http/Controllers/MenuItemsController.php 2 patches
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Yajra\CMS\Http\Controllers;
4 4
 
5
+use App\Http\Requests;
6
+use Exception;
7
+use Illuminate\Http\Request;
8
+use Yajra\Acl\Models\Permission;
5 9
 use Yajra\CMS\DataTables\ArticlesDataTable;
6 10
 use Yajra\CMS\DataTables\MenuItemsDataTable;
7 11
 use Yajra\CMS\Entities\Lookup;
8 12
 use Yajra\CMS\Entities\Menu;
9 13
 use Yajra\CMS\Entities\Navigation;
10 14
 use Yajra\CMS\Http\Requests\MenuItemsFormRequest;
11
-use App\Http\Requests;
12
-use Exception;
13
-use Illuminate\Http\Request;
14
-use Yajra\Acl\Models\Permission;
15 15
 
16 16
 class MenuItemsController extends Controller
17 17
 {
Please login to merge, or discard this patch.
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.
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.