@@ -12,7 +12,7 @@ |
||
| 12 | 12 | 'doctrine' => [ |
| 13 | 13 | 'driver' => [ |
| 14 | 14 | 'WorkflowDoctrineEntity' => [ |
| 15 | - 'paths' => call_user_func(function(){ |
|
| 15 | + 'paths' => call_user_func(function() { |
|
| 16 | 16 | $r = new ReflectionClass(Entry::class); |
| 17 | 17 | $path = $r->getFileName(); |
| 18 | 18 | |
@@ -51,14 +51,14 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function getAutoloaderConfig() |
| 53 | 53 | { |
| 54 | - $config = []; |
|
| 54 | + $config = [ ]; |
|
| 55 | 55 | $autoloadFile = __DIR__ . '/autoload_classmap.php'; |
| 56 | 56 | if (file_exists($autoloadFile)) { |
| 57 | - $config['Zend\Loader\ClassMapAutoloader'] = [ |
|
| 57 | + $config[ 'Zend\Loader\ClassMapAutoloader' ] = [ |
|
| 58 | 58 | $autoloadFile, |
| 59 | 59 | ]; |
| 60 | 60 | } |
| 61 | - $config['Zend\Loader\StandardAutoloader'] = [ |
|
| 61 | + $config[ 'Zend\Loader\StandardAutoloader' ] = [ |
|
| 62 | 62 | 'namespaces' => [ |
| 63 | 63 | __NAMESPACE__ => __DIR__ . '/src', |
| 64 | 64 | ], |
@@ -47,13 +47,13 @@ |
||
| 47 | 47 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
| 48 | 48 | * @throws Exception\RuntimeException |
| 49 | 49 | */ |
| 50 | - public function factory(array $options = []) |
|
| 50 | + public function factory(array $options = [ ]) |
|
| 51 | 51 | { |
| 52 | 52 | if (!array_key_exists(static::ENTITY_MANAGER_NAME, $options)) { |
| 53 | 53 | $errMsg = sprintf('Option %s not found', static::ENTITY_MANAGER_NAME); |
| 54 | 54 | throw new Exception\InvalidArgumentException($errMsg); |
| 55 | 55 | } |
| 56 | - $emName = $options[static::ENTITY_MANAGER_NAME]; |
|
| 56 | + $emName = $options[ static::ENTITY_MANAGER_NAME ]; |
|
| 57 | 57 | |
| 58 | 58 | return $this->getServiceLocator()->get($emName); |
| 59 | 59 | } |