Completed
Push — master ( 8b8176...86815f )
by wen
03:16
created
src/Providers/AdminServiceProvider.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 use Sco\Admin\Elements\ElementFactory;
23 23
 use Sco\Admin\Exceptions\Handler;
24 24
 use Sco\Admin\Facades\AdminColumnFacade;
25
-use Sco\Admin\Facades\AdminFacade;
26 25
 use Sco\Admin\Facades\AdminElementFacade;
26
+use Sco\Admin\Facades\AdminFacade;
27 27
 use Sco\Admin\Facades\AdminNavigationFacade;
28 28
 use Sco\Admin\Facades\AdminViewFacade;
29 29
 use Sco\Admin\Navigation\Badge;
Please login to merge, or discard this patch.
src/Component/Concerns/HasPermission.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -67,6 +67,9 @@
 block discarded – undo
67 67
         $this->permissions[$permission] = $callback;
68 68
     }
69 69
 
70
+    /**
71
+     * @param string $permission
72
+     */
70 73
     public function can($permission)
71 74
     {
72 75
         if (is_callable($this->permissions[$permission])) {
Please login to merge, or discard this patch.
src/Component/Component.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         return $this->name;
63 63
     }
64 64
 
65
+    /**
66
+     * @return string|null
67
+     */
65 68
     public function getTitle()
66 69
     {
67 70
         return $this->title;
Please login to merge, or discard this patch.
src/Exceptions/Handler.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,6 +141,9 @@  discard block
 block discarded – undo
141 141
         }
142 142
     }
143 143
 
144
+    /**
145
+     * @param \Illuminate\Http\Request $request
146
+     */
144 147
     protected function isAdmin($request)
145 148
     {
146 149
         $route = $request->route();
@@ -151,7 +154,7 @@  discard block
 block discarded – undo
151 154
      * @param \Illuminate\Http\Request                $request
152 155
      * @param \Sco\Admin\Contracts\ExceptionInterface $exception
153 156
      *
154
-     * @return \Illuminate\Contracts\Routing\ResponseFactory|\Symfony\Component\HttpFoundation\Response
157
+     * @return \Symfony\Component\HttpFoundation\Response|null
155 158
      */
156 159
     protected function renderAdminException(
157 160
         $request, ExceptionInterface $exception
Please login to merge, or discard this patch.