Region::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
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