Completed
Push — master ( 5c4b87...207d41 )
by Yaro
06:22
created
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/EloquentModelRepository.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Yaro\Jarboe\Table\Repositories;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use Yaro\Jarboe\Table\CRUD;
7
-use Yaro\Jarboe\Table\Fields\AbstractField;
8 6
 
9 7
 class EloquentModelRepository implements ModelRepositoryInterface
10 8
 {
Please login to merge, or discard this patch.
src/Jarboe/Table/Repositories/ModelRepositoryInterface.php 2 patches
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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Yaro\Jarboe\Table\Repositories;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use Yaro\Jarboe\Table\CRUD;
7
-use Yaro\Jarboe\Table\Fields\AbstractField;
8 6
 
9 7
 interface ModelRepositoryInterface
10 8
 {
Please login to merge, or discard this patch.