@@ -31,7 +31,7 @@ |
||
31 | 31 | * @param string $requestedName |
32 | 32 | * @param null|array $options |
33 | 33 | * |
34 | - * @return object |
|
34 | + * @return Locale |
|
35 | 35 | * @throws ServiceNotFoundException if unable to resolve the service. |
36 | 36 | * @throws ServiceNotCreatedException if an exception is raised when |
37 | 37 | * creating a service. |
@@ -41,7 +41,6 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @param ContainerInterface $serviceLocator |
|
45 | 44 | * @return mixed|Paginator |
46 | 45 | */ |
47 | 46 | public function createService(ContainerInterface $container) |
@@ -28,19 +28,19 @@ |
||
28 | 28 | |
29 | 29 | public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
30 | 30 | { |
31 | - /* @var PaginatorService $paginatorService */ |
|
32 | - /* @var RepositoryService $repositories */ |
|
33 | - $repositories = $container->get('repositories'); |
|
34 | - $repository = $repositories->get($this->getRepository()); |
|
35 | - $queryBuilder = $repository->createQueryBuilder(); |
|
36 | - $filter = $container->get('FilterManager')->get($this->getFilter()); |
|
37 | - $adapter = new \Core\Paginator\Adapter\DoctrineMongoLateCursor($queryBuilder, $filter, $options); |
|
38 | - $service = new Paginator($adapter); |
|
31 | + /* @var PaginatorService $paginatorService */ |
|
32 | + /* @var RepositoryService $repositories */ |
|
33 | + $repositories = $container->get('repositories'); |
|
34 | + $repository = $repositories->get($this->getRepository()); |
|
35 | + $queryBuilder = $repository->createQueryBuilder(); |
|
36 | + $filter = $container->get('FilterManager')->get($this->getFilter()); |
|
37 | + $adapter = new \Core\Paginator\Adapter\DoctrineMongoLateCursor($queryBuilder, $filter, $options); |
|
38 | + $service = new Paginator($adapter); |
|
39 | 39 | |
40 | - return $service; |
|
40 | + return $service; |
|
41 | 41 | } |
42 | 42 | |
43 | - /** |
|
43 | + /** |
|
44 | 44 | * @param ContainerInterface $serviceLocator |
45 | 45 | * @return mixed|Paginator |
46 | 46 | */ |
@@ -26,7 +26,7 @@ |
||
26 | 26 | abstract class PaginatorFactoryAbstract implements FactoryInterface |
27 | 27 | { |
28 | 28 | |
29 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
29 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
30 | 30 | { |
31 | 31 | /* @var PaginatorService $paginatorService */ |
32 | 32 | /* @var RepositoryService $repositories */ |
@@ -86,7 +86,6 @@ |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @param HelperPluginManager $helperPluginManager |
|
90 | 89 | * @return Services |
91 | 90 | */ |
92 | 91 | public static function factory($sm) |
@@ -11,23 +11,23 @@ |
||
11 | 11 | */ |
12 | 12 | |
13 | 13 | return array( |
14 | - 'Zend\ServiceManager\Di', |
|
15 | - 'Zend\Session', |
|
16 | - 'Zend\Router', |
|
17 | - 'Zend\Navigation', |
|
18 | - 'Zend\I18n', |
|
19 | - 'Zend\Filter', |
|
20 | - 'Zend\InputFilter', |
|
21 | - 'Zend\Form', |
|
22 | - 'Zend\Validator', |
|
23 | - 'Zend\Log', |
|
24 | - 'Zend\Mvc\Plugin\Prg', |
|
25 | - 'Zend\Mvc\Plugin\Identity', |
|
26 | - 'Zend\Mvc\Plugin\FlashMessenger', |
|
27 | - 'Zend\Mvc\I18n', |
|
28 | - 'Zend\Mvc\Console', |
|
29 | - 'Zend\Hydrator', |
|
30 | - 'Zend\Serializer', |
|
31 | - 'DoctrineModule', |
|
32 | - 'DoctrineMongoODMModule', |
|
14 | + 'Zend\ServiceManager\Di', |
|
15 | + 'Zend\Session', |
|
16 | + 'Zend\Router', |
|
17 | + 'Zend\Navigation', |
|
18 | + 'Zend\I18n', |
|
19 | + 'Zend\Filter', |
|
20 | + 'Zend\InputFilter', |
|
21 | + 'Zend\Form', |
|
22 | + 'Zend\Validator', |
|
23 | + 'Zend\Log', |
|
24 | + 'Zend\Mvc\Plugin\Prg', |
|
25 | + 'Zend\Mvc\Plugin\Identity', |
|
26 | + 'Zend\Mvc\Plugin\FlashMessenger', |
|
27 | + 'Zend\Mvc\I18n', |
|
28 | + 'Zend\Mvc\Console', |
|
29 | + 'Zend\Hydrator', |
|
30 | + 'Zend\Serializer', |
|
31 | + 'DoctrineModule', |
|
32 | + 'DoctrineMongoODMModule', |
|
33 | 33 | ); |
34 | 34 | \ No newline at end of file |
@@ -26,18 +26,18 @@ |
||
26 | 26 | */ |
27 | 27 | public function register(array $config) |
28 | 28 | { |
29 | - try{ |
|
30 | - // enable logging of all error types globally |
|
31 | - Debugger::enable($config['mode'], $config['log'], $config['email']); |
|
32 | - Debugger::$strictMode = $config['strict']; |
|
33 | - Debugger::$showBar = $config['bar']; |
|
29 | + try{ |
|
30 | + // enable logging of all error types globally |
|
31 | + Debugger::enable($config['mode'], $config['log'], $config['email']); |
|
32 | + Debugger::$strictMode = $config['strict']; |
|
33 | + Debugger::$showBar = $config['bar']; |
|
34 | 34 | |
35 | - /** @var \Tracy\Logger $logger */ |
|
36 | - $logger = Debugger::getLogger(); |
|
37 | - $logger->emailSnooze = $config['email_snooze']; |
|
38 | - }catch (\Exception $e){ |
|
39 | - throw $e; |
|
40 | - } |
|
35 | + /** @var \Tracy\Logger $logger */ |
|
36 | + $logger = Debugger::getLogger(); |
|
37 | + $logger->emailSnooze = $config['email_snooze']; |
|
38 | + }catch (\Exception $e){ |
|
39 | + throw $e; |
|
40 | + } |
|
41 | 41 | |
42 | 42 | } |
43 | 43 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function register(array $config) |
28 | 28 | { |
29 | - try{ |
|
29 | + try { |
|
30 | 30 | // enable logging of all error types globally |
31 | 31 | Debugger::enable($config['mode'], $config['log'], $config['email']); |
32 | 32 | Debugger::$strictMode = $config['strict']; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** @var \Tracy\Logger $logger */ |
36 | 36 | $logger = Debugger::getLogger(); |
37 | 37 | $logger->emailSnooze = $config['email_snooze']; |
38 | - }catch (\Exception $e){ |
|
38 | + } catch (\Exception $e) { |
|
39 | 39 | throw $e; |
40 | 40 | } |
41 | 41 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** @var \Tracy\Logger $logger */ |
36 | 36 | $logger = Debugger::getLogger(); |
37 | 37 | $logger->emailSnooze = $config['email_snooze']; |
38 | - }catch (\Exception $e){ |
|
38 | + } catch (\Exception $e){ |
|
39 | 39 | throw $e; |
40 | 40 | } |
41 | 41 |
@@ -23,31 +23,31 @@ |
||
23 | 23 | */ |
24 | 24 | class TracyListener implements ListenerAggregateInterface |
25 | 25 | { |
26 | - use ListenerAggregateTrait; |
|
26 | + use ListenerAggregateTrait; |
|
27 | 27 | |
28 | - /** |
|
29 | - * {@inheritDoc} |
|
30 | - * @see \Zend\EventManager\ListenerAggregateInterface::attach() |
|
31 | - */ |
|
32 | - public function attach(EventManagerInterface $events, $priority = 1) |
|
33 | - { |
|
34 | - $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'handleError'], $priority); |
|
35 | - $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER_ERROR, [$this, 'handleError'], $priority); |
|
36 | - } |
|
28 | + /** |
|
29 | + * {@inheritDoc} |
|
30 | + * @see \Zend\EventManager\ListenerAggregateInterface::attach() |
|
31 | + */ |
|
32 | + public function attach(EventManagerInterface $events, $priority = 1) |
|
33 | + { |
|
34 | + $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'handleError'], $priority); |
|
35 | + $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER_ERROR, [$this, 'handleError'], $priority); |
|
36 | + } |
|
37 | 37 | |
38 | - /** |
|
39 | - * @param MvcEvent $e |
|
40 | - */ |
|
41 | - public function handleError(MvcEvent $e) |
|
42 | - { |
|
43 | - if ($e->getError() == \Zend\Mvc\Application::ERROR_EXCEPTION) { |
|
44 | - if (Debugger::$productionMode) { |
|
45 | - // log an exception in production environment (this will send email as well if email address is set) |
|
46 | - Debugger::log($e->getParam('exception'), Debugger::ERROR); |
|
47 | - } else { |
|
48 | - // just re-throw an exception in non-production environment to let tracy display so called blue screen |
|
49 | - throw $e->getParam('exception'); |
|
50 | - } |
|
51 | - } |
|
52 | - } |
|
38 | + /** |
|
39 | + * @param MvcEvent $e |
|
40 | + */ |
|
41 | + public function handleError(MvcEvent $e) |
|
42 | + { |
|
43 | + if ($e->getError() == \Zend\Mvc\Application::ERROR_EXCEPTION) { |
|
44 | + if (Debugger::$productionMode) { |
|
45 | + // log an exception in production environment (this will send email as well if email address is set) |
|
46 | + Debugger::log($e->getParam('exception'), Debugger::ERROR); |
|
47 | + } else { |
|
48 | + // just re-throw an exception in non-production environment to let tracy display so called blue screen |
|
49 | + throw $e->getParam('exception'); |
|
50 | + } |
|
51 | + } |
|
52 | + } |
|
53 | 53 | } |
@@ -22,55 +22,55 @@ |
||
22 | 22 | */ |
23 | 23 | class LazyControllerFactory implements AbstractFactoryInterface |
24 | 24 | { |
25 | - protected $aliases = [ |
|
26 | - FormElementManager::class => 'FormElementManager', |
|
27 | - ValidatorPluginManager::class => 'ValidatorManager', |
|
28 | - Translator::class => 'translator', |
|
29 | - ]; |
|
25 | + protected $aliases = [ |
|
26 | + FormElementManager::class => 'FormElementManager', |
|
27 | + ValidatorPluginManager::class => 'ValidatorManager', |
|
28 | + Translator::class => 'translator', |
|
29 | + ]; |
|
30 | 30 | |
31 | - public function canCreate( ContainerInterface $container, $requestedName ) |
|
32 | - { |
|
33 | - list( $module, ) = explode( '\\', __NAMESPACE__, 2 ); |
|
34 | - return strstr( $requestedName, $module . '\Controller') !== false; |
|
35 | - } |
|
31 | + public function canCreate( ContainerInterface $container, $requestedName ) |
|
32 | + { |
|
33 | + list( $module, ) = explode( '\\', __NAMESPACE__, 2 ); |
|
34 | + return strstr( $requestedName, $module . '\Controller') !== false; |
|
35 | + } |
|
36 | 36 | |
37 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
38 | - { |
|
39 | - $class = new \ReflectionClass($requestedName); |
|
40 | - $parentLocator = $container; |
|
41 | - if( $constructor = $class->getConstructor() ) |
|
42 | - { |
|
43 | - if( $params = $constructor->getParameters() ) |
|
44 | - { |
|
45 | - $parameter_instances = []; |
|
46 | - foreach( $params as $p ) |
|
47 | - { |
|
37 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
38 | + { |
|
39 | + $class = new \ReflectionClass($requestedName); |
|
40 | + $parentLocator = $container; |
|
41 | + if( $constructor = $class->getConstructor() ) |
|
42 | + { |
|
43 | + if( $params = $constructor->getParameters() ) |
|
44 | + { |
|
45 | + $parameter_instances = []; |
|
46 | + foreach( $params as $p ) |
|
47 | + { |
|
48 | 48 | |
49 | - if( $p->getClass() ) { |
|
50 | - $cn = $p->getClass()->getName(); |
|
51 | - if (array_key_exists($cn, $this->aliases)) { |
|
52 | - $cn = $this->aliases[$cn]; |
|
53 | - } |
|
49 | + if( $p->getClass() ) { |
|
50 | + $cn = $p->getClass()->getName(); |
|
51 | + if (array_key_exists($cn, $this->aliases)) { |
|
52 | + $cn = $this->aliases[$cn]; |
|
53 | + } |
|
54 | 54 | |
55 | - try { |
|
56 | - $parameter_instances[] = $parentLocator->get($cn); |
|
57 | - } |
|
58 | - catch (\Exception $x) { |
|
59 | - echo __CLASS__ |
|
60 | - . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
|
61 | - exit; |
|
62 | - } |
|
63 | - } |
|
64 | - else{ |
|
65 | - if( $p->isArray() && $p->getName() == 'config' ) |
|
66 | - $parameter_instances[] = $parentLocator->get('config'); |
|
67 | - } |
|
55 | + try { |
|
56 | + $parameter_instances[] = $parentLocator->get($cn); |
|
57 | + } |
|
58 | + catch (\Exception $x) { |
|
59 | + echo __CLASS__ |
|
60 | + . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
|
61 | + exit; |
|
62 | + } |
|
63 | + } |
|
64 | + else{ |
|
65 | + if( $p->isArray() && $p->getName() == 'config' ) |
|
66 | + $parameter_instances[] = $parentLocator->get('config'); |
|
67 | + } |
|
68 | 68 | |
69 | - } |
|
70 | - return $class->newInstanceArgs($parameter_instances); |
|
71 | - } |
|
72 | - } |
|
69 | + } |
|
70 | + return $class->newInstanceArgs($parameter_instances); |
|
71 | + } |
|
72 | + } |
|
73 | 73 | |
74 | - return new $requestedName; |
|
75 | - } |
|
74 | + return new $requestedName; |
|
75 | + } |
|
76 | 76 | } |
77 | 77 | \ No newline at end of file |
@@ -28,25 +28,25 @@ discard block |
||
28 | 28 | Translator::class => 'translator', |
29 | 29 | ]; |
30 | 30 | |
31 | - public function canCreate( ContainerInterface $container, $requestedName ) |
|
31 | + public function canCreate(ContainerInterface $container, $requestedName) |
|
32 | 32 | { |
33 | - list( $module, ) = explode( '\\', __NAMESPACE__, 2 ); |
|
34 | - return strstr( $requestedName, $module . '\Controller') !== false; |
|
33 | + list($module,) = explode('\\', __NAMESPACE__, 2); |
|
34 | + return strstr($requestedName, $module.'\Controller') !== false; |
|
35 | 35 | } |
36 | 36 | |
37 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
37 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
38 | 38 | { |
39 | 39 | $class = new \ReflectionClass($requestedName); |
40 | 40 | $parentLocator = $container; |
41 | - if( $constructor = $class->getConstructor() ) |
|
41 | + if ($constructor = $class->getConstructor()) |
|
42 | 42 | { |
43 | - if( $params = $constructor->getParameters() ) |
|
43 | + if ($params = $constructor->getParameters()) |
|
44 | 44 | { |
45 | 45 | $parameter_instances = []; |
46 | - foreach( $params as $p ) |
|
46 | + foreach ($params as $p) |
|
47 | 47 | { |
48 | 48 | |
49 | - if( $p->getClass() ) { |
|
49 | + if ($p->getClass()) { |
|
50 | 50 | $cn = $p->getClass()->getName(); |
51 | 51 | if (array_key_exists($cn, $this->aliases)) { |
52 | 52 | $cn = $this->aliases[$cn]; |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | exit; |
62 | 62 | } |
63 | 63 | } |
64 | - else{ |
|
65 | - if( $p->isArray() && $p->getName() == 'config' ) |
|
64 | + else { |
|
65 | + if ($p->isArray() && $p->getName() == 'config') |
|
66 | 66 | $parameter_instances[] = $parentLocator->get('config'); |
67 | 67 | } |
68 | 68 |
@@ -54,16 +54,15 @@ |
||
54 | 54 | |
55 | 55 | try { |
56 | 56 | $parameter_instances[] = $parentLocator->get($cn); |
57 | - } |
|
58 | - catch (\Exception $x) { |
|
57 | + } catch (\Exception $x) { |
|
59 | 58 | echo __CLASS__ |
60 | 59 | . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
61 | 60 | exit; |
62 | 61 | } |
63 | - } |
|
64 | - else{ |
|
65 | - if( $p->isArray() && $p->getName() == 'config' ) |
|
66 | - $parameter_instances[] = $parentLocator->get('config'); |
|
62 | + } else{ |
|
63 | + if( $p->isArray() && $p->getName() == 'config' ) { |
|
64 | + $parameter_instances[] = $parentLocator->get('config'); |
|
65 | + } |
|
67 | 66 | } |
68 | 67 | |
69 | 68 | } |
@@ -26,14 +26,14 @@ discard block |
||
26 | 26 | */ |
27 | 27 | class Index extends AbstractActionController |
28 | 28 | { |
29 | - protected $installForm; |
|
29 | + protected $installForm; |
|
30 | 30 | |
31 | - public function __construct(FormElementManager $formElementManager) |
|
32 | - { |
|
33 | - $this->installForm = $formElementManager->get('Install/Installation'); |
|
34 | - } |
|
31 | + public function __construct(FormElementManager $formElementManager) |
|
32 | + { |
|
33 | + $this->installForm = $formElementManager->get('Install/Installation'); |
|
34 | + } |
|
35 | 35 | |
36 | - /** |
|
36 | + /** |
|
37 | 37 | * Hook for custom preDispatch event. |
38 | 38 | * |
39 | 39 | * @param MvcEvent $event |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | $routeMatch->setParam('action', $p); |
51 | 51 | $response = $this->getResponse(); |
52 | 52 | $response->getHeaders() |
53 | - ->addHeaderLine('Content-Type', 'application/json') |
|
54 | - ->addHeaderLine('Content-Encoding', 'utf8'); |
|
53 | + ->addHeaderLine('Content-Type', 'application/json') |
|
54 | + ->addHeaderLine('Content-Encoding', 'utf8'); |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
@@ -65,13 +65,13 @@ discard block |
||
65 | 65 | $form = $this->installForm; |
66 | 66 | $prereqs = $this->plugin('Install/Prerequisites')->check(); |
67 | 67 | |
68 | - return $this->createViewModel( |
|
69 | - array( |
|
70 | - 'prerequisites' => $prereqs, |
|
71 | - 'form' => $form, |
|
72 | - 'lang' => $this->params('lang'), |
|
73 | - ) |
|
74 | - ); |
|
68 | + return $this->createViewModel( |
|
69 | + array( |
|
70 | + 'prerequisites' => $prereqs, |
|
71 | + 'form' => $form, |
|
72 | + 'lang' => $this->params('lang'), |
|
73 | + ) |
|
74 | + ); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | $form->setData($_POST); |
101 | 101 | |
102 | 102 | if (!$form->isValid()) { |
103 | - return $this->createJsonResponse( |
|
104 | - array( |
|
105 | - 'ok' => false, |
|
106 | - 'errors' => $form->getMessages(), |
|
107 | - ) |
|
108 | - ); |
|
103 | + return $this->createJsonResponse( |
|
104 | + array( |
|
105 | + 'ok' => false, |
|
106 | + 'errors' => $form->getMessages(), |
|
107 | + ) |
|
108 | + ); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | $data = $form->getData(); |
@@ -133,10 +133,10 @@ discard block |
||
133 | 133 | */ |
134 | 134 | protected function attachDefaultListeners() |
135 | 135 | { |
136 | - parent::attachDefaultListeners(); |
|
136 | + parent::attachDefaultListeners(); |
|
137 | 137 | |
138 | - $events = $this->getEventManager(); |
|
139 | - $events->attach( MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100 ); |
|
138 | + $events = $this->getEventManager(); |
|
139 | + $events->attach( MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100 ); |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
@@ -136,7 +136,7 @@ |
||
136 | 136 | parent::attachDefaultListeners(); |
137 | 137 | |
138 | 138 | $events = $this->getEventManager(); |
139 | - $events->attach( MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100 ); |
|
139 | + $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 100); |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
@@ -26,57 +26,57 @@ discard block |
||
26 | 26 | |
27 | 27 | public function init() |
28 | 28 | { |
29 | - $this->setName('installation'); |
|
29 | + $this->setName('installation'); |
|
30 | 30 | |
31 | - $this->setAttributes( |
|
32 | - array( |
|
33 | - 'method' => 'post', |
|
34 | - ) |
|
35 | - ); |
|
31 | + $this->setAttributes( |
|
32 | + array( |
|
33 | + 'method' => 'post', |
|
34 | + ) |
|
35 | + ); |
|
36 | 36 | |
37 | - $this->add( |
|
38 | - array( |
|
39 | - 'type' => 'Text', |
|
40 | - 'name' => 'db_conn', |
|
41 | - 'options' => array( |
|
42 | - 'label' => /* @translate */ 'Database connection string', |
|
43 | - ), |
|
44 | - 'attributes' => array( |
|
45 | - 'placeholder' => 'mongodb://localhost:27017/YAWIK', |
|
46 | - ), |
|
37 | + $this->add( |
|
38 | + array( |
|
39 | + 'type' => 'Text', |
|
40 | + 'name' => 'db_conn', |
|
41 | + 'options' => array( |
|
42 | + 'label' => /* @translate */ 'Database connection string', |
|
43 | + ), |
|
44 | + 'attributes' => array( |
|
45 | + 'placeholder' => 'mongodb://localhost:27017/YAWIK', |
|
46 | + ), |
|
47 | 47 | |
48 | - ) |
|
49 | - ); |
|
48 | + ) |
|
49 | + ); |
|
50 | 50 | |
51 | - $this->add( |
|
52 | - array( |
|
53 | - 'type' => 'Text', |
|
54 | - 'name' => 'username', |
|
55 | - 'options' => array( |
|
56 | - 'label' => /* @translate */ 'Initial user name', |
|
57 | - ), |
|
58 | - ) |
|
59 | - ); |
|
51 | + $this->add( |
|
52 | + array( |
|
53 | + 'type' => 'Text', |
|
54 | + 'name' => 'username', |
|
55 | + 'options' => array( |
|
56 | + 'label' => /* @translate */ 'Initial user name', |
|
57 | + ), |
|
58 | + ) |
|
59 | + ); |
|
60 | 60 | |
61 | - $this->add( |
|
62 | - array( |
|
63 | - 'type' => 'Password', |
|
64 | - 'name' => 'password', |
|
65 | - 'options' => array( |
|
66 | - 'label' => /* @translate */ 'Password', |
|
67 | - ), |
|
68 | - ) |
|
69 | - ); |
|
61 | + $this->add( |
|
62 | + array( |
|
63 | + 'type' => 'Password', |
|
64 | + 'name' => 'password', |
|
65 | + 'options' => array( |
|
66 | + 'label' => /* @translate */ 'Password', |
|
67 | + ), |
|
68 | + ) |
|
69 | + ); |
|
70 | 70 | |
71 | - $this->add( |
|
72 | - array( |
|
73 | - 'type' => 'Text', |
|
74 | - 'name' => 'email', |
|
75 | - 'options' => array( |
|
76 | - 'label' => /* @translate */ 'Email address for system messages', |
|
77 | - ), |
|
78 | - ) |
|
79 | - ); |
|
71 | + $this->add( |
|
72 | + array( |
|
73 | + 'type' => 'Text', |
|
74 | + 'name' => 'email', |
|
75 | + 'options' => array( |
|
76 | + 'label' => /* @translate */ 'Email address for system messages', |
|
77 | + ), |
|
78 | + ) |
|
79 | + ); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | public function getInputFilterSpecification() |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | ), |
91 | 91 | 'validators' => array( |
92 | 92 | array('name' => MongoDbConnectionString::class, |
93 | - 'break_chain_on_failure' => true), |
|
93 | + 'break_chain_on_failure' => true), |
|
94 | 94 | array('name' => MongoDbConnection::class), |
95 | 95 | ), |
96 | 96 | ), |