Completed
Push — 2.0 ( 9d8f09...19e4b9 )
by Nicolas
03:10
created
Http/Middleware/PermissionMiddleware.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param Request  $request
32
-     * @param callable $next
32
+     * @param \Closure $next
33 33
      * @return mixed
34 34
      */
35 35
     public function handle(Request $request, \Closure $next)
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * Get the correct segment position based on the locale or not
54 54
      *
55 55
      * @param $request
56
-     * @return mixed
56
+     * @return integer
57 57
      */
58 58
     private function getSegmentPosition(Request $request)
59 59
     {
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-     * @param $moduleName
71
-     * @param $entityName
72
-     * @param $actionMethod
70
+     * @param string|null $moduleName
71
+     * @param string $entityName
72
+     * @param string $actionMethod
73 73
      * @return string
74 74
      */
75 75
     private function getPermission($moduleName, $entityName, $actionMethod)
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     /**
81 81
      * @param Request $request
82
-     * @param         $segmentPosition
82
+     * @param         integer $segmentPosition
83 83
      * @return string
84 84
      */
85 85
     protected function getModuleName(Request $request, $segmentPosition)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     /**
91 91
      * @param Request $request
92
-     * @param         $segmentPosition
92
+     * @param         integer $segmentPosition
93 93
      * @return string
94 94
      */
95 95
     protected function getEntityName(Request $request, $segmentPosition)
Please login to merge, or discard this patch.