These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * Classe criada por Márcio Lucas R de Oliveira (lukee) |
||
4 | * Data: 16/03/17 |
||
5 | * Hora: 19:07 |
||
6 | */ |
||
7 | namespace phiber; |
||
8 | use phiber\bin\persistence\PhiberPersistence; |
||
9 | //include_once 'PhiberAutoload.php'; |
||
10 | |||
11 | /** |
||
12 | *Constante que define a base de onde está localizado o projeto |
||
13 | */ |
||
14 | define("BASE_DIR",str_replace('\\', '/', dirname(__FILE__))); |
||
15 | |||
16 | |||
17 | /** |
||
18 | * A classe Phiber é a responsável por ser a classe módulo entre as funcionalidades do |
||
19 | * Phiber, é por ela que você chamará desde a classe persistencia até a classe de encriptação. |
||
20 | * |
||
21 | * @package phiber |
||
22 | */ |
||
23 | class Phiber |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Método responsável por retornar uma instancia da classe PhiberPersistence, |
||
28 | * que é responsável pela persistencia dos dados. (CREATE, RETREAVE, UPDATE, DELETE) |
||
29 | * @return PhiberPersistence |
||
30 | */ |
||
31 | public function openPersist($object) |
||
32 | { |
||
33 | // new PhiberAutoload(); |
||
0 ignored issues
–
show
|
|||
34 | return new PhiberPersistence($object); |
||
35 | } |
||
36 | |||
37 | } |
||
38 |
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.