@@ -137,8 +137,8 @@ |
||
137 | 137 | $application->changeStatus( |
138 | 138 | Status::REJECTED, |
139 | 139 | sprintf( |
140 | - /*@translate */ 'Mail was sent to %s', |
|
141 | - $application->contact->email |
|
140 | + /*@translate */ 'Mail was sent to %s', |
|
141 | + $application->contact->email |
|
142 | 142 | ) |
143 | 143 | ); |
144 | 144 | $repositoryService->store($application); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $hidden = ''; |
73 | 73 | $displayNames = array(); |
74 | 74 | foreach ($elements as $element) { |
75 | - $hidden .= '<input type="hidden" name="elements[]" value="' . $element . '">'; |
|
75 | + $hidden .= '<input type="hidden" name="elements[]" value="'.$element.'">'; |
|
76 | 76 | $application = $repository->find($element); |
77 | 77 | $isAllowed = $this->acl()->test($application, 'change'); |
78 | 78 | if ($isAllowed) { |
@@ -91,12 +91,12 @@ discard block |
||
91 | 91 | array( |
92 | 92 | 'ok' => true, |
93 | 93 | 'header' => $translator->translate('reject the applicants'), |
94 | - 'content' => '<form action="' . $actionUrl . '">' . |
|
95 | - $hidden . |
|
94 | + 'content' => '<form action="'.$actionUrl.'">'. |
|
95 | + $hidden. |
|
96 | 96 | '<input class=" form-control " name="mail-subject" value="' |
97 | - . $mailSubject . '"><br /><br />' . |
|
97 | + . $mailSubject.'"><br /><br />'. |
|
98 | 98 | '<textarea class=" form-control " id="mail-content" name="mail-content">' |
99 | - . $mailText . '</textarea></form>' |
|
99 | + . $mailText.'</textarea></form>' |
|
100 | 100 | ) |
101 | 101 | ); |
102 | 102 | } |
@@ -144,6 +144,6 @@ discard block |
||
144 | 144 | $repositoryService->store($application); |
145 | 145 | unset($mail); |
146 | 146 | } |
147 | - return new JsonModel(array('ok' => true, )); |
|
147 | + return new JsonModel(array('ok' => true,)); |
|
148 | 148 | } |
149 | 149 | } |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $application->comments->add($comment); |
108 | 108 | $application->changeStatus($application->getStatus(), sprintf( |
109 | 109 | /* @translate */ 'Application was rated by %s', |
110 | - $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
110 | + $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
111 | 111 | ); |
112 | 112 | } |
113 | 113 | $viewModel->setVariable('isSaved', true); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | ), |
9 | 9 | 'view_manager' => array( |
10 | 10 | 'template_map' => array( |
11 | - 'pdf/application/details/button' => __DIR__ . '/../view/applicationDetailsButton.phtml', |
|
11 | + 'pdf/application/details/button' => __DIR__.'/../view/applicationDetailsButton.phtml', |
|
12 | 12 | ) |
13 | 13 | ), |
14 | 14 | ); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | parent::__construct(); |
24 | 24 | $this->addFilter( |
25 | 25 | 'ignoreInternalProperties', |
26 | - function ($property) { |
|
26 | + function($property) { |
|
27 | 27 | return "_" != $property{0}; |
28 | 28 | } |
29 | 29 | ); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | if (!$this->filterComposite->filter($propertyName)) { |
44 | 44 | continue; |
45 | 45 | } |
46 | - $getter = 'get' . ucfirst($propertyName); |
|
46 | + $getter = 'get'.ucfirst($propertyName); |
|
47 | 47 | $value = method_exists($object, $getter) |
48 | 48 | ? $object->$getter() |
49 | 49 | : $property->getValue($object); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | foreach ($data as $key => $value) { |
66 | 66 | if (isset($reflProperties[$key])) { |
67 | 67 | $value = $this->hydrateValue($key, $value); |
68 | - $setter = 'set' . ucfirst($key); |
|
68 | + $setter = 'set'.ucfirst($key); |
|
69 | 69 | if (method_exists($object, $setter)) { |
70 | 70 | $object->$setter($value); |
71 | 71 | } else { |
@@ -37,8 +37,8 @@ |
||
37 | 37 | $headscript->appendFile($basepath('Settings/js/forms.decfs.js')); |
38 | 38 | |
39 | 39 | return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>' |
40 | - . $this->renderCheckboxes($element->getCheckboxes()) |
|
41 | - . '</ul>'; |
|
40 | + . $this->renderCheckboxes($element->getCheckboxes()) |
|
41 | + . '</ul>'; |
|
42 | 42 | |
43 | 43 | } |
44 | 44 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | $headscript->appendFile($basepath('Settings/js/forms.decfs.js')); |
38 | 38 | |
39 | - return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>' |
|
39 | + return '<ul class="disable-elements-list" id="'.$element->getAttribute('id').'-list"'.'>' |
|
40 | 40 | . $this->renderCheckboxes($element->getCheckboxes()) |
41 | 41 | . '</ul>'; |
42 | 42 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | unset($boxes['__all__']); |
61 | 61 | } |
62 | 62 | |
63 | - $markup .= '<ul class="disable-elements">' . $this->renderCheckboxes($boxes) . '</ul>'; |
|
63 | + $markup .= '<ul class="disable-elements">'.$this->renderCheckboxes($boxes).'</ul>'; |
|
64 | 64 | } else { |
65 | 65 | $markup .= $this->renderCheckbox($boxes); |
66 | 66 | } |
@@ -82,12 +82,12 @@ discard block |
||
82 | 82 | /* @var $renderer \Zend\View\Renderer\PhpRenderer */ |
83 | 83 | $renderer = $this->getView(); |
84 | 84 | if (null !== $class) { |
85 | - $box->setAttribute('class', $box->getAttribute('class') . ' ' . $class); |
|
85 | + $box->setAttribute('class', $box->getAttribute('class').' '.$class); |
|
86 | 86 | } |
87 | 87 | $markup = $renderer->formCheckbox($box); |
88 | 88 | if ($desc = $box->getOption('description')) { |
89 | 89 | $desc = $this->getTranslator()->translate($desc, $this->getTranslatorTextDomain()); |
90 | - $markup .= '<div class="alert alert-info"><p>' . $desc . '</p></div>'; |
|
90 | + $markup .= '<div class="alert alert-info"><p>'.$desc.'</p></div>'; |
|
91 | 91 | } |
92 | 92 | return $markup; |
93 | 93 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $this->prepareCheckboxes($box, $prefix); |
196 | 196 | } else { |
197 | 197 | /* @var $box Checkbox */ |
198 | - $box->setName($prefix . $box->getName()); |
|
198 | + $box->setName($prefix.$box->getName()); |
|
199 | 199 | } |
200 | 200 | } |
201 | 201 | } |
@@ -232,10 +232,10 @@ discard block |
||
232 | 232 | foreach ($form as $element) { |
233 | 233 | /* @var $element \Zend\Form\ElementInterface|DisableElementsCapableInterface|DisableCapableInterface */ |
234 | 234 | $name = $element->getName(); |
235 | - $elementName = $prefix . '[' . $element->getName() . ']'; |
|
235 | + $elementName = $prefix.'['.$element->getName().']'; |
|
236 | 236 | $options = $element->getOption('disable_capable'); |
237 | 237 | $boxOptions = array( |
238 | - 'long_label' => isset($options['label']) ? $options['label'] : ($element->getLabel() ? : $name), |
|
238 | + 'long_label' => isset($options['label']) ? $options['label'] : ($element->getLabel() ?: $name), |
|
239 | 239 | 'description' => isset($options['description']) ? $options['description'] |
240 | 240 | : 'Toggle availability of this element in the form.', |
241 | 241 | ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $return[$name] = $this->buildCheckboxes($element, $elementName); |
246 | 246 | } |
247 | 247 | if ($element->isDisableCapable()) { |
248 | - $box = $this->createCheckbox($elementName . '[__all__]', $boxOptions); |
|
248 | + $box = $this->createCheckbox($elementName.'[__all__]', $boxOptions); |
|
249 | 249 | $box->setAttribute('checked', true); |
250 | 250 | $return[$name]['__all__'] = $box; |
251 | 251 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $mvcEvent->setParam('__settings_active_module', $moduleName); |
54 | 54 | |
55 | 55 | $formManager = $this->getServiceLocator()->get('FormElementManager'); |
56 | - $formName = $moduleName . '/SettingsForm'; |
|
56 | + $formName = $moduleName.'/SettingsForm'; |
|
57 | 57 | if (!$formManager->has($formName)) { |
58 | 58 | $formName = "Settings/Form"; |
59 | 59 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $valid = $form->isValid(); |
76 | 76 | $partial = $services->get('viewhelpermanager')->get('partial'); |
77 | 77 | $text = $valid |
78 | - ? /*@translate*/'Changes successfully saved' |
|
78 | + ? /*@translate*/'Changes successfully saved' |
|
79 | 79 | : /*@translate*/'Changes could not be saved'; |
80 | 80 | |
81 | 81 | $vars = array(); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | return new JsonModel($vars); |
96 | 96 | } |
97 | 97 | |
98 | - $vars['form']=$form; |
|
98 | + $vars['form'] = $form; |
|
99 | 99 | return $vars; |
100 | 100 | } |
101 | 101 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getConfig() |
46 | 46 | { |
47 | - return include __DIR__ . '/config/module.config.php'; |
|
47 | + return include __DIR__.'/config/module.config.php'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return array( |
58 | 58 | 'Zend\Loader\StandardAutoloader' => array( |
59 | 59 | 'namespaces' => array( |
60 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
60 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
61 | 61 | ), |
62 | 62 | ), |
63 | 63 | ); |
@@ -13,14 +13,14 @@ discard block |
||
13 | 13 | |
14 | 14 | if (php_sapi_name() == 'cli-server') { |
15 | 15 | $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"]; |
16 | - if (is_file(__DIR__ . '/' . $route)) { |
|
17 | - if(substr($route, -4) == ".php"){ |
|
18 | - require __DIR__ . '/' . $route; // Include requested script files |
|
16 | + if (is_file(__DIR__.'/'.$route)) { |
|
17 | + if (substr($route, -4) == ".php") { |
|
18 | + require __DIR__.'/'.$route; // Include requested script files |
|
19 | 19 | exit; |
20 | 20 | } |
21 | - return false; // Serve file as is |
|
21 | + return false; // Serve file as is |
|
22 | 22 | } else { // Fallback to index.php |
23 | - $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
23 | + $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | } else { |
41 | 41 | echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>'; |
42 | 42 | echo '<p>Please try to install the dependencies via: </p>'; |
43 | - echo '<code>cd '. realpath('.') .'<br>./install.sh</code>'; |
|
44 | - echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>'; |
|
43 | + echo '<code>cd '.realpath('.').'<br>./install.sh</code>'; |
|
44 | + echo '<p>exit at '.__FILE__.' in line '.__LINE__.'</p>'; |
|
45 | 45 | exit; |
46 | 46 | } |
47 | 47 |