Ignore:
Timestamp:
2012/02/17 00:50:05 (14 years ago)
Author:
Seasoft
Message:

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

  • Zend Framework PHP 標準コーディング規約への準拠を高めた。(主に「Switch」の項)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php

    r21514 r21526  
    8080 
    8181        switch ($_POST['mode']) { 
    82         case 'register': 
    83             if ($this->register($_POST['ga_ua'])) { 
    84                 SC_Response_Ex::reload(array('mode' => 'success'), true); 
    85                 exit; 
    86             } else { 
    87                 SC_Response_Ex::reload(array('mode' => 'failure'), true); 
    88                 exit; 
    89             } 
    90             break; 
     82            case 'register': 
     83                if ($this->register($_POST['ga_ua'])) { 
     84                    SC_Response_Ex::reload(array('mode' => 'success'), true); 
     85                    exit; 
     86                } else { 
     87                    SC_Response_Ex::reload(array('mode' => 'failure'), true); 
     88                    exit; 
     89                } 
     90                break; 
    9191 
    92           default: 
     92              default: 
     93                break; 
    9394        } 
    9495 
    9596        switch ($_GET['mode']) { 
    96         case 'success': 
    97             $this->tpl_onload .= "window.alert('登録に成功しました。');"; 
    98             break; 
     97            case 'success': 
     98                $this->tpl_onload .= "window.alert('登録に成功しました。');"; 
     99                break; 
    99100 
    100         case 'failure': 
    101             $this->tpl_onload .= "window.alert('登録に失敗しました。');"; 
    102             break; 
     101            case 'failure': 
     102                $this->tpl_onload .= "window.alert('登録に失敗しました。');"; 
     103                break; 
    103104 
    104           default: 
     105            default: 
     106                break; 
    105107        } 
    106108 
Note: See TracChangeset for help on using the changeset viewer.