original_string: public function addMagentoCss($observer)
      {
          if (!Mage::helper('australia/address')->isAddressValidationEnabled()) {
              return;
          }
  
          /** @var Mage_Core_Model_Layout $layout */
          $layout = Mage::getSingleton('core/layout');
  
          /** @var Mage_Page_Block_Html_Head $head */
          $head = $layout->getBlock('head');
  
          $skinBaseDir = Mage::getDesign()->getSkinBaseDir(array('_package' => 'base', '_theme' => 'default'));
          $cssPath = 'prototype/windows/themes/magento.css';
  
          if (file_exists($skinBaseDir . DS . 'lib' . DS . $cssPath)) {
              $head->addCss('lib' . DS . $cssPath);
          } else {
              $head->addItem('js_css', $cssPath);
          }
      }
code: public function addMagentoCss($observer)
      {
          if (!Mage::helper('australia/address')->isAddressValidationEnabled()) {
              return;
          }
  
          /** @var Mage_Core_Model_Layout $layout */
          $layout = Mage::getSingleton('core/layout');
  
          /** @var Mage_Page_Block_Html_Head $head */
          $head = $layout->getBlock('head');
  
          $skinBaseDir = Mage::getDesign()->getSkinBaseDir(array('_package' => 'base', '_theme' => 'default'));
          $cssPath = 'prototype/windows/themes/magento.css';
  
          if (file_exists($skinBaseDir . DS . 'lib' . DS . $cssPath)) {
              $head->addCss('lib' . DS . $cssPath);
          } else {
              $head->addItem('js_css', $cssPath);
          }
      }
code_tokens: public function addMagentoCss ( $ observer ) { if ( ! Mage :: helper ( 'australia/address' ) -> isAddressValidationEnabled ( ) ) { return ; } /** @var Mage_Core_Model_Layout $layout */ $ layout = Mage :: getSingleton ( 'core/layout' ) ; /** @var Mage_Page_Block_Html_Head $head */ $ head = $ layout -> getBlock ( 'head' ) ; $ skinBaseDir = Mage :: getDesign ( ) -> getSkinBaseDir ( array ( '_package' => 'base' , '_theme' => 'default' ) ) ; $ cssPath = 'prototype/windows/themes/magento.css' ; if ( file_exists ( $ skinBaseDir . DS . 'lib' . DS . $ cssPath ) ) { $ head -> addCss ( 'lib' . DS . $ cssPath ) ; } else { $ head -> addItem ( 'js_css' , $ cssPath ) ; } }
docstring: The magento.css file is moved into the skin directory in Magento 1.7 so
  we need to look for it in both the new and old locations for backwards
  compatibility.
  
  @listen controller_action_layout_render_before_checkout_onepage_index
  @param Varien_Event_Observer $observer
docstring_tokens: The magento . css file is moved into the skin directory in Magento 1 . 7 so we need to look for it in both the new and old locations for backwards compatibility .