@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function iGoToEmailTemplatePage() |
33 | 33 | { |
34 | - $url = $this->generateUrl('lang/settings',[ |
|
34 | + $url = $this->generateUrl('lang/settings', [ |
|
35 | 35 | 'module' => 'Applications' |
36 | 36 | ]); |
37 | 37 | $this->visit($url); |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | { |
58 | 58 | $repo = static::$jobRepo; |
59 | 59 | $results = $repo->findBy(['user' => $user]); |
60 | - foreach($results as $result){ |
|
61 | - $repo->remove($result,true); |
|
60 | + foreach ($results as $result) { |
|
61 | + $repo->remove($result, true); |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public function beforeScenario(BeforeScenarioScope $scope) |
71 | 71 | { |
72 | 72 | $this->select2Context = $scope->getEnvironment()->getContext(Select2Context::class); |
73 | - if(is_null(static::$jobRepo)){ |
|
73 | + if (is_null(static::$jobRepo)) { |
|
74 | 74 | $this->gatherContexts($scope); |
75 | 75 | static::$jobRepo = $this->getJobRepository(); |
76 | 76 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function iGoToCreateJob() |
91 | 91 | { |
92 | - $url = $this->generateUrl('lang/jobs/manage',['action' => 'edit']); |
|
92 | + $url = $this->generateUrl('lang/jobs/manage', ['action' => 'edit']); |
|
93 | 93 | $this->visit($url); |
94 | 94 | } |
95 | 95 | |
@@ -109,11 +109,11 @@ discard block |
||
109 | 109 | public function iGoToEditJobWithTitle($jobTitle) |
110 | 110 | { |
111 | 111 | $job = $this->getJobRepository()->findOneBy(['title' => $jobTitle]); |
112 | - if(!$job instanceof Job){ |
|
113 | - throw new \Exception(sprintf('Job with title "%s" is not found',$jobTitle)); |
|
112 | + if (!$job instanceof Job) { |
|
113 | + throw new \Exception(sprintf('Job with title "%s" is not found', $jobTitle)); |
|
114 | 114 | } |
115 | 115 | $this->currentJob = $job; |
116 | - $url = $this->generateUrl('lang/jobs/manage',[ |
|
116 | + $url = $this->generateUrl('lang/jobs/manage', [ |
|
117 | 117 | 'id' => $job->getId() |
118 | 118 | ]); |
119 | 119 | $this->visit($url); |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | |
140 | 140 | $jobRepository = $this->getJobRepository(); |
141 | 141 | $results = $jobRepository->getUserJobs($user->getId()); |
142 | - foreach($results as $job){ |
|
143 | - $jobRepository->remove($job,true); |
|
142 | + foreach ($results as $job) { |
|
143 | + $jobRepository->remove($job, true); |
|
144 | 144 | } |
145 | 145 | $this->currentJob = null; |
146 | 146 | } |
@@ -149,16 +149,16 @@ discard block |
||
149 | 149 | * @When I fill job location search with :search and choose :choice |
150 | 150 | * |
151 | 151 | */ |
152 | - public function iFillJobLocationAndChoose($search,$choice) |
|
152 | + public function iFillJobLocationAndChoose($search, $choice) |
|
153 | 153 | { |
154 | 154 | $select2 = $this->select2Context; |
155 | - $select2->iFillInSelect2FieldWith('jobBase[geoLocation]',$search,$choice); |
|
155 | + $select2->iFillInSelect2FieldWith('jobBase[geoLocation]', $search, $choice); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
159 | 159 | * @When I choose :value from :field |
160 | 160 | */ |
161 | - public function iJobClassificationSelect($value,$field) |
|
161 | + public function iJobClassificationSelect($value, $field) |
|
162 | 162 | { |
163 | 163 | $field = Inflector::camelize($field); |
164 | 164 | |
@@ -174,18 +174,18 @@ discard block |
||
174 | 174 | 'employmentTypes' => "select#classifications-employmentTypes", |
175 | 175 | ]; |
176 | 176 | |
177 | - if(!isset($mapSelect2[$field])){ |
|
177 | + if (!isset($mapSelect2[$field])) { |
|
178 | 178 | throw new \Exception('Undefined field selection value "'.$field.'"'); |
179 | 179 | } |
180 | 180 | |
181 | 181 | $multipleField = $mapMultiple[$field]; |
182 | 182 | $page = $this->minkContext->getSession()->getPage(); |
183 | - $element = $page->find('css',$mapMultiple[$field]); |
|
184 | - if(!is_null($element) && $element->getAttribute('multiple')=='multiple'){ |
|
185 | - $this->minkContext->selectOption($value,$multipleField); |
|
186 | - }else{ |
|
183 | + $element = $page->find('css', $mapMultiple[$field]); |
|
184 | + if (!is_null($element) && $element->getAttribute('multiple') == 'multiple') { |
|
185 | + $this->minkContext->selectOption($value, $multipleField); |
|
186 | + } else { |
|
187 | 187 | $locator = $mapSelect2[$field]; |
188 | - $this->select2Context->iFillInSelect2Field($locator,$value); |
|
188 | + $this->select2Context->iFillInSelect2Field($locator, $value); |
|
189 | 189 | } |
190 | 190 | } |
191 | 191 | |
@@ -209,62 +209,62 @@ discard block |
||
209 | 209 | * @When I have a :status job with the following: |
210 | 210 | * @param TableNode $fields |
211 | 211 | */ |
212 | - public function iHaveAJobWithTheFollowing($status,TableNode $fields) |
|
212 | + public function iHaveAJobWithTheFollowing($status, TableNode $fields) |
|
213 | 213 | { |
214 | 214 | $normalizedField = [ |
215 | 215 | 'template' => 'modern', |
216 | 216 | ]; |
217 | - foreach($fields->getRowsHash() as $field => $value){ |
|
217 | + foreach ($fields->getRowsHash() as $field => $value) { |
|
218 | 218 | $field = Inflector::camelize($field); |
219 | - if($field == 'professions' || $field == 'industries'){ |
|
220 | - $value = explode(',',$value); |
|
219 | + if ($field == 'professions' || $field == 'industries') { |
|
220 | + $value = explode(',', $value); |
|
221 | 221 | } |
222 | 222 | $normalizedField[$field] = $value; |
223 | 223 | } |
224 | 224 | $jobRepo = $this->getJobRepository(); |
225 | 225 | $job = $jobRepo->findOneBy(['title' => $normalizedField['title']]); |
226 | - if(!$job instanceof Job){ |
|
226 | + if (!$job instanceof Job) { |
|
227 | 227 | $job = new Job(); |
228 | 228 | $job->setTitle($normalizedField['title']); |
229 | 229 | } |
230 | - if(isset($normalizedField['user'])){ |
|
230 | + if (isset($normalizedField['user'])) { |
|
231 | 231 | /* @var $userRepo UserRepository */ |
232 | 232 | $userRepo = $this->getRepository('Auth\Entity\User'); |
233 | 233 | $user = $userRepo->findOneBy(['login' => $normalizedField['user']]); |
234 | - if($user instanceof User){ |
|
234 | + if ($user instanceof User) { |
|
235 | 235 | $job->setUser($user); |
236 | 236 | $job->setOrganization($user->getOrganization()->getOrganization()); |
237 | - }else{ |
|
237 | + } else { |
|
238 | 238 | throw new \Exception('There is no user with this login:"'.$normalizedField['user'.'"']); |
239 | 239 | } |
240 | 240 | } |
241 | 241 | |
242 | - if($status == 'draft'){ |
|
242 | + if ($status == 'draft') { |
|
243 | 243 | $job->setIsDraft(true); |
244 | - }elseif($status == 'published'){ |
|
244 | + }elseif ($status == 'published') { |
|
245 | 245 | $job->setIsDraft(false); |
246 | 246 | $job->setDatePublishStart(new \DateTime()); |
247 | 247 | } |
248 | 248 | $job->setStatus(Status::ACTIVE); |
249 | 249 | |
250 | - if(isset($normalizedField['location'])){ |
|
251 | - $this->setLocation($job,$normalizedField['location']); |
|
250 | + if (isset($normalizedField['location'])) { |
|
251 | + $this->setLocation($job, $normalizedField['location']); |
|
252 | 252 | } |
253 | - if(isset($normalizedField['companyName'])){ |
|
253 | + if (isset($normalizedField['companyName'])) { |
|
254 | 254 | //$job->setCompany($normalizedField['companyName']); |
255 | 255 | } |
256 | - if(isset($normalizedField['professions'])){ |
|
257 | - $this->addProfessions($job,$normalizedField['professions']); |
|
256 | + if (isset($normalizedField['professions'])) { |
|
257 | + $this->addProfessions($job, $normalizedField['professions']); |
|
258 | 258 | } |
259 | 259 | |
260 | - if(isset($normalizedField['industries'])){ |
|
261 | - $this->addIndustries($job,$normalizedField['industries']); |
|
260 | + if (isset($normalizedField['industries'])) { |
|
261 | + $this->addIndustries($job, $normalizedField['industries']); |
|
262 | 262 | } |
263 | - if(isset($normalizedField['employmentTypes'])){ |
|
263 | + if (isset($normalizedField['employmentTypes'])) { |
|
264 | 264 | $types = $this->getCategories([$normalizedField['employmentTypes']]); |
265 | 265 | $type = array_shift($types); |
266 | 266 | $values = $job->getClassifications()->getEmploymentTypes()->getValues(); |
267 | - if(!is_array($values) || !in_array($type,$values)){ |
|
267 | + if (!is_array($values) || !in_array($type, $values)) { |
|
268 | 268 | $job->getClassifications()->getEmploymentTypes()->getItems()->add($type); |
269 | 269 | } |
270 | 270 | } |
@@ -283,18 +283,18 @@ discard block |
||
283 | 283 | $location->fromString($serialized); |
284 | 284 | |
285 | 285 | $locations = $job->getLocations(); |
286 | - if(count($locations)){ |
|
286 | + if (count($locations)) { |
|
287 | 287 | $locations->clear(); |
288 | 288 | } |
289 | 289 | $job->getLocations()->add($location); |
290 | 290 | } |
291 | 291 | |
292 | - private function addProfessions(Job &$job,$terms) |
|
292 | + private function addProfessions(Job &$job, $terms) |
|
293 | 293 | { |
294 | 294 | $professions = $this->getCategories($terms); |
295 | - foreach($professions as $profession){ |
|
295 | + foreach ($professions as $profession) { |
|
296 | 296 | $values = $job->getClassifications()->getProfessions()->getValues(); |
297 | - if(!is_array($values) || !in_array($profession,$values)){ |
|
297 | + if (!is_array($values) || !in_array($profession, $values)) { |
|
298 | 298 | $job->getClassifications()->getProfessions()->getItems()->add($profession); |
299 | 299 | } |
300 | 300 | } |
@@ -303,9 +303,9 @@ discard block |
||
303 | 303 | private function addIndustries(Job &$job, $terms) |
304 | 304 | { |
305 | 305 | $industries = $this->getCategories($terms); |
306 | - foreach($industries as $industry){ |
|
306 | + foreach ($industries as $industry) { |
|
307 | 307 | $values = $job->getClassifications()->getIndustries()->getValues(); |
308 | - if(!is_array($values) || !in_array($industry,$values)){ |
|
308 | + if (!is_array($values) || !in_array($industry, $values)) { |
|
309 | 309 | $job->getClassifications()->getIndustries()->getItems()->add($industry); |
310 | 310 | } |
311 | 311 | } |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | |
341 | 341 | $job = $repo->findDraft($user); |
342 | 342 | |
343 | - if(is_null($job)){ |
|
343 | + if (is_null($job)) { |
|
344 | 344 | $job = new Job(); |
345 | 345 | $job |
346 | 346 | ->setUser($user) |
@@ -31,14 +31,14 @@ |
||
31 | 31 | * @param array|null $options |
32 | 32 | * @return Notification |
33 | 33 | */ |
34 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
34 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
35 | 35 | { |
36 | 36 | $pluginManager = $container->get('ControllerPluginManager'); |
37 | 37 | $flashMessenger = $pluginManager->get('FlashMessenger'); |
38 | 38 | $translator = $container->get('translator'); |
39 | 39 | |
40 | 40 | $notificationListener = $container->get('Core/Listener/Notification'); |
41 | - $notification = new Notification($flashMessenger); |
|
41 | + $notification = new Notification($flashMessenger); |
|
42 | 42 | $notification->setListener($notificationListener); |
43 | 43 | $notification->setTranslator($translator); |
44 | 44 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | $response = new ViewModel(array('target' => $target)); |
87 | 87 | $response->setTemplate($template); |
88 | 88 | } |
89 | - $viewModel->addChild($response, $this->_captureTo . $i); |
|
89 | + $viewModel->addChild($response, $this->_captureTo.$i); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | return $viewModel; |
@@ -153,18 +153,18 @@ discard block |
||
153 | 153 | $replyTo = $this->stringFromMailHeader($this->getReplyTo()); |
154 | 154 | |
155 | 155 | return str_pad($template, 30) |
156 | - . 'to: ' . str_pad($to, 50) |
|
157 | - . 'cc: ' . str_pad($cc, 50) |
|
158 | - . 'bcc: ' . str_pad($bcc, 50) |
|
159 | - . 'from: ' . str_pad($from, 50) |
|
160 | - . 'replyTo: ' . str_pad($replyTo, 50) |
|
156 | + . 'to: '.str_pad($to, 50) |
|
157 | + . 'cc: '.str_pad($cc, 50) |
|
158 | + . 'bcc: '.str_pad($bcc, 50) |
|
159 | + . 'from: '.str_pad($from, 50) |
|
160 | + . 'replyTo: '.str_pad($replyTo, 50) |
|
161 | 161 | //. str_pad(implode(',', ArrayUtils::iteratorToArray($this->getSender())),50) |
162 | - . 'subject: ' . str_pad($this->getSubject(), 50); |
|
162 | + . 'subject: '.str_pad($this->getSubject(), 50); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | public function template($template) |
166 | 166 | { |
167 | - $controller = get_class($this->controller); |
|
167 | + $controller = get_class($this->controller); |
|
168 | 168 | |
169 | 169 | $event = new Event(); |
170 | 170 | $eventManager = $this->eventManager; |
@@ -181,11 +181,11 @@ discard block |
||
181 | 181 | $controllerIdentifier = strtolower(substr($controller, 0, strpos($controller, '\\'))); |
182 | 182 | $viewResolver = $this->viewResolver; |
183 | 183 | |
184 | - $templateHalf = 'mail/' . $template; |
|
184 | + $templateHalf = 'mail/'.$template; |
|
185 | 185 | $resource = $viewResolver->resolve($templateHalf); |
186 | 186 | |
187 | 187 | if (empty($resource)) { |
188 | - $templateFull = $controllerIdentifier . '/mail/' . $template; |
|
188 | + $templateFull = $controllerIdentifier.'/mail/'.$template; |
|
189 | 189 | $resource = $viewResolver->resolve($templateFull); |
190 | 190 | } |
191 | 191 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | unset($__vars[$key]); |
213 | 213 | } |
214 | 214 | } |
215 | - unset($__vars['content'],$__vars['controllerIdentifier'],$__vars['controller'],$__vars['resource'],$__vars['template'],$__vars['viewResolver']); |
|
215 | + unset($__vars['content'], $__vars['controllerIdentifier'], $__vars['controller'], $__vars['resource'], $__vars['template'], $__vars['viewResolver']); |
|
216 | 216 | $this->config = $__vars; |
217 | 217 | } |
218 | 218 | } |
@@ -237,20 +237,20 @@ discard block |
||
237 | 237 | if (isset($this->config['from'])) { |
238 | 238 | $from = $this->config['from']; |
239 | 239 | } else { |
240 | - $log->err('A from email address must be provided (Variable $from) in Template: ' . $template); |
|
241 | - throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: ' . $template); |
|
240 | + $log->err('A from email address must be provided (Variable $from) in Template: '.$template); |
|
241 | + throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: '.$template); |
|
242 | 242 | } |
243 | 243 | if (isset($this->config['fromName'])) { |
244 | 244 | $fromName = $this->config['fromName']; |
245 | 245 | } else { |
246 | - $log->err('A from name must be provided (Variable $fromName) in Template: ' . $template); |
|
247 | - throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: ' . $template); |
|
246 | + $log->err('A from name must be provided (Variable $fromName) in Template: '.$template); |
|
247 | + throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: '.$template); |
|
248 | 248 | } |
249 | 249 | if (isset($this->config['subject'])) { |
250 | 250 | $subject = $this->config['subject']; |
251 | 251 | } else { |
252 | - $log->err('A subject must be provided (Variable $subject) in Template: ' . $template); |
|
253 | - throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: ' . $template); |
|
252 | + $log->err('A subject must be provided (Variable $subject) in Template: '.$template); |
|
253 | + throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: '.$template); |
|
254 | 254 | } |
255 | 255 | $this->setFrom($from, $fromName); |
256 | 256 | $this->setSubject($subject); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $erg = true; |
272 | 272 | $log->info($this); |
273 | 273 | } catch (\Exception $e) { |
274 | - $log->err('Mail failure ' . $e->getMessage()); |
|
274 | + $log->err('Mail failure '.$e->getMessage()); |
|
275 | 275 | } |
276 | 276 | return $erg; |
277 | 277 | } |
@@ -288,6 +288,6 @@ discard block |
||
288 | 288 | $viewResolver = $container->get('ViewResolver'); |
289 | 289 | $eventManager = $container->get('EventManager'); |
290 | 290 | $moduleManager = $container->get('ModuleManager'); |
291 | - return new static($mailLog,$viewResolver,$eventManager,$moduleManager); |
|
291 | + return new static($mailLog, $viewResolver, $eventManager, $moduleManager); |
|
292 | 292 | } |
293 | 293 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | class ConfigFactory implements FactoryInterface |
15 | 15 | { |
16 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
16 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
17 | 17 | { |
18 | 18 | $config = $container->get('Config'); |
19 | 19 | $plugin = new Config($config); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | public function getConsoleBanner(Console $console) |
42 | 42 | { |
43 | 43 | $version = `git describe 2>/dev/null`; |
44 | - $name = 'YAWIK ' . trim($version); |
|
44 | + $name = 'YAWIK '.trim($version); |
|
45 | 45 | $width = $console->getWidth(); |
46 | 46 | return sprintf( |
47 | 47 | "==%1\$s==\n%2\$s%3\$s\n**%1\$s**\n", |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /* @var \Core\Options\ModuleOptions $options */ |
86 | 86 | $languageRouteListener = new LanguageRouteListener( |
87 | - $sm->get('Core/Locale'),$sm->get('Core/Options') |
|
87 | + $sm->get('Core/Locale'), $sm->get('Core/Options') |
|
88 | 88 | ); |
89 | 89 | $languageRouteListener->attach($eventManager); |
90 | 90 | |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | |
114 | 114 | $eventManager->attach( |
115 | 115 | MvcEvent::EVENT_DISPATCH_ERROR, |
116 | - function ($event) { |
|
117 | - if($event instanceof MvcEvent){ |
|
116 | + function($event) { |
|
117 | + if ($event instanceof MvcEvent) { |
|
118 | 118 | $application = $event->getApplication(); |
119 | 119 | |
120 | 120 | if ($application::ERROR_EXCEPTION == $event->getError()) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | ); |
130 | 130 | $eventManager->attach( |
131 | 131 | MvcEvent::EVENT_DISPATCH, |
132 | - function ($event) use ($eventManager) { |
|
132 | + function($event) use ($eventManager) { |
|
133 | 133 | $eventManager->trigger('postDispatch', $event); |
134 | 134 | }, |
135 | 135 | -150 |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | public function getConfig() |
146 | 146 | { |
147 | - $config = include __DIR__ . '/config/module.config.php'; |
|
147 | + $config = include __DIR__.'/config/module.config.php'; |
|
148 | 148 | return $config; |
149 | 149 | } |
150 | 150 | |
@@ -157,13 +157,13 @@ discard block |
||
157 | 157 | { |
158 | 158 | return array( |
159 | 159 | 'Zend\Loader\ClassMapAutoloader' => [ |
160 | - __DIR__ . '/src/autoload_classmap.php' |
|
160 | + __DIR__.'/src/autoload_classmap.php' |
|
161 | 161 | ], |
162 | 162 | 'Zend\Loader\StandardAutoloader' => array( |
163 | 163 | 'namespaces' => array( |
164 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
165 | - 'CoreTest' => __DIR__ . '/test/' . 'CoreTest', |
|
166 | - 'CoreTestUtils' => __DIR__ . '/test/CoreTestUtils', |
|
164 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
165 | + 'CoreTest' => __DIR__.'/test/'.'CoreTest', |
|
166 | + 'CoreTestUtils' => __DIR__.'/test/CoreTestUtils', |
|
167 | 167 | ), |
168 | 168 | ), |
169 | 169 | ); |
@@ -124,10 +124,10 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | $router = $e->getRouter(); |
127 | - $basePath=$router->getBaseUrl(); |
|
127 | + $basePath = $router->getBaseUrl(); |
|
128 | 128 | $match = []; |
129 | 129 | |
130 | - if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
130 | + if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
131 | 131 | /* It seems we have already a language in the URI |
132 | 132 | * Now there are two possibilities: |
133 | 133 | * |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | $options = $this->moduleOptions; |
163 | 163 | // using default language if detect language is disabled |
164 | - $lang = $options->isDetectLanguage() ? $this->detectLanguage($e):$options->getDefaultLanguage(); |
|
164 | + $lang = $options->isDetectLanguage() ? $this->detectLanguage($e) : $options->getDefaultLanguage(); |
|
165 | 165 | $langUri = rtrim("$basePath/$lang$origUri", '/'); |
166 | 166 | if ($router->match($request->setUri($langUri)) instanceof RouteMatch) { |
167 | 167 | $e->stopPropagation(true); |
@@ -212,8 +212,8 @@ discard block |
||
212 | 212 | setlocale( |
213 | 213 | LC_ALL, |
214 | 214 | array( |
215 | - $locale . ".utf8", |
|
216 | - $locale . ".iso88591", |
|
215 | + $locale.".utf8", |
|
216 | + $locale.".iso88591", |
|
217 | 217 | $locale, |
218 | 218 | substr($locale, 0, 2), |
219 | 219 | 'de_DE.utf8', |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | use Zend\I18n\Translator\Resources; |
17 | 17 | use Zend\ServiceManager\Factory\InvokableFactory; |
18 | 18 | |
19 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
19 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
20 | 20 | |
21 | 21 | |
22 | 22 | return array( |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | 'doctrine' => $doctrineConfig, |
25 | 25 | |
26 | 26 | 'options' => [ |
27 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
27 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
28 | 28 | ], |
29 | 29 | |
30 | 30 | 'Core' => array( |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'name' => 'stream', |
45 | 45 | 'priority' => 1000, |
46 | 46 | 'options' => array( |
47 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
47 | + 'stream' => __DIR__.'/../../../log/yawik.log', |
|
48 | 48 | ), |
49 | 49 | ), |
50 | 50 | ), |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | 'name' => 'stream', |
56 | 56 | 'priority' => 1000, |
57 | 57 | 'options' => array( |
58 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
58 | + 'stream' => __DIR__.'/../../../log/mails.log', |
|
59 | 59 | ), |
60 | 60 | ), |
61 | 61 | ), |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
73 | 73 | 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
74 | 74 | 'strict' => true, // bool = cause immediate death|int = matched against error severity |
75 | - 'log' => __DIR__ . '/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
75 | + 'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
76 | 76 | 'email' => null, // in production mode notifies the recipient |
77 | 77 | 'email_snooze' => 900 // interval for sending email in seconds |
78 | 78 | ], |
@@ -199,16 +199,16 @@ discard block |
||
199 | 199 | 'Core/JsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
200 | 200 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
201 | 201 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
202 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
203 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
204 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
205 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
202 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
203 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
204 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
205 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
206 | 206 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
207 | 207 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
208 | 208 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
209 | 209 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
210 | 210 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
211 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
211 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
212 | 212 | ), |
213 | 213 | 'abstract_factories' => array( |
214 | 214 | 'Core\Factory\OptionsAbstractFactory', |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | 'translation_file_patterns' => array( |
232 | 232 | [ |
233 | 233 | 'type' => 'gettext', |
234 | - 'base_dir' => __DIR__ . '/../language', |
|
234 | + 'base_dir' => __DIR__.'/../language', |
|
235 | 235 | 'pattern' => '%s.mo', |
236 | 236 | ], |
237 | 237 | [ |
@@ -269,9 +269,9 @@ discard block |
||
269 | 269 | ), |
270 | 270 | 'factories' => [ |
271 | 271 | // @TODO: improve this factory |
272 | - 'Core\Controller\Index' => [\Core\Controller\IndexController::class,'factory'], |
|
273 | - 'Core/Admin' => [\Core\Controller\AdminController::class,'factory'], |
|
274 | - 'Core\Controller\File' => [\Core\Controller\FileController::class,'factory'], |
|
272 | + 'Core\Controller\Index' => [\Core\Controller\IndexController::class, 'factory'], |
|
273 | + 'Core/Admin' => [\Core\Controller\AdminController::class, 'factory'], |
|
274 | + 'Core\Controller\File' => [\Core\Controller\FileController::class, 'factory'], |
|
275 | 275 | ], |
276 | 276 | 'abstract_factories' => [ |
277 | 277 | \Core\Factory\Controller\LazyControllerFactory::class |
@@ -286,9 +286,9 @@ discard block |
||
286 | 286 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
287 | 287 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
288 | 288 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
289 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
290 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
291 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
289 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
290 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
291 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
292 | 292 | ), |
293 | 293 | 'invokables' => array( |
294 | 294 | 'Core/FileSender' => 'Core\Controller\Plugin\FileSender', |
@@ -318,32 +318,32 @@ discard block |
||
318 | 318 | 'exception_template' => 'error/index', |
319 | 319 | // Map template to files. Speeds up the lookup through the template stack. |
320 | 320 | 'template_map' => array( |
321 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
322 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
323 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
324 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
325 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
326 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
327 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
328 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
329 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
330 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
331 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
332 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
333 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
334 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
335 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
336 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
337 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
338 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
339 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
340 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
341 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
321 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
322 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
323 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
324 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
325 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
326 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
327 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
328 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
329 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
330 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
331 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
332 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
333 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
334 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
335 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
336 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
337 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
338 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
339 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
340 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
341 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
342 | 342 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
343 | 343 | ), |
344 | 344 | // Where to look for view templates not mapped above |
345 | 345 | 'template_path_stack' => array( |
346 | - __DIR__ . '/../view', |
|
346 | + __DIR__.'/../view', |
|
347 | 347 | ), |
348 | 348 | ), |
349 | 349 | 'view_helpers' => array( |