@@ -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)) { |
@@ -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, |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | $table = new Table( |
| 159 | 159 | array('columnWidths' => array(40, 40, 40), |
| 160 | - 'decorator' => 'ascii') |
|
| 160 | + 'decorator' => 'ascii') |
|
| 161 | 161 | ); |
| 162 | 162 | |
| 163 | 163 | $table->appendRow(array('Module', 'Name', 'Description')); |
@@ -238,8 +238,8 @@ discard block |
||
| 238 | 238 | $attachments = $app->getAttachments(); |
| 239 | 239 | foreach ($attachments as $attachment) { |
| 240 | 240 | $attachment->getPermissions() |
| 241 | - ->clear() |
|
| 242 | - ->inherit($permissions); |
|
| 241 | + ->clear() |
|
| 242 | + ->inherit($permissions); |
|
| 243 | 243 | } |
| 244 | 244 | $contact = $app->getContact(); |
| 245 | 245 | if ($contact) { |
@@ -247,8 +247,8 @@ discard block |
||
| 247 | 247 | |
| 248 | 248 | if ($image) { |
| 249 | 249 | $image->getPermissions() |
| 250 | - ->clear() |
|
| 251 | - ->inherit($permissions); |
|
| 250 | + ->clear() |
|
| 251 | + ->inherit($permissions); |
|
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | 254 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | echo "Generate keywords for $count applications ...\n"; |
| 66 | 66 | |
| 67 | - $progress = new ProgressBar($count); |
|
| 67 | + $progress = new ProgressBar($count); |
|
| 68 | 68 | |
| 69 | 69 | /** @var PropertyToKeywords $filter */ |
| 70 | 70 | $filter = $services->get('filtermanager')->get('Core/Repository/PropertyToKeywords'); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | { |
| 99 | 99 | $applications = $this->fetchApplications(); |
| 100 | 100 | $count = count($applications); |
| 101 | - $i=0; |
|
| 101 | + $i = 0; |
|
| 102 | 102 | echo "Calculate rating for " . $count . " applications ...\n"; |
| 103 | 103 | |
| 104 | 104 | $progress = new ProgressBar($count); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $documentManager = $services->get('Core/DocumentManager'); |
| 133 | 133 | |
| 134 | 134 | $count = count($applications); |
| 135 | - $i=0; |
|
| 135 | + $i = 0; |
|
| 136 | 136 | |
| 137 | 137 | echo $count . " applications in Draft Mode and older than " . $days . " days will be deleted\n"; |
| 138 | 138 | |
@@ -162,17 +162,17 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | $table->appendRow(array('Module', 'Name', 'Description')); |
| 164 | 164 | |
| 165 | - $offset=strlen(getcwd())+1; |
|
| 166 | - $links=""; |
|
| 167 | - $github='https://github.com/cross-solution/YAWIK/blob/master/'; |
|
| 165 | + $offset = strlen(getcwd()) + 1; |
|
| 166 | + $links = ""; |
|
| 167 | + $github = 'https://github.com/cross-solution/YAWIK/blob/master/'; |
|
| 168 | 168 | |
| 169 | 169 | foreach ($config['view_manager']['template_map'] as $key => $absolute_filename) { |
| 170 | 170 | // strip the application_root plus an additional slash |
| 171 | - $filename=substr(realpath($absolute_filename), $offset); |
|
| 171 | + $filename = substr(realpath($absolute_filename), $offset); |
|
| 172 | 172 | if (preg_match('~module/([^/]+)~', $filename, $match)) { |
| 173 | - $module=$match[1]; |
|
| 173 | + $module = $match[1]; |
|
| 174 | 174 | } else { |
| 175 | - $module="not found ($key)"; |
|
| 175 | + $module = "not found ($key)"; |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | $viewModel = new ViewModel(); |
@@ -182,23 +182,23 @@ discard block |
||
| 182 | 182 | $row->appendColumn(new Column($module)); |
| 183 | 183 | if ($filename) { |
| 184 | 184 | $row->appendColumn(new Column('`' . $key . '`_')); |
| 185 | - $links.='.. _'. $key .': '. $github.$filename .PHP_EOL; |
|
| 185 | + $links .= '.. _' . $key . ': ' . $github . $filename . PHP_EOL; |
|
| 186 | 186 | } else { |
| 187 | 187 | $row->appendColumn(new Column("WRONG CONFIGURATION")); |
| 188 | 188 | } |
| 189 | - $comment=""; |
|
| 189 | + $comment = ""; |
|
| 190 | 190 | if (file_exists($absolute_filename)) { |
| 191 | - $src=file_get_contents($absolute_filename); |
|
| 192 | - $comment="file exists"; |
|
| 191 | + $src = file_get_contents($absolute_filename); |
|
| 192 | + $comment = "file exists"; |
|
| 193 | 193 | if (preg_match("/{{rtd:\s*(.*)}}/", $src, $match)) { |
| 194 | - $comment=$match['1']; |
|
| 194 | + $comment = $match['1']; |
|
| 195 | 195 | } |
| 196 | 196 | } |
| 197 | 197 | $row->appendColumn(new Column($comment)); |
| 198 | 198 | $table->appendRow($row); |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - echo $table.PHP_EOL; |
|
| 201 | + echo $table . PHP_EOL; |
|
| 202 | 202 | echo $links; |
| 203 | 203 | |
| 204 | 204 | return PHP_EOL; |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | { |
| 209 | 209 | echo "Loading applications... "; |
| 210 | 210 | |
| 211 | - $filter = \Zend\Json\Json::decode($this->params('filter', '{}'), \Zend\Json\Json::TYPE_ARRAY); |
|
| 211 | + $filter = \Zend\Json\Json::decode($this->params('filter', '{}'), \Zend\Json\Json::TYPE_ARRAY); |
|
| 212 | 212 | $filter['$or'] = array( |
| 213 | 213 | array('attachments' => array('$exists' => 1)), |
| 214 | 214 | array('contact.image' => array('$exists' => 1)), |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | return; |
| 223 | 223 | } |
| 224 | 224 | $progress = new ProgressBar($count); |
| 225 | - $i=0; |
|
| 225 | + $i = 0; |
|
| 226 | 226 | |
| 227 | 227 | foreach ($applications as $app) { |
| 228 | 228 | $progress->update($i++, "Process $i / $count"); |
@@ -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 controller */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | $ackMail = $this->mailer( |
| 217 | 217 | 'Applications/Confirmation', |
| 218 | 218 | array('application' => $applicationEntity, |
| 219 | - 'body' => $ackBody, |
|
| 219 | + 'body' => $ackBody, |
|
| 220 | 220 | ) |
| 221 | 221 | ); |
| 222 | 222 | // Must be called after initializers in creation |
@@ -233,14 +233,14 @@ discard block |
||
| 233 | 233 | if (isset($paramsCC) && array_key_exists('carboncopy', $paramsCC)) { |
| 234 | 234 | $wantCarbonCopy = (int) $paramsCC['carboncopy']; |
| 235 | 235 | if ($wantCarbonCopy) { |
| 236 | - $mail = $this->mailer( |
|
| 237 | - 'Applications/CarbonCopy', |
|
| 238 | - array( |
|
| 236 | + $mail = $this->mailer( |
|
| 237 | + 'Applications/CarbonCopy', |
|
| 238 | + array( |
|
| 239 | 239 | 'application' => $applicationEntity, |
| 240 | 240 | 'to' => $applicationEntity->contact->email, |
| 241 | - ), /*send*/ |
|
| 242 | - true |
|
| 243 | - ); |
|
| 241 | + ), /*send*/ |
|
| 242 | + true |
|
| 243 | + ); |
|
| 244 | 244 | } |
| 245 | 245 | } |
| 246 | 246 | } |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | $params->set('by', 'me'); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | - //default sorting |
|
| 281 | + //default sorting |
|
| 282 | 282 | if (!isset($params['sort'])) { |
| 283 | 283 | $params['sort']="-date"; |
| 284 | 284 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | $services = $this->getServiceLocator(); |
| 303 | 303 | $config = $services->get('Config'); |
| 304 | 304 | $applicationId = $this->getRequest() |
| 305 | - ->getQuery('id'); |
|
| 305 | + ->getQuery('id'); |
|
| 306 | 306 | $status = $this->params('status'); |
| 307 | 307 | $repositories = $services->get('repositories'); |
| 308 | 308 | $entityApplication = $repositories->get('Applications/Application')->find($applicationId); |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | |
| 334 | 334 | $mail = $this->mailer('Applications/CarbonCopy', $mailData, true); |
| 335 | 335 | $this->notification() |
| 336 | - ->success(/*@translate*/ 'Mail has been send'); |
|
| 336 | + ->success(/*@translate*/ 'Mail has been send'); |
|
| 337 | 337 | if ($status == 'company') { |
| 338 | 338 | $repositories->remove($entityApplication); |
| 339 | 339 | $this->notification()->info(/*@translate*/ 'Application data has been deleted'); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | $job = ($request->isPost() && !empty($jobId)) |
| 76 | 76 | ? $services->get('repositories')->get('Jobs/Job')->find($jobId) |
| 77 | - : $services->get('repositories')->get('Jobs/Job')->findOneBy(array("applyId"=>(0 == $applyId)?$this->params('jobId'):$applyId)); |
|
| 77 | + : $services->get('repositories')->get('Jobs/Job')->findOneBy(array("applyId"=>(0 == $applyId) ? $this->params('jobId') : $applyId)); |
|
| 78 | 78 | |
| 79 | 79 | |
| 80 | 80 | if (!$job) { |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | |
| 281 | 281 | //default sorting |
| 282 | 282 | if (!isset($params['sort'])) { |
| 283 | - $params['sort']="-date"; |
|
| 283 | + $params['sort'] = "-date"; |
|
| 284 | 284 | } |
| 285 | 285 | $params->count = 5; |
| 286 | 286 | $this->paginationParams()->setParams('Applications\Index', $params); |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | $jobEntity = $entityApplication->job; |
| 313 | 313 | $applicantEmail = $entityApplication->contact->email; |
| 314 | 314 | $organizationEmail = $jobEntity->contactEmail; |
| 315 | - $mailAddress = null; |
|
| 315 | + $mailAddress = null; |
|
| 316 | 316 | switch ($status == 'test') { |
| 317 | 317 | case 'company': |
| 318 | 318 | $mailAddress = $organizationEmail; |
@@ -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 controller */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -176,9 +176,9 @@ discard block |
||
| 176 | 176 | $viewModel->setVariables( |
| 177 | 177 | /*array( |
| 178 | 178 | 'application' => */$this->getServiceLocator() |
| 179 | - ->get('builders') |
|
| 180 | - ->get('JsonApplication') |
|
| 181 | - ->unbuild($application) |
|
| 179 | + ->get('builders') |
|
| 180 | + ->get('JsonApplication') |
|
| 181 | + ->unbuild($application) |
|
| 182 | 182 | ); |
| 183 | 183 | $viewModel->setVariable('isUnread', $applicationIsUnread); |
| 184 | 184 | $return = $viewModel; |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | $services = $this->getServiceLocator(); |
| 367 | 367 | $emailAddress = $this->params()->fromQuery('email'); |
| 368 | 368 | $application = $services->get('repositories')->get('Applications/Application') |
| 369 | - ->find($this->params('id')); |
|
| 369 | + ->find($this->params('id')); |
|
| 370 | 370 | |
| 371 | 371 | $this->acl($application, 'forward'); |
| 372 | 372 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | $statusElement->setValueOptions($statesForSelections); |
| 96 | 96 | |
| 97 | - $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 97 | + $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 98 | 98 | $paginator = $this->paginator('Applications/Application', $params); |
| 99 | 99 | |
| 100 | 100 | if ($job) { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | |
| 157 | - $format=$this->params()->fromQuery('format'); |
|
| 157 | + $format = $this->params()->fromQuery('format'); |
|
| 158 | 158 | |
| 159 | 159 | if ($application->isDraft()) { |
| 160 | 160 | $list = false; |
@@ -327,11 +327,11 @@ discard block |
||
| 327 | 327 | $key = 'mailRejectionText'; |
| 328 | 328 | break; |
| 329 | 329 | } |
| 330 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
| 330 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
| 331 | 331 | $this->notification()->success($mailText); |
| 332 | 332 | $mail->setBody($mailText); |
| 333 | 333 | $mailText = $mail->getBodyText(); |
| 334 | - $mailSubject = sprintf( |
|
| 334 | + $mailSubject = sprintf( |
|
| 335 | 335 | $translator->translate('Your application dated %s'), |
| 336 | 336 | strftime('%x', $application->dateCreated->getTimestamp()) |
| 337 | 337 | ); |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | |
| 371 | 371 | $this->acl($application, 'forward'); |
| 372 | 372 | |
| 373 | - $translator = $services->get('translator'); |
|
| 373 | + $translator = $services->get('translator'); |
|
| 374 | 374 | |
| 375 | 375 | if (!$emailAddress) { |
| 376 | 376 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | { |
| 414 | 414 | $id = $this->params('id'); |
| 415 | 415 | $services = $this->getServiceLocator(); |
| 416 | - $repositories= $services->get('repositories'); |
|
| 416 | + $repositories = $services->get('repositories'); |
|
| 417 | 417 | $repository = $repositories->get('Applications/Application'); |
| 418 | 418 | $application = $repository->find($id); |
| 419 | 419 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Applications controller */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package Applications |
|
| 4 | - */ |
|
| 3 | + * @package Applications |
|
| 4 | + */ |
|
| 5 | 5 | namespace Applications\Entity; |
| 6 | 6 | |
| 7 | 7 | use Core\Entity\AbstractIdentifiableEntity; |
@@ -446,7 +446,7 @@ |
||
| 446 | 446 | public function getCv() |
| 447 | 447 | { |
| 448 | 448 | if (is_null($this->cv)) { |
| 449 | - $this->cv= new Cv(); |
|
| 449 | + $this->cv = new Cv(); |
|
| 450 | 450 | } |
| 451 | 451 | return $this->cv; |
| 452 | 452 | } |