Completed
Push — master ( 1e692e...0e6a09 )
by wen
03:03
created
src/Providers/AdminServiceProvider.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 use Sco\Admin\Elements\ElementFactory;
18 18
 use Sco\Admin\Exceptions\Handler;
19 19
 use Sco\Admin\Facades\AdminColumnFacade;
20
-use Sco\Admin\Facades\AdminFacade;
21 20
 use Sco\Admin\Facades\AdminElementFacade;
21
+use Sco\Admin\Facades\AdminFacade;
22 22
 use Sco\Admin\Facades\AdminNavigationFacade;
23 23
 use Sco\Admin\Facades\AdminViewFacade;
24 24
 use Sco\Admin\Repositories\Repository;
Please login to merge, or discard this patch.
src/View/Columns/Column.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 
4 4
 namespace Sco\Admin\View\Columns;
5 5
 
6
+use Illuminate\Contracts\Support\Arrayable;
7
+use Illuminate\Contracts\Support\Jsonable;
6 8
 use Illuminate\Database\Eloquent\Model;
7 9
 use Illuminate\Support\Collection;
8 10
 use JsonSerializable;
9
-use Illuminate\Contracts\Support\Arrayable;
10
-use Illuminate\Contracts\Support\Jsonable;
11 11
 use Sco\Admin\Contracts\ColumnInterface;
12 12
 
13 13
 abstract class Column implements ColumnInterface, Arrayable, Jsonable, JsonSerializable
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -115,6 +115,9 @@
 block discarded – undo
115 115
         return $this->getValueFromObject($this->getModel(), $this->getName());
116 116
     }
117 117
 
118
+    /**
119
+     * @param Model $instance
120
+     */
118 121
     protected function getValueFromObject($instance, $name)
119 122
     {
120 123
         $parts = explode('.', $name);
Please login to merge, or discard this patch.
src/Component/Component.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         return $this->getRepository()->isRestorable();
53 53
     }
54 54
 
55
+    /**
56
+     * @param string $class
57
+     */
55 58
     public function registerObserver($class = null)
56 59
     {
57 60
         if (!$class) {
@@ -72,6 +75,9 @@  discard block
 block discarded – undo
72 75
         $this->permissions[$permission] = $callback;
73 76
     }
74 77
 
78
+    /**
79
+     * @param string $permission
80
+     */
75 81
     public function can($permission)
76 82
     {
77 83
         if (is_callable($this->permissions[$permission])) {
Please login to merge, or discard this patch.