@@ -23,35 +23,35 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * Job has been published |
25 | 25 | */ |
26 | - const RESPONSE_OK = 'ok'; |
|
26 | + const RESPONSE_OK = 'ok'; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Job has been published and has stopped all other publishing |
30 | 30 | */ |
31 | - const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
31 | + const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * publishing has been stopped |
35 | 35 | */ |
36 | - const RESPONSE_STOP = 'publishing terminated'; |
|
36 | + const RESPONSE_STOP = 'publishing terminated'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * publishing has been denied, |
40 | 40 | * this is very likely when a job was not intended to be sended to a portal |
41 | 41 | */ |
42 | - const RESPONSE_DENIED = 'denied'; |
|
42 | + const RESPONSE_DENIED = 'denied'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * a connection to the portal could not be established |
46 | 46 | * or the publishing of the Job has been rejected for other reasons |
47 | 47 | */ |
48 | - const RESPONSE_FAIL = 'fail'; |
|
48 | + const RESPONSE_FAIL = 'fail'; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * This error has nothing to do with wrong inputs, |
52 | 52 | * something just has happend in the programm |
53 | 53 | */ |
54 | - const RESPONSE_ERROR = 'internal Error'; |
|
54 | + const RESPONSE_ERROR = 'internal Error'; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * nothing happens, but that's not a failure |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * nothing happens, and get used to it |
64 | 64 | */ |
65 | - const RESPONSE_DEPRECATED = 'deprecated'; |
|
65 | + const RESPONSE_DEPRECATED = 'deprecated'; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @var string |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param string $portal |
84 | 84 | * @param string $status |
85 | 85 | */ |
86 | - public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') |
|
86 | + public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') |
|
87 | 87 | { |
88 | 88 | $this->portal = $portal; |
89 | 89 | $this->status = $status; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | $object = parent::hydrate($data, $object); |
44 | 44 | /* @var \Organizations\Entity\Template $template */ |
45 | - $template=$object->getOrganization()->getTemplate(); |
|
45 | + $template = $object->getOrganization()->getTemplate(); |
|
46 | 46 | if (isset($data['description-label-requirements'])) { |
47 | 47 | $template->setLabelRequirements($data['description-label-requirements']); |
48 | 48 | } |
@@ -30,9 +30,9 @@ |
||
30 | 30 | $serviceLocator = $serviceLocator->getServiceLocator(); |
31 | 31 | $auth = $serviceLocator->get('AuthenticationService'); |
32 | 32 | /* @var RepositoryService $repositoryService */ |
33 | - $repositoryService = $serviceLocator->get('repositories'); |
|
33 | + $repositoryService = $serviceLocator->get('repositories'); |
|
34 | 34 | |
35 | - $translator = $serviceLocator->get('translator'); |
|
35 | + $translator = $serviceLocator->get('translator'); |
|
36 | 36 | return new ManageController($auth, $repositoryService, $translator); |
37 | 37 | } |
38 | 38 | } |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | |
40 | 40 | public function __construct($options, $mailService, $coreOptions) |
41 | 41 | { |
42 | - $this->options=$options; |
|
43 | - $this->mailService=$mailService; |
|
42 | + $this->options = $options; |
|
43 | + $this->mailService = $mailService; |
|
44 | 44 | $this->coreOptions = $coreOptions; |
45 | 45 | } |
46 | 46 | |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function __invoke(AuthEvent $e) |
53 | 53 | { |
54 | - $siteName=$this->coreOptions->getSiteName(); |
|
54 | + $siteName = $this->coreOptions->getSiteName(); |
|
55 | 55 | |
56 | 56 | $user = $e->getUser(); |
57 | 57 | $userEmail = $user->info->email; |
58 | 58 | $userName = $user->info->displayName; |
59 | 59 | $resetLink = $e->getResetLink(); |
60 | 60 | |
61 | - $fromEmail = $this->options->getFromEmail(); |
|
62 | - $fromName = $this->options->getFromName(); |
|
61 | + $fromEmail = $this->options->getFromEmail(); |
|
62 | + $fromName = $this->options->getFromName(); |
|
63 | 63 | |
64 | 64 | $mail = $this->mailService->get('htmltemplate'); |
65 | 65 | $mail->user = $user; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | $this->add($fieldset); |
66 | 66 | |
67 | - $mode=$options->getMode(); |
|
67 | + $mode = $options->getMode(); |
|
68 | 68 | if (in_array($mode, [CaptchaOptions::RE_CAPTCHA, CaptchaOptions::IMAGE])) { |
69 | 69 | if ($mode == CaptchaOptions::IMAGE) { |
70 | 70 | $captcha = new Image($options->getImage()); |
@@ -118,11 +118,11 @@ |
||
118 | 118 | { |
119 | 119 | $services = $this->getServiceLocator()->getServiceLocator(); |
120 | 120 | |
121 | - /* |
|
121 | + /* |
|
122 | 122 | * "ViewHelperManager" defined by ZF2 |
123 | 123 | * see http://framework.zend.com/manual/2.0/en/modules/zend.mvc.services.html#viewmanager |
124 | 124 | */ |
125 | - $viewManager = $services->get('ViewHelperManager'); |
|
125 | + $viewManager = $services->get('ViewHelperManager'); |
|
126 | 126 | |
127 | 127 | return $viewManager->get("partial")->__invoke('applications/mail/forward', array("application"=>$this->application)); |
128 | 128 | } |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | public function init() |
29 | 29 | { |
30 | 30 | $this->setName('data') |
31 | - ->setLabel('Group data') |
|
32 | - ->setUseAsBaseFieldset(true) |
|
33 | - ->setHydrator(new EntityHydrator()); |
|
31 | + ->setLabel('Group data') |
|
32 | + ->setUseAsBaseFieldset(true) |
|
33 | + ->setHydrator(new EntityHydrator()); |
|
34 | 34 | |
35 | 35 | $this->add( |
36 | 36 | array( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'required' => true, |
70 | 70 | 'validators' => array( |
71 | 71 | array('name' => 'Auth/Form/UniqueGroupName', |
72 | - 'options' => array( |
|
72 | + 'options' => array( |
|
73 | 73 | 'allowName' => 'edit' == $this->getOption('mode') |
74 | 74 | ? $this->getObject()->getName() |
75 | 75 | : null |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $this->priceFilter = $priceFilter; |
63 | 63 | $this->options = $options; |
64 | 64 | $this->providerOptions = $providerOptions; |
65 | - $this->orderRepository = $orderRepository; |
|
65 | + $this->orderRepository = $orderRepository; |
|
66 | 66 | $this->draftRepository = $draftRepository; |
67 | 67 | } |
68 | 68 |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | { |
54 | 54 | parent::setParam($key, $value); |
55 | 55 | |
56 | - $events = $this->getEventManager(); |
|
57 | - $events->trigger(FormEvent::EVENT_SET_PARAM, $this, [ 'param_name' => $key, 'param_value' => $value ]); |
|
56 | + $events = $this->getEventManager(); |
|
57 | + $events->trigger(FormEvent::EVENT_SET_PARAM, $this, ['param_name' => $key, 'param_value' => $value]); |
|
58 | 58 | |
59 | 59 | return $this; |
60 | 60 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $valid = parent::isValid(); |
66 | 66 | |
67 | 67 | $events = $this->getEventManager(); |
68 | - $events->trigger(FormEvent::EVENT_VALIDATE, $this, [ 'isValid' => $valid ]); |
|
68 | + $events->trigger(FormEvent::EVENT_VALIDATE, $this, ['isValid' => $valid]); |
|
69 | 69 | |
70 | 70 | return $valid; |
71 | 71 | } |