@@ -296,6 +296,10 @@ discard block |
||
296 | 296 | * @param boolean $is_image TRUE if this is an image |
297 | 297 | * @return string The string with the evil attributes removed |
298 | 298 | */ |
299 | + |
|
300 | + /** |
|
301 | + * @param boolean $evilAttribute |
|
302 | + */ |
|
299 | 303 | protected function _remove_evil_attributes($str, $is_image, $evilAttribute) |
300 | 304 | { |
301 | 305 | // All javascript event handlers (e.g. onload, onclick, onmouseover), style, and xmlns |
@@ -419,7 +423,7 @@ discard block |
||
419 | 423 | * things like j a v a s c r i p t |
420 | 424 | * |
421 | 425 | * @param type |
422 | - * @return type |
|
426 | + * @return string |
|
423 | 427 | */ |
424 | 428 | protected function _compact_exploded_words($matches) |
425 | 429 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @param \Illuminate\Http\Request $request |
22 | 22 | * @param \Closure $next |
23 | - * @return mixed |
|
23 | + * @return \Illuminate\Http\RedirectResponse |
|
24 | 24 | */ |
25 | 25 | public function handle($request, Closure $next) |
26 | 26 | { |
@@ -11,7 +11,9 @@ discard block |
||
11 | 11 | { |
12 | 12 | $user = Auth::user(); |
13 | 13 | |
14 | - if (empty($user)) return false; |
|
14 | + if (empty($user)) { |
|
15 | + return false; |
|
16 | + } |
|
15 | 17 | |
16 | 18 | return Auth::user()->role->initials == '@sa' || Auth::user()->role->initials == '@a'; |
17 | 19 | } |
@@ -27,7 +29,9 @@ discard block |
||
27 | 29 | { |
28 | 30 | $user = Auth::user(); |
29 | 31 | |
30 | - if (empty($user)) return false; |
|
32 | + if (empty($user)) { |
|
33 | + return false; |
|
34 | + } |
|
31 | 35 | |
32 | 36 | return in_array(Auth::user()->role->initials, self::frontendInitialRole()); |
33 | 37 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | if (UserUtils::isBackendRole()) |
34 | 34 | { |
35 | 35 | UserUtils::setDisplayAllStatus(); |
36 | - }else{ |
|
36 | + } else{ |
|
37 | 37 | UserUtils::forgotDisplayAllStatus(); |
38 | 38 | } |
39 | 39 |
@@ -96,6 +96,10 @@ |
||
96 | 96 | ]; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $key |
|
101 | + * @param null|integer $default_value |
|
102 | + */ |
|
99 | 103 | protected function getParams(Request $request, $key, $default_value) |
100 | 104 | { |
101 | 105 | $element = $request->get($key); |