@@ -14,6 +14,9 @@ |
||
14 | 14 | |
15 | 15 | class OrganizationName extends AbstractRepository |
16 | 16 | { |
17 | + /** |
|
18 | + * @param string $name |
|
19 | + */ |
|
17 | 20 | public function findbyName($name, $create = true) |
18 | 21 | { |
19 | 22 | $entity = $this->findOneBy(array('name' => $name)); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * give a summary of all inserted Files, |
166 | 166 | * this is for having access to those files in the post-process |
167 | - * @param \Core\View\Helper\InsertFile\FileEvent|\Zend\View\ViewEvent $e |
|
167 | + * @param FileEvent $e |
|
168 | 168 | * @return NULL |
169 | 169 | */ |
170 | 170 | public function collectFiles(FileEvent $e) |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * |
314 | 314 | * @param string $name |
315 | 315 | * @param \Zend\View\Renderer\RendererInterface $renderer |
316 | - * @return string|boolean |
|
316 | + * @return string|false |
|
317 | 317 | */ |
318 | 318 | public function resolve($name, Renderer $renderer = null) |
319 | 319 | { |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Auth Module Bootstrap |
|
5 | - * |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Auth Module Bootstrap |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Pdf; |
11 | 11 | |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | protected $appendImage = array(); |
43 | 43 | |
44 | 44 | |
45 | - /** |
|
46 | - * Loads module specific configuration. |
|
47 | - * |
|
48 | - * @return array |
|
49 | - */ |
|
45 | + /** |
|
46 | + * Loads module specific configuration. |
|
47 | + * |
|
48 | + * @return array |
|
49 | + */ |
|
50 | 50 | public function getConfig() |
51 | 51 | { |
52 | 52 | return ModuleConfigLoader::load(__DIR__ . '/config'); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $eventManager->getSharedManager()->attach( |
65 | 65 | 'Applications', |
66 | 66 | 'application.detail.actionbuttons', |
67 | - function ($event) { |
|
67 | + function($event) { |
|
68 | 68 | return 'pdf/application/details/button'; |
69 | 69 | } |
70 | 70 | ); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | |
247 | 247 | // the handles are for temporary files |
248 | 248 | error_reporting(0); |
249 | - foreach (array(self::RENDER_FULL, self::RENDER_WITHOUT_PDF, self::RENDER_WITHOUT_ATTACHMENTS ) as $render) { |
|
249 | + foreach (array(self::RENDER_FULL, self::RENDER_WITHOUT_PDF, self::RENDER_WITHOUT_ATTACHMENTS) as $render) { |
|
250 | 250 | $handles = array(); |
251 | 251 | try { |
252 | 252 | $pdf = new extern\mPDFderive(); |
@@ -138,7 +138,6 @@ |
||
138 | 138 | * If the property is an array, the check will return, if this |
139 | 139 | * array has items or not. |
140 | 140 | * |
141 | - * @param string $name |
|
142 | 141 | * @return boolean |
143 | 142 | */ |
144 | 143 | public function __isset($property) |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -50,6 +50,11 @@ discard block |
||
50 | 50 | return $this->hydrator; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param string $name |
|
55 | + * |
|
56 | + * @return callable |
|
57 | + */ |
|
53 | 58 | protected function getPlugin($name) |
54 | 59 | { |
55 | 60 | $plugin = null; |
@@ -88,5 +93,8 @@ discard block |
||
88 | 93 | $this->add($this->forms->get('DefaultButtonsFieldset')); |
89 | 94 | } |
90 | 95 | |
96 | + /** |
|
97 | + * @return string |
|
98 | + */ |
|
91 | 99 | abstract public function getCoreFieldset(); |
92 | 100 | } |
@@ -44,7 +44,6 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * the $id for an entity 'setting' is the same as for the entity 'user' |
47 | - * @param type $id |
|
48 | 47 | */ |
49 | 48 | public function getSettingsByUser($user) |
50 | 49 | { |
@@ -16,17 +16,17 @@ |
||
16 | 16 | $modules = array('Install'); |
17 | 17 | } else { |
18 | 18 | $modules = array( |
19 | - 'DoctrineModule', |
|
20 | - 'DoctrineMongoODMModule', |
|
21 | - 'Core', |
|
22 | - 'Auth', |
|
23 | - 'Cv', |
|
24 | - 'Applications', |
|
25 | - 'Jobs', |
|
26 | - 'Settings', |
|
27 | - 'Pdf', |
|
28 | - 'Geo', |
|
29 | - 'Organizations', |
|
19 | + 'DoctrineModule', |
|
20 | + 'DoctrineMongoODMModule', |
|
21 | + 'Core', |
|
22 | + 'Auth', |
|
23 | + 'Cv', |
|
24 | + 'Applications', |
|
25 | + 'Jobs', |
|
26 | + 'Settings', |
|
27 | + 'Pdf', |
|
28 | + 'Geo', |
|
29 | + 'Organizations', |
|
30 | 30 | ); |
31 | 31 | |
32 | 32 | if (!isset($allModules)) { |
@@ -38,8 +38,8 @@ |
||
38 | 38 | $addModules = require $moduleFile; |
39 | 39 | foreach ($addModules as $addModule) { |
40 | 40 | if (strpos($addModule, '-') === 0) { |
41 | - $remove = substr($addModule,1); |
|
42 | - $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
|
41 | + $remove = substr($addModule, 1); |
|
42 | + $modules = array_filter($modules, function($elem) use ($remove) { return strcasecmp($elem, $remove); }); |
|
43 | 43 | } |
44 | 44 | else { |
45 | 45 | if (!in_array($addModule, $modules)) { |
@@ -40,8 +40,7 @@ |
||
40 | 40 | if (strpos($addModule, '-') === 0) { |
41 | 41 | $remove = substr($addModule,1); |
42 | 42 | $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | if (!in_array($addModule, $modules)) { |
46 | 45 | $modules[] = $addModule; |
47 | 46 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | 'Zend\Loader\StandardAutoloader' => array( |
64 | 64 | 'namespaces' => array( |
65 | 65 | __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
66 | - __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ .'Test', |
|
66 | + __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test', |
|
67 | 67 | ), |
68 | 68 | ), |
69 | 69 | ); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Applications Module Bootstrap |
|
5 | - * |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Applications Module Bootstrap |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Applications; |
11 | 11 | |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | 'applications list' => 'list view scripts.', |
36 | 36 | 'applications reset-files-permissions [--filter=]' => 'Resets (means: Set again) the permissions of attachments and contact images', |
37 | 37 | array('--filter=JSON', "available keys:\n" |
38 | - . "- before ISODate only applications before the given date\n" |
|
39 | - . "- after ISODate only applications after the given date\n" |
|
40 | - . "- id String Mongo ID of the application\n" |
|
41 | - . "- isDraft Boolean "), |
|
38 | + . "- before ISODate only applications before the given date\n" |
|
39 | + . "- after ISODate only applications after the given date\n" |
|
40 | + . "- id String Mongo ID of the application\n" |
|
41 | + . "- isDraft Boolean "), |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |
@@ -10,21 +10,21 @@ discard block |
||
10 | 10 | |
11 | 11 | return array( |
12 | 12 | 'doctrine' => array( |
13 | - 'driver' => array( |
|
13 | + 'driver' => array( |
|
14 | 14 | 'odm_default' => array( |
15 | 15 | 'drivers' => array( |
16 | 16 | 'Applications\Entity' => 'annotation', |
17 | 17 | ), |
18 | 18 | ), |
19 | 19 | 'annotation' => array( |
20 | - /* |
|
20 | + /* |
|
21 | 21 | * All drivers (except DriverChain) require paths to work on. You |
22 | 22 | * may set this value as a string (for a single path) or an array |
23 | 23 | * for multiple paths. |
24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
25 | 25 | */ |
26 | - 'paths' => array( __DIR__ . '/../src/Applications/Entity', |
|
27 | - __DIR__ . '/../../../module/Cv/src/Cv/Entity'), |
|
26 | + 'paths' => array( __DIR__ . '/../src/Applications/Entity', |
|
27 | + __DIR__ . '/../../../module/Cv/src/Cv/Entity'), |
|
28 | 28 | ), |
29 | 29 | ), |
30 | 30 | 'eventmanager' => array( |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | 'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions' |
73 | 73 | ), |
74 | 74 | 'factories' => array( |
75 | - 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
76 | - 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
77 | - 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
78 | - 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
75 | + 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
76 | + 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
77 | + 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
78 | + 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
79 | 79 | ), |
80 | 80 | ), |
81 | 81 | 'controllers' => array( |
@@ -172,25 +172,25 @@ discard block |
||
172 | 172 | ), |
173 | 173 | 'form_elements' => array( |
174 | 174 | 'invokables' => array( |
175 | - 'Applications/Mail' => 'Applications\Form\Mail', |
|
176 | - 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
177 | - 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
178 | - 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
179 | - 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
180 | - 'Applications/Apply' => 'Applications\Form\Apply', |
|
181 | - 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
182 | - 'Applications/Base' => 'Applications\Form\Base', |
|
183 | - 'Applications/Facts' => 'Applications\Form\Facts', |
|
184 | - 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
185 | - 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
186 | - 'Applications/Filter' => 'Applications\Form\FilterApplication', |
|
187 | - 'href' => 'Applications\Form\Element\Ref', |
|
188 | - ), |
|
175 | + 'Applications/Mail' => 'Applications\Form\Mail', |
|
176 | + 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
177 | + 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
178 | + 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
179 | + 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
180 | + 'Applications/Apply' => 'Applications\Form\Apply', |
|
181 | + 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
182 | + 'Applications/Base' => 'Applications\Form\Base', |
|
183 | + 'Applications/Facts' => 'Applications\Form\Facts', |
|
184 | + 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
185 | + 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
186 | + 'Applications/Filter' => 'Applications\Form\FilterApplication', |
|
187 | + 'href' => 'Applications\Form\Element\Ref', |
|
188 | + ), |
|
189 | 189 | 'factories' => array( |
190 | 190 | 'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory', |
191 | 191 | 'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory', |
192 | 192 | ), |
193 | - ), |
|
193 | + ), |
|
194 | 194 | |
195 | 195 | 'form_elements_config' => array( |
196 | 196 | 'Applications/Apply' => array( |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * for multiple paths. |
24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
25 | 25 | */ |
26 | - 'paths' => array( __DIR__ . '/../src/Applications/Entity', |
|
26 | + 'paths' => array(__DIR__ . '/../src/Applications/Entity', |
|
27 | 27 | __DIR__ . '/../../../module/Cv/src/Cv/Entity'), |
28 | 28 | ), |
29 | 29 | ), |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | * Settings for the application form. |
45 | 45 | */ |
46 | 46 | 'form' =>array( |
47 | - 'showCv' => true, // show educations and work experiences in application form |
|
48 | - 'showCarbonCopy' => true, // show 'send me my data in CC' in application form |
|
49 | - 'showSocialProfiles' => true, // enables attaching social profiles to an application |
|
50 | - 'showAttachments' => true, // enables file uploads for an application |
|
47 | + 'showCv' => true, // show educations and work experiences in application form |
|
48 | + 'showCarbonCopy' => true, // show 'send me my data in CC' in application form |
|
49 | + 'showSocialProfiles' => true, // enables attaching social profiles to an application |
|
50 | + 'showAttachments' => true, // enables file uploads for an application |
|
51 | 51 | ), |
52 | 52 | 'dashboard' => array( |
53 | 53 | 'enabled' => true, |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Applications controllers */ |
11 | 11 | namespace Applications\Controller; |
@@ -320,8 +320,8 @@ discard block |
||
320 | 320 | { |
321 | 321 | $job = $application->getJob(); |
322 | 322 | $recruiter = $this->getServiceLocator() |
323 | - ->get('repositories') |
|
324 | - ->get('Auth/User')->findOneByEmail($job->contactEmail); |
|
323 | + ->get('repositories') |
|
324 | + ->get('Auth/User')->findOneByEmail($job->contactEmail); |
|
325 | 325 | |
326 | 326 | if (!$recruiter) { |
327 | 327 | $recruiter = $job->user; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | if (!$application) { |
89 | 89 | throw new \RuntimeException('Invalid application id.'); |
90 | 90 | } |
91 | - $action = 'process'; |
|
91 | + $action = 'process'; |
|
92 | 92 | |
93 | 93 | |
94 | 94 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | } |
267 | 267 | |
268 | 268 | if ('sendmail' == $this->params()->fromQuery('do')) { |
269 | - $jobEntity = $application->job; |
|
269 | + $jobEntity = $application->job; |
|
270 | 270 | ; |
271 | 271 | $mailData = array( |
272 | 272 | 'application' => $application, |