Overview
Comment:Try to be coherent with PHP typehinting: use int and bool, not integer and boolean
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 81f1561f1275567d4ebc20e4c8ffc08d3077e1b7
User & Date: bohwaz on 2020-09-16 01:27:56
Other Links: branch diff | manifest | tags
Context
2020-09-16
01:34
Visualisation d'├ęcriture check-in: fed857312c user: bohwaz tags: dev
01:27
Try to be coherent with PHP typehinting: use int and bool, not integer and boolean check-in: 81f1561f12 user: bohwaz tags: dev
01:26
Make date_fr accept DateTime objects check-in: 369111c626 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Entities/Accounting/Chart.php from [50d0731c82] to [fadff02d39].

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    protected $id;
    protected $label;
    protected $country;
    protected $code;
    protected $archived;

    protected $_types = [
        'id'       => 'integer',
        'label'    => 'string',
        'country'  => 'string',
        'code'     => '?string',
        'archived' => 'integer',
    ];

    protected $_form_rules = [
        'label'    => 'required|string|max:200',
        'country'  => 'required|string|size:2',
        'code'     => 'string',
    ];







|



|







12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    protected $id;
    protected $label;
    protected $country;
    protected $code;
    protected $archived;

    protected $_types = [
        'id'       => 'int',
        'label'    => 'string',
        'country'  => 'string',
        'code'     => '?string',
        'archived' => 'int',
    ];

    protected $_form_rules = [
        'label'    => 'required|string|max:200',
        'country'  => 'required|string|size:2',
        'code'     => 'string',
    ];

Modified src/include/lib/Garradin/Entities/Accounting/Year.php from [2087129994] to [7550479a8a].

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    protected $label;
    protected $start_date;
    protected $end_date;
    protected $closed = 0;
    protected $id_chart;

    protected $_types = [
        'id'         => 'integer',
        'label'      => 'string',
        'start_date' => 'date',
        'end_date'   => 'date',
        'closed'     => 'integer',
        'id_chart'   => 'integer',
    ];

    protected $_form_rules = [
        'label'      => 'required|string|max:200',
        'start_date' => 'required|date|before:end_date',
        'end_date'   => 'required|date|after:start_date',
    ];







|



|
|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    protected $label;
    protected $start_date;
    protected $end_date;
    protected $closed = 0;
    protected $id_chart;

    protected $_types = [
        'id'         => 'int',
        'label'      => 'string',
        'start_date' => 'date',
        'end_date'   => 'date',
        'closed'     => 'int',
        'id_chart'   => 'int',
    ];

    protected $_form_rules = [
        'label'      => 'required|string|max:200',
        'start_date' => 'required|date|before:end_date',
        'end_date'   => 'required|date|after:start_date',
    ];