Completed
Push — master ( 8e4a6a...f24edd )
by wen
04:26 queued 01:54
created
src/Http/Controllers/Auth/LoginController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      *
101 101
      * @param  Request $request
102 102
      *
103
-     * @return \Illuminate\Http\Response
103
+     * @return \Illuminate\Http\RedirectResponse
104 104
      */
105 105
     public function logout(Request $request)
106 106
     {
Please login to merge, or discard this patch.
src/Http/Controllers/System/MenuController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * 菜单列表
36 36
      *
37
-     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
37
+     * @return \Illuminate\Http\JsonResponse
38 38
      */
39 39
     public function getList()
40 40
     {
Please login to merge, or discard this patch.
database/seeds/PermissionsTableSeeder.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@  discard block
 block discarded – undo
82 82
             $role->id);
83 83
     }
84 84
 
85
+    /**
86
+     * @param string $name
87
+     * @param string $displayName
88
+     */
85 89
     private function insertPerm(
86 90
         $name,
87 91
         $displayName,
@@ -105,6 +109,10 @@  discard block
 block discarded – undo
105 109
         return $permission;
106 110
     }
107 111
 
112
+    /**
113
+     * @param string $name
114
+     * @param string $displayName
115
+     */
108 116
     private function storePermission($name, $displayName, $description = '')
109 117
     {
110 118
         $permissionModelName = config('admin.permission');
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
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
         }
137 137
     }
138 138
 
139
+    /**
140
+     * @param \Illuminate\Http\Request $request
141
+     */
139 142
     protected function isAdmin($request)
140 143
     {
141 144
         $route = $request->route();
@@ -146,7 +149,7 @@  discard block
 block discarded – undo
146 149
      * @param \Illuminate\Http\Request             $request
147 150
      * @param \Sco\Admin\Exceptions\AdminException $exception
148 151
      *
149
-     * @return \Illuminate\Contracts\Routing\ResponseFactory|\Symfony\Component\HttpFoundation\Response
152
+     * @return \Symfony\Component\HttpFoundation\Response|null
150 153
      */
151 154
     protected function renderAdminException($request, AdminException $exception)
152 155
     {
Please login to merge, or discard this patch.