web/lib/Zend/Tool/Project/Provider/Application.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
--- a/web/lib/Zend/Tool/Project/Provider/Application.php	Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Application.php	Thu Mar 21 19:50:53 2013 +0100
@@ -15,39 +15,39 @@
  * @category   Zend
  * @package    Zend_Tool
  * @subpackage Framework
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
- * @version    $Id: Application.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version    $Id: Application.php 24593 2012-01-05 20:35:02Z matthew $
  */
 
 /**
  * @category   Zend
  * @package    Zend_Tool
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  */
-class Zend_Tool_Project_Provider_Application 
+class Zend_Tool_Project_Provider_Application
     extends Zend_Tool_Project_Provider_Abstract
     implements Zend_Tool_Framework_Provider_Pretendable
 {
-    
+
     protected $_specialties = array('ClassNamePrefix');
-    
+
     /**
-     * 
-     * @param $classNamePrefix Prefix of classes
-     * @param $force
+     *
+     * @param string $classNamePrefix Prefix of classes
+     * @param bool   $force
      */
     public function changeClassNamePrefix($classNamePrefix /* , $force = false */)
     {
         $profile = $this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
-        
+
         $originalClassNamePrefix = $classNamePrefix;
-        
+
         if (substr($classNamePrefix, -1) != '_') {
             $classNamePrefix .= '_';
         }
-        
+
         $configFileResource = $profile->search('ApplicationConfigFile');
         $zc = $configFileResource->getAsZendConfig('production');
         if ($zc->appnamespace == $classNamePrefix) {
@@ -57,31 +57,31 @@
         // remove the old
         $configFileResource->removeStringItem('appnamespace', 'production');
         $configFileResource->create();
-        
+
         // add the new
         $configFileResource->addStringItem('appnamespace', $classNamePrefix, 'production', true);
         $configFileResource->create();
-        
+
         // update the project profile
         $applicationDirectory = $profile->search('ApplicationDirectory');
         $applicationDirectory->setClassNamePrefix($classNamePrefix);
 
         $response = $this->_registry->getResponse();
-        
+
         if ($originalClassNamePrefix !== $classNamePrefix) {
             $response->appendContent(
                 'Note: the name provided "' . $originalClassNamePrefix . '" was'
                     . ' altered to "' . $classNamePrefix . '" for correctness.',
                 array('color' => 'yellow')
                 );
-        } 
-        
+        }
+
         // note to the user
         $response->appendContent('Note: All existing models will need to be altered to this new namespace by hand', array('color' => 'yellow'));
         $response->appendContent('application.ini updated with new appnamespace ' . $classNamePrefix);
-        
+
         // store profile
         $this->_storeProfile();
     }
-    
+
 }