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     12       protected $id;
    13     13       protected $label;
    14     14       protected $country;
    15     15       protected $code;
    16     16       protected $archived;
    17     17   
    18     18       protected $_types = [
    19         -        'id'       => 'integer',
           19  +        'id'       => 'int',
    20     20           'label'    => 'string',
    21     21           'country'  => 'string',
    22     22           'code'     => '?string',
    23         -        'archived' => 'integer',
           23  +        'archived' => 'int',
    24     24       ];
    25     25   
    26     26       protected $_form_rules = [
    27     27           'label'    => 'required|string|max:200',
    28     28           'country'  => 'required|string|size:2',
    29     29           'code'     => 'string',
    30     30       ];

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

    15     15       protected $label;
    16     16       protected $start_date;
    17     17       protected $end_date;
    18     18       protected $closed = 0;
    19     19       protected $id_chart;
    20     20   
    21     21       protected $_types = [
    22         -        'id'         => 'integer',
           22  +        'id'         => 'int',
    23     23           'label'      => 'string',
    24     24           'start_date' => 'date',
    25     25           'end_date'   => 'date',
    26         -        'closed'     => 'integer',
    27         -        'id_chart'   => 'integer',
           26  +        'closed'     => 'int',
           27  +        'id_chart'   => 'int',
    28     28       ];
    29     29   
    30     30       protected $_form_rules = [
    31     31           'label'      => 'required|string|max:200',
    32     32           'start_date' => 'required|date|before:end_date',
    33     33           'end_date'   => 'required|date|after:start_date',
    34     34       ];