Dotclear


Ignore:
Timestamp:
09/14/18 12:16:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

short notation for array (array() → [])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/inc/flat/class.flat.backup.php

    r3872 r3874  
    1515{ 
    1616    protected $fp; 
    17     private $line_cols = array(); 
     17    private $line_cols = []; 
    1818    private $line_name; 
    1919    private $line_num; 
    2020 
    21     private $replacement = array( 
     21    private $replacement = [ 
    2222        '/(?<!\\\\)(?>(\\\\\\\\)*+)(\\\\n)/u' => "\$1\n", 
    2323        '/(?<!\\\\)(?>(\\\\\\\\)*+)(\\\\r)/u' => "\$1\r", 
    2424        '/(?<!\\\\)(?>(\\\\\\\\)*+)(\\\\")/u' => '$1"', 
    2525        '/(\\\\\\\\)/'                        => '\\' 
    26     ); 
     26    ]; 
    2727 
    2828    public function __construct($file) 
     
    6464            } 
    6565 
    66             $res = array(); 
     66            $res = []; 
    6767 
    6868            for ($i = 0; $i < count($line); $i++) { 
     
    9595    public $__name; 
    9696    public $__line; 
    97     private $__data = array(); 
     97    private $__data = []; 
    9898 
    9999    public function __construct($name, $data, $line) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map