|
@@ -896,7 +896,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
public function getBaseRouteName()
|
|
|
{
|
|
|
if (!$this->baseRouteName) {
|
|
|
- preg_match(self::CLASS_REGEX, $this->class , $matches);
|
|
|
+ preg_match(self::CLASS_REGEX, $this->class, $matches);
|
|
|
|
|
|
if (!$matches) {
|
|
|
throw new \RuntimeException(sprintf('Cannot automatically determine base route name, please define a default `baseRouteName` value for the admin class `%s`', get_class($this)));
|
|
@@ -1219,7 +1219,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
public function getNewInstance()
|
|
|
{
|
|
|
$object = $this->getModelManager()->getModelInstance($this->getClass());
|
|
|
- foreach($this->getExtensions() as $extension) {
|
|
|
+ foreach ($this->getExtensions() as $extension) {
|
|
|
$extension->alterNewInstance($this, $object);
|
|
|
}
|
|
|
|