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.export.php

    r3731 r3874  
    1717    private $prefix; 
    1818 
    19     private $line_reg = array('/\\\\/u', '/\n/u', '/\r/u', '/"/u'); 
    20     private $line_rep = array('\\\\\\\\', '\n', '\r', '\"'); 
     19    private $line_reg = ['/\\\\/u', '/\n/u', '/\r/u', '/"/u']; 
     20    private $line_rep = ['\\\\\\\\', '\n', '\r', '\"']; 
    2121 
    2222    public $fp; 
     
    7474        $db_tables = $schema->getTables(); 
    7575 
    76         $tables = array(); 
     76        $tables = []; 
    7777        foreach ($db_tables as $t) { 
    7878            if ($this->prefix) { 
     
    9090    public function getLine($rs) 
    9191    { 
    92         $l    = array(); 
     92        $l    = []; 
    9393        $cols = $rs->columns(); 
    9494        foreach ($cols as $i => &$c) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map