Ignore:
Timestamp:
12/19/12 16:44:18 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Correcoes para Best Practice: Short Open Tag e Best Practice: Always Quote Array Keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/PEAR/PEAR/Installer.php

    r5146 r7681  
    236236 
    237237            if ((bool) $os->matchSignature($platform) === $negate) { 
    238                 $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")"); 
     238                $this->log(3, "skipped $file (meant for {$atts['platform']}, we are ".$os->getSignature().")"); 
    239239                return PEAR_INSTALLER_SKIPPED; 
    240240            } 
     
    264264                break; 
    265265            default: 
    266                 return $this->raiseError("Invalid role `$atts[role]' for file $file"); 
     266                return $this->raiseError("Invalid role '{$atts['role']}' for file $file"); 
    267267        } 
    268268 
     
    354354                    if ($a['type'] == 'php-const') { 
    355355                        if (preg_match('/^[a-z0-9_]+\\z/i', $a['to'])) { 
    356                             eval("\$to = $a[to];"); 
     356                            eval("\$to = {$a['to']};"); 
    357357                        } else { 
    358358                            if (!isset($options['soft'])) { 
    359                                 $this->log(0, "invalid php-const replacement: $a[to]"); 
     359                                $this->log(0, "invalid php-const replacement: {$a['to']}"); 
    360360                            } 
    361361                            continue; 
     
    374374                        if (is_null($to)) { 
    375375                            if (!isset($options['soft'])) { 
    376                                 $this->log(0, "invalid pear-config replacement: $a[to]"); 
     376                                $this->log(0, "invalid pear-config replacement: {$a['to']}"); 
    377377                            } 
    378378                            continue; 
     
    383383                        } else { 
    384384                            if (!isset($options['soft'])) { 
    385                                 $this->log(0, "invalid package-info replacement: $a[to]"); 
     385                                $this->log(0, "invalid package-info replacement: {$a['to']}"); 
    386386                            } 
    387387                            continue; 
     
    15861586                } 
    15871587 
    1588                 $this->log(3, "+ cp $ext[file] $copyto"); 
     1588                $this->log(3, "+ cp {$ext['file']} $copyto"); 
    15891589                $this->addFileOperation('rename', array($ext['file'], $copyto)); 
    15901590                if (!OS_WINDOWS) { 
Note: See TracChangeset for help on using the changeset viewer.