Fabien Potencier 14 년 전
부모
커밋
dd7b4a13b6

+ 3 - 3
src/Symfony/Bundle/DoctrineBundle/Command/DoctrineCommand.php

@@ -165,11 +165,11 @@ abstract class DoctrineCommand extends Command
     protected function findBasePathForBundle($bundle)
     {
         $path = str_replace('\\', '/', $bundle->getNamespace());
-        $search = str_replace('\\','/',$bundle->getPath());
-        $destination = str_replace('/'.$path, "", $search, $c);
+        $search = str_replace('\\', '/', $bundle->getPath());
+        $destination = str_replace('/'.$path, '', $search, $c);
 
         if ($c != 1) {
-            throw new \RuntimeException("Can't find base path for bundle. Path: $path , Destination: $destination");
+            throw new \RuntimeException('Can\'t find base path for bundle (path: "$path", destination: "$destination").');
         }
 
         return $destination;

+ 3 - 3
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/DoctrineODMCommand.php

@@ -109,11 +109,11 @@ abstract class DoctrineODMCommand extends Command
     protected function findBasePathForBundle($bundle)
     {
         $path = str_replace('\\', '/', $bundle->getNamespace());
-        $search = str_replace('\\','/',$bundle->getPath());
-        $destination = str_replace('/'.$path, "", $search, $c);
+        $search = str_replace('\\', '/', $bundle->getPath());
+        $destination = str_replace('/'.$path, '', $search, $c);
 
         if ($c != 1) {
-            throw new \RuntimeException("Can't find base path for bundle. Path: $path , Destination: $destination");
+            throw new \RuntimeException('Can\'t find base path for bundle (path: "$path", destination: "$destination").');
         }
 
         return $destination;