Region   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
dl 0
loc 9
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 3 1
1
<?php
2
3
/**
4
 * Clase para manejar las regiones, tabla 'region'
5
 * 
6
 * PHP version 7.1
7
 * 
8
 * @category    App
9
 * @package     Models
10
 * @author      Henry Stivens Adarme Muñoz <[email protected]>
11
 * @copyright   2017
12
 */
13
class Region extends ActiveRecord
14
{
15
    /**
16
     * Lista todas las regiones
17
     * @return array
18
     */
19
    public function all()
20
    {
21
        return $this->find('order: nombre');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->find('order: nombre') returns the type ActiveRecord which is incompatible with the documented return type array.
Loading history...
22
    }
23
}
24