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
  • inc/core/class.dc.rs.extensions.php

    r3731 r3874  
    348348    { 
    349349        if ($encoded) { 
    350             return strtr($rs->user_email, array('@' => '%40', '.' => '%2e')); 
     350            return strtr($rs->user_email, ['@' => '%40', '.' => '%2e']); 
    351351        } 
    352352        return $rs->user_email; 
     
    577577 
    578578        if ($rs->core->blog->settings->system->comments_nofollow) { 
    579             $res = preg_replace_callback('#<a(.*?href=".*?".*?)>#ms', array('self', 'noFollowURL'), $res); 
     579            $res = preg_replace_callback('#<a(.*?href=".*?".*?)>#ms', ['self', 'noFollowURL'], $res); 
    580580        } 
    581581 
     
    655655    { 
    656656        if ($encoded) { 
    657             return strtr($rs->comment_email, array('@' => '%40', '.' => '%2e')); 
     657            return strtr($rs->comment_email, ['@' => '%40', '.' => '%2e']); 
    658658        } 
    659659        return $rs->comment_email; 
     
    864864            return $options; 
    865865        } 
    866         return array(); 
     866        return []; 
    867867    } 
    868868 
     
    920920        $this->sortsign  = strtolower($order) == 'asc' ? 1 : -1; 
    921921 
    922         usort($this->__data, array($this, 'lexicalSortCallback')); 
     922        usort($this->__data, [$this, 'lexicalSortCallback']); 
    923923 
    924924        $this->sortfield = null; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map