Completed
Push — master ( f34e83...7a95d7 )
by Márcio Lucas R.
03:42
created

Phiber   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A openPersist() 0 5 1
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
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

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.

Loading history...
34
        return new PhiberPersistence($object);
35
    }
36
37
}
38