Prechádzať zdrojové kódy

[ZF-10237 & ZF-9695] Zend_Tool

- Fixed  first letter to uppercase  when nameclass  belongs to the module.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23416 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 15 rokov pred
rodič
commit
b85a5e3e5e

+ 5 - 5
library/Zend/Tool/Project/Context/Zf/AbstractClassFile.php

@@ -33,10 +33,10 @@
  */
 abstract class Zend_Tool_Project_Context_Zf_AbstractClassFile extends Zend_Tool_Project_Context_Filesystem_File
 {
-    
+
     /**
      * getFullClassName()
-     * 
+     *
      * @param $localClassName
      * @param $classContextName
      */
@@ -53,7 +53,7 @@ abstract class Zend_Tool_Project_Context_Zf_AbstractClassFile extends Zend_Tool_
             }
         } while ($currentResource instanceof Zend_Tool_Project_Profile_Resource
             && $currentResource = $currentResource->getParentResource());
-        
+
         $fullClassName = '';
 
         // go find the proper prefix
@@ -62,8 +62,8 @@ abstract class Zend_Tool_Project_Context_Zf_AbstractClassFile extends Zend_Tool_
                 $prefix = $containingResource->getAttribute('classNamePrefix');
                 $fullClassName = $prefix;
             } elseif ($containingResource->getName() == 'ModuleDirectory') {
-                $prefix = $containingResource->getAttribute('moduleName') . '_';
-                $fullClassName = $prefix;    
+                $prefix = ucfirst($containingResource->getAttribute('moduleName')) . '_';
+                $fullClassName = $prefix;
             }
         }