@@ -26,7 +26,7 @@ |
||
26 | 26 | * - injects the MvcEvent instance |
27 | 27 | * |
28 | 28 | * @param ServiceLocatorInterface $serviceLocator |
29 | - * @return \Core\View\Helper\Params |
|
29 | + * @return DateFormat |
|
30 | 30 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
31 | 31 | */ |
32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
@@ -150,7 +150,7 @@ |
||
150 | 150 | * $this->proxy($method[, $arg1[, $arg2[, ...]]]); |
151 | 151 | * </pre> |
152 | 152 | * |
153 | - * @param $method |
|
153 | + * @param string $method |
|
154 | 154 | * |
155 | 155 | * @return self|mixed |
156 | 156 | */ |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | return $this->proxy('__isset', $property); |
196 | 196 | } |
197 | 197 | |
198 | - public function notEmpty($property, array $args=[]) |
|
198 | + public function notEmpty($property, array $args = []) |
|
199 | 199 | { |
200 | 200 | return $this->proxy('notEmpty', $args); |
201 | 201 | } |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | |
293 | 293 | public function setImages(\Core\Entity\ImageSet $images) |
294 | 294 | { |
295 | - return $this->proxy('setImages',$images); |
|
295 | + return $this->proxy('setImages', $images); |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | public function setOrganizationName(OrganizationName $organizationNames) |
@@ -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 | { |
@@ -39,11 +39,11 @@ |
||
39 | 39 | protected $appendImage = array(); |
40 | 40 | |
41 | 41 | |
42 | - /** |
|
43 | - * Loads module specific configuration. |
|
44 | - * |
|
45 | - * @return array |
|
46 | - */ |
|
42 | + /** |
|
43 | + * Loads module specific configuration. |
|
44 | + * |
|
45 | + * @return array |
|
46 | + */ |
|
47 | 47 | public function getConfig() |
48 | 48 | { |
49 | 49 | return ModuleConfigLoader::load(__DIR__ . '/config'); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function getConfig() |
48 | 48 | { |
49 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
49 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | public static function factory(ServiceManager $serviceManager) |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $eventManager->getSharedManager()->attach( |
63 | 63 | 'Applications', |
64 | 64 | 'application.detail.actionbuttons', |
65 | - function ($event) { |
|
65 | + function($event) { |
|
66 | 66 | return 'pdf/application/details/button'; |
67 | 67 | } |
68 | 68 | ); |
@@ -142,9 +142,9 @@ discard block |
||
142 | 142 | { |
143 | 143 | $file = $e->getLastFileObject(); |
144 | 144 | // assume it is of the class Core\Entity\FileEntity |
145 | - $return = '<div class="col-md-3"><a href="#attachment_' . $file->getId() . '">' . $file->getName() . '</a></div>' . PHP_EOL |
|
146 | - . '<div class="col-md-3">' . $file->getType() . '</div>' |
|
147 | - . '<div class="col-md-3">' . $file->prettySize . '</div>'; |
|
145 | + $return = '<div class="col-md-3"><a href="#attachment_'.$file->getId().'">'.$file->getName().'</a></div>'.PHP_EOL |
|
146 | + . '<div class="col-md-3">'.$file->getType().'</div>' |
|
147 | + . '<div class="col-md-3">'.$file->prettySize.'</div>'; |
|
148 | 148 | /* |
149 | 149 | * this snippet was for direct inserting an image into the PDF |
150 | 150 | if ($file && $file instanceOf FileEntity && 0 === strpos($file->getType(), 'image')) { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | |
245 | 245 | // the handles are for temporary files |
246 | 246 | error_reporting(0); |
247 | - foreach (array(self::RENDER_FULL, self::RENDER_WITHOUT_PDF, self::RENDER_WITHOUT_ATTACHMENTS ) as $render) { |
|
247 | + foreach (array(self::RENDER_FULL, self::RENDER_WITHOUT_PDF, self::RENDER_WITHOUT_ATTACHMENTS) as $render) { |
|
248 | 248 | $handles = array(); |
249 | 249 | try { |
250 | 250 | $pdf = new extern\mPDFderive(); |
@@ -258,8 +258,8 @@ discard block |
||
258 | 258 | if (is_array($this->appendImage) && !empty($this->appendImage)) { |
259 | 259 | foreach ($this->appendImage as $imageAttachment) { |
260 | 260 | $content = $imageAttachment->getContent(); |
261 | - $url = 'data:image/' . $imageAttachment->getType() . ';base64,' . base64_encode($content); |
|
262 | - $html = '<a name="attachment_' . $imageAttachment->getId() . '"><img src="' . $url . '" /><br /></a>'; |
|
261 | + $url = 'data:image/'.$imageAttachment->getType().';base64,'.base64_encode($content); |
|
262 | + $html = '<a name="attachment_'.$imageAttachment->getId().'"><img src="'.$url.'" /><br /></a>'; |
|
263 | 263 | $pdf->WriteHTML($html); |
264 | 264 | } |
265 | 265 | } |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $pagecount = $pdf->SetSourceFile($filename); |
287 | 287 | for ($pages = 0; $pages < $pagecount; $pages++) { |
288 | 288 | $pdf->AddPage(); |
289 | - $pdf->WriteHTML(' pages: ' . $pagecount); |
|
289 | + $pdf->WriteHTML(' pages: '.$pagecount); |
|
290 | 290 | $tx = $pdf->ImportPage($pages + 1); |
291 | 291 | $pdf->UseTemplate($tx); |
292 | 292 | } |
@@ -323,18 +323,18 @@ discard block |
||
323 | 323 | $defaultSuffix = $viewTemplatePathStack->getDefaultSuffix(); |
324 | 324 | if (pathinfo($name, PATHINFO_EXTENSION) != $defaultSuffix) { |
325 | 325 | ; |
326 | - $name .= '.pdf.' . $defaultSuffix; |
|
326 | + $name .= '.pdf.'.$defaultSuffix; |
|
327 | 327 | } else { |
328 | 328 | // TODO: replace Filename by Filename for PDF |
329 | 329 | } |
330 | 330 | |
331 | 331 | foreach ($paths as $path) { |
332 | - $file = new SplFileInfo($path . $name); |
|
332 | + $file = new SplFileInfo($path.$name); |
|
333 | 333 | if ($file->isReadable()) { |
334 | 334 | // Found! Return it. |
335 | 335 | if (($filePath = $file->getRealPath()) === false && substr($path, 0, 7) === 'phar://') { |
336 | 336 | // Do not try to expand phar paths (realpath + phars == fail) |
337 | - $filePath = $path . $name; |
|
337 | + $filePath = $path.$name; |
|
338 | 338 | if (!file_exists($filePath)) { |
339 | 339 | break; |
340 | 340 | } |
@@ -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 | { |
@@ -87,9 +87,9 @@ |
||
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
90 | - public function find( $user, $lockMode = LockMode::NONE, $lockVersion = null ) { |
|
91 | - return $this->getSettingsByUser($user); |
|
92 | - } |
|
90 | + public function find( $user, $lockMode = LockMode::NONE, $lockVersion = null ) { |
|
91 | + return $this->getSettingsByUser($user); |
|
92 | + } |
|
93 | 93 | |
94 | 94 | public function getEntityByStrategy($namespace) |
95 | 95 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
90 | - public function find( $user, $lockMode = LockMode::NONE, $lockVersion = null ) { |
|
90 | + public function find($user, $lockMode = LockMode::NONE, $lockVersion = null) { |
|
91 | 91 | return $this->getSettingsByUser($user); |
92 | 92 | } |
93 | 93 |
@@ -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 | } |
@@ -13,12 +13,12 @@ discard block |
||
13 | 13 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
14 | 14 | |
15 | 15 | $coreModules = include 'common.modules.php'; |
16 | -if (!file_exists(__DIR__ . '/autoload/yawik.config.global.php')) { |
|
17 | - $modules = array_merge($coreModules,[ |
|
16 | +if (!file_exists(__DIR__.'/autoload/yawik.config.global.php')) { |
|
17 | + $modules = array_merge($coreModules, [ |
|
18 | 18 | 'Install', |
19 | 19 | ]); |
20 | 20 | } else { |
21 | - $modules = array_merge($coreModules,[ |
|
21 | + $modules = array_merge($coreModules, [ |
|
22 | 22 | 'Core', |
23 | 23 | 'Auth', |
24 | 24 | 'Cv', |
@@ -35,12 +35,12 @@ discard block |
||
35 | 35 | // kann und über Server-Variablen oder ähnlichen steuern kann |
36 | 36 | $allModules = False; |
37 | 37 | } |
38 | - foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) { |
|
38 | + foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) { |
|
39 | 39 | $addModules = require $moduleFile; |
40 | 40 | foreach ($addModules as $addModule) { |
41 | 41 | if (strpos($addModule, '-') === 0) { |
42 | - $remove = substr($addModule,1); |
|
43 | - $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
|
42 | + $remove = substr($addModule, 1); |
|
43 | + $modules = array_filter($modules, function($elem) use ($remove) { return strcasecmp($elem, $remove); }); |
|
44 | 44 | } |
45 | 45 | else { |
46 | 46 | if (!in_array($addModule, $modules)) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ), |
94 | 94 | ); |
95 | 95 | |
96 | -$envConfigFile = __DIR__ . '/config.' . $env . '.php'; |
|
96 | +$envConfigFile = __DIR__.'/config.'.$env.'.php'; |
|
97 | 97 | if (file_exists($envConfigFile)) { |
98 | 98 | if (is_readable($envConfigFile)) { |
99 | 99 | $envConfig = include $envConfigFile; |
@@ -35,10 +35,10 @@ |
||
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 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getConfig() |
51 | 51 | { |
52 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
52 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | return array( |
63 | 63 | 'Zend\Loader\StandardAutoloader' => array( |
64 | 64 | 'namespaces' => array( |
65 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
66 | - __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ .'Test', |
|
65 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
66 | + __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test', |
|
67 | 67 | ), |
68 | 68 | ), |
69 | 69 | ); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * A new application has been received |
22 | 22 | */ |
23 | - const INCOMING = 'incoming'; |
|
23 | + const INCOMING = 'incoming'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * An acknowledgement of receipt has been sent |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * An applicant ist invited to in interview |
32 | 32 | */ |
33 | - const INVITED = 'invited'; |
|
33 | + const INVITED = 'invited'; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * The applicant has been canceled |
37 | 37 | */ |
38 | - const REJECTED = 'rejected'; |
|
38 | + const REJECTED = 'rejected'; |
|
39 | 39 | |
40 | 40 | public function __construct($status = self::INCOMING); |
41 | 41 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - protected $label = /*@translate*/ 'Cover Letter'; |
|
27 | + protected $label = /*@translate*/ 'Cover Letter'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * {@inheritDoc} |