1 | <?php |
||
18 | trait admin { |
||
19 | static function admin___get_settings () { |
||
29 | /** |
||
30 | * @param \cs\Request $Request |
||
31 | * |
||
32 | * @throws ExitException |
||
33 | */ |
||
34 | static function admin___save_settings ($Request) { |
||
43 | /** |
||
44 | * @param \cs\Request $Request |
||
45 | * |
||
46 | * @return array |
||
1 ignored issue
–
show
|
|||
47 | * |
||
48 | * @throws ExitException |
||
49 | */ |
||
50 | static function admin_posts_get ($Request) { |
||
71 | /** |
||
72 | * @param \cs\Request $Request |
||
73 | * |
||
74 | * @throws ExitException |
||
75 | */ |
||
76 | static function admin_posts_delete ($Request) { |
||
89 | /** |
||
90 | * @param \cs\Request $Request |
||
91 | * |
||
92 | * @return array |
||
93 | * |
||
94 | * @throws ExitException |
||
95 | */ |
||
96 | static function admin_sections_get ($Request) { |
||
99 | /** |
||
100 | * @param \cs\Request $Request |
||
101 | * @param \cs\Response $Response |
||
102 | * |
||
103 | * @return array |
||
104 | * |
||
105 | * @throws ExitException |
||
106 | */ |
||
107 | static function admin_sections_post ($Request, $Response) { |
||
123 | /** |
||
124 | * @param \cs\Request $Request |
||
125 | * |
||
126 | * @throws ExitException |
||
127 | */ |
||
128 | static function admin_sections_put ($Request) { |
||
142 | /** |
||
143 | * @param \cs\Request $Request |
||
144 | * |
||
145 | * @throws ExitException |
||
146 | */ |
||
147 | static function admin_sections_delete ($Request) { |
||
160 | } |
||
161 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.If the return type contains the type array, this check recommends the use of a more specific type like
String[]
orarray<String>
.