Passed
Push — master ( 03622e...b6337b )
by Yaro
28:57
created
src/Jarboe/Http/Controllers/Traits/Handlers/StoreHandlerTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,5 +60,9 @@
 block discarded – undo
60 60
     abstract protected function init();
61 61
     abstract protected function bound();
62 62
     abstract protected function crud(): CRUD;
63
+
64
+    /**
65
+     * @param string $action
66
+     */
63 67
     abstract protected function can($action): bool;
64 68
 }
Please login to merge, or discard this patch.
src/Jarboe/Http/Controllers/Traits/Handlers/UpdateHandlerTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,5 +60,9 @@
 block discarded – undo
60 60
     abstract protected function init();
61 61
     abstract protected function bound();
62 62
     abstract protected function crud(): CRUD;
63
+
64
+    /**
65
+     * @param string $action
66
+     */
63 67
     abstract protected function can($action): bool;
64 68
 }
Please login to merge, or discard this patch.
src/Jarboe/Table/Fields/Traits/Model.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 {
7 7
     protected $model = '';
8 8
 
9
+    /**
10
+     * @param string $model
11
+     */
9 12
     public function setModel($model)
10 13
     {
11 14
         $this->model = $model;
Please login to merge, or discard this patch.
src/Jarboe/Table/CrudTraits/PreferencesHelperTrait.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     private $tableIdentifier;
8 8
 
9 9
     /**
10
-     * @param null $ident
10
+     * @param integer $ident
11 11
      * @return mixed|void
12 12
      */
13 13
     public function tableIdentifier($ident = null)
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
         return $this->preferences()->getPerPageParam($this->tableIdentifier());
35 35
     }
36 36
 
37
+    /**
38
+     * @param integer $perPage
39
+     */
37 40
     public function setPerPageParam($perPage)
38 41
     {
39 42
         $this->preferences()->setPerPageParam($this->tableIdentifier(), $perPage);
Please login to merge, or discard this patch.
src/Jarboe/Http/Controllers/Traits/Handlers/DeleteHandlerTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,5 +60,9 @@
 block discarded – undo
60 60
     abstract protected function init();
61 61
     abstract protected function bound();
62 62
     abstract protected function crud(): CRUD;
63
+
64
+    /**
65
+     * @param string $action
66
+     */
63 67
     abstract protected function can($action): bool;
64 68
 }
Please login to merge, or discard this patch.
src/Jarboe/Http/Controllers/Traits/Handlers/InlineHandlerTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,5 +60,9 @@
 block discarded – undo
60 60
     abstract protected function init();
61 61
     abstract protected function bound();
62 62
     abstract protected function crud(): CRUD;
63
+
64
+    /**
65
+     * @param string $action
66
+     */
63 67
     abstract protected function can($action): bool;
64 68
 }
Please login to merge, or discard this patch.
src/Jarboe/Table/Actions/ActionsContainer.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
         $this->add($actions);
65 65
     }
66 66
 
67
+    /**
68
+     * @param string $ident
69
+     */
67 70
     public function isAllowed($ident, $model = null): bool
68 71
     {
69 72
         $action = $this->find($ident);
@@ -84,6 +87,9 @@  discard block
 block discarded – undo
84 87
         return $action->shouldRender($model);
85 88
     }
86 89
 
90
+    /**
91
+     * @param string $baseActionIdent
92
+     */
87 93
     public function moveAfter($baseActionIdent, $movableActionIdent)
88 94
     {
89 95
         if (!$this->find($baseActionIdent) || !$this->find($movableActionIdent)) {
@@ -108,6 +114,9 @@  discard block
 block discarded – undo
108 114
         $this->actions = $actions;
109 115
     }
110 116
 
117
+    /**
118
+     * @param string $baseActionIdent
119
+     */
111 120
     public function moveBefore($baseActionIdent, $movableActionIdent)
112 121
     {
113 122
         if (!$this->find($baseActionIdent) || !$this->find($movableActionIdent)) {
Please login to merge, or discard this patch.
src/Jarboe/ViewComponents/Breadcrumbs/Breadcrumbs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /**
76 76
      * Return the key of the current element
77 77
      * @link https://php.net/manual/en/iterator.key.php
78
-     * @return mixed scalar on success, or null on failure.
78
+     * @return integer scalar on success, or null on failure.
79 79
      * @since 5.0.0
80 80
      */
81 81
     public function key()
Please login to merge, or discard this patch.
src/Jarboe/Table/Repositories/ModelRepositoryInterface.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -8,16 +8,35 @@
 block discarded – undo
8 8
 
9 9
 interface ModelRepositoryInterface
10 10
 {
11
+    /**
12
+     * @return EloquentModelRepository
13
+     */
11 14
     public function setCrud(CRUD $crud);
12 15
     public function get();
13 16
     public function find($id);
14 17
     public function delete($id): bool;
15 18
     public function store(array $data);
16 19
     public function update($id, array $data);
20
+
21
+    /**
22
+     * @return void
23
+     */
17 24
     public function reorder($id, $idPrev, $idNext);
18 25
     public function restore($id);
19 26
     public function forceDelete($id);
27
+
28
+    /**
29
+     * @return void
30
+     */
20 31
     public function filter(\Closure $callback);
32
+
33
+    /**
34
+     * @return void
35
+     */
21 36
     public function order(string $column, string $direction);
37
+
38
+    /**
39
+     * @return integer|null
40
+     */
22 41
     public function perPage(int $perPage = null);
23 42
 }
Please login to merge, or discard this patch.