Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function authorize() |
||
21 | { |
||
22 | return Auth::user()->can('create enrollments'); |
||
23 | //return false; //Per defecte |
||
24 | |||
25 | //De moment true |
||
|
|||
26 | //if (auth:user()->can('update enrollments')) { |
||
27 | //} |
||
28 | //return false; |
||
29 | //TODO: crear requests de show, delete... crear permissos amb un seed. (create writter(BREAD(Browse,Read...)). Crear rol manage per donar-li tots els anteriors. |
||
30 | } |
||
31 | |||
50 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.