Ignore:
Timestamp:
2012/02/17 02:42:21 (14 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/sessionfactory/SC_SessionFactory_UseRequest.php

    r21526 r21527  
    112112        $objQuery->delete('dtb_mobile_ext_session_id', 'create_date < ?', array($time)); 
    113113 
    114         $arrValues = array('session_id'  => session_id(), 
    115                            'param_key'   => $param_key, 
    116                            'param_value' => $param_value, 
    117                            'url'         => $url); 
     114        $arrValues = array( 
     115            'session_id'  => session_id(), 
     116            'param_key'   => $param_key, 
     117            'param_value' => $param_value, 
     118            'url'         => $url, 
     119        ); 
    118120 
    119121        $objQuery->insert('dtb_mobile_ext_session_id', $arrValues); 
     
    353355    function validateIp() { 
    354356        $ip = $this->getIp(); 
    355         if (!empty($_SERVER['REMOTE_ADDR']) 
    356          && $ip === $_SERVER['REMOTE_ADDR']) { 
     357        if (!empty($_SERVER['REMOTE_ADDR']) && $ip === $_SERVER['REMOTE_ADDR']) { 
    357358 
    358359            return true; 
    359360        } 
    360361 
    361         $msg = sprintf('Ip Addr mismatch : %s != %s(expected) : sid=%s', 
    362                        $_SERVER['REMOTE_ADDR'], $ip, session_id()); 
     362        $msg = sprintf('Ip Addr mismatch : %s != %s(expected) : sid=%s', $_SERVER['REMOTE_ADDR'], $ip, session_id()); 
    363363        GC_Utils_Ex::gfPrintLog($msg); 
    364364        return false; 
     
    434434    function validateModel() { 
    435435        $ua = $this->getModel(); 
    436         if (!empty($_SERVER['HTTP_USER_AGENT']) 
    437          && $_SERVER['HTTP_USER_AGENT'] === $ua) { 
    438  
     436        if (!empty($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT'] === $ua) { 
    439437            return true; 
    440438        } 
     
    497495        $modelInSession = $this->getModel(); 
    498496        $model = SC_MobileUserAgent_Ex::getModel(); 
    499         if (!empty($model) 
    500          && $model === $modelInSession) { 
    501  
     497        if (!empty($model) && $model === $modelInSession) { 
    502498            return true; 
    503499        } 
Note: See TracChangeset for help on using the changeset viewer.