fixed CS
This commit is contained in:
parent
7b87a6143a
commit
dd7b4a13b6
@ -166,10 +166,10 @@ abstract class DoctrineCommand extends Command
|
|||||||
{
|
{
|
||||||
$path = str_replace('\\', '/', $bundle->getNamespace());
|
$path = str_replace('\\', '/', $bundle->getNamespace());
|
||||||
$search = str_replace('\\', '/', $bundle->getPath());
|
$search = str_replace('\\', '/', $bundle->getPath());
|
||||||
$destination = str_replace('/'.$path, "", $search, $c);
|
$destination = str_replace('/'.$path, '', $search, $c);
|
||||||
|
|
||||||
if ($c != 1) {
|
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;
|
return $destination;
|
||||||
|
@ -110,10 +110,10 @@ abstract class DoctrineODMCommand extends Command
|
|||||||
{
|
{
|
||||||
$path = str_replace('\\', '/', $bundle->getNamespace());
|
$path = str_replace('\\', '/', $bundle->getNamespace());
|
||||||
$search = str_replace('\\', '/', $bundle->getPath());
|
$search = str_replace('\\', '/', $bundle->getPath());
|
||||||
$destination = str_replace('/'.$path, "", $search, $c);
|
$destination = str_replace('/'.$path, '', $search, $c);
|
||||||
|
|
||||||
if ($c != 1) {
|
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;
|
return $destination;
|
||||||
|
Reference in New Issue
Block a user