浏览代码

fix indentation = 4 spaces

Charley Maillot 13 年之前
父节点
当前提交
e113bc4828
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php
  2. 1 1
      Model/ORM/ModelManager.php

+ 1 - 1
DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

@@ -184,6 +184,6 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
      */
     protected function camelize($property)
     {
-         return preg_replace(array('/(^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\2')", "'_'.strtoupper('\\1')"), $property);
+        return preg_replace(array('/(^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\2')", "'_'.strtoupper('\\1')"), $property);
     }
 }

+ 1 - 1
Model/ORM/ModelManager.php

@@ -370,7 +370,7 @@ class ModelManager implements ModelManagerInterface
      */
     protected function camelize($property)
     {
-       return preg_replace(array('/(^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\2')", "'_'.strtoupper('\\1')"), $property);
+        return preg_replace(array('/(^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\2')", "'_'.strtoupper('\\1')"), $property);
     }
 
     /**