@@ -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); |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | protected $viewHelper; |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * @param ContainerInterface $container |
|
| 65 | - * |
|
| 66 | - * @return ApplyController |
|
| 67 | - */ |
|
| 63 | + /** |
|
| 64 | + * @param ContainerInterface $container |
|
| 65 | + * |
|
| 66 | + * @return ApplyController |
|
| 67 | + */ |
|
| 68 | 68 | static public function factory(ContainerInterface $container) |
| 69 | 69 | { |
| 70 | 70 | $ob = new self(); |
@@ -72,24 +72,24 @@ discard block |
||
| 72 | 72 | return $ob; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public function setContainer( ContainerInterface $container ) |
|
| 76 | - { |
|
| 77 | - $this->config = $container->get('Config'); |
|
| 78 | - $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
| 79 | - $this->validator = $container->get('ValidatorManager'); |
|
| 80 | - $this->repositories = $container->get('repositories'); |
|
| 81 | - $this->appEvents = $container->get('Applications/Events'); |
|
| 82 | - $this->viewHelper = $container->get('ViewHelperManager'); |
|
| 83 | - } |
|
| 75 | + public function setContainer( ContainerInterface $container ) |
|
| 76 | + { |
|
| 77 | + $this->config = $container->get('Config'); |
|
| 78 | + $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
| 79 | + $this->validator = $container->get('ValidatorManager'); |
|
| 80 | + $this->repositories = $container->get('repositories'); |
|
| 81 | + $this->appEvents = $container->get('Applications/Events'); |
|
| 82 | + $this->viewHelper = $container->get('ViewHelperManager'); |
|
| 83 | + } |
|
| 84 | 84 | |
| 85 | 85 | |
| 86 | - public function attachDefaultListeners() |
|
| 87 | - { |
|
| 88 | - parent::attachDefaultListeners(); |
|
| 89 | - $events = $this->getEventManager(); |
|
| 90 | - $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
| 91 | - return $this; |
|
| 92 | - } |
|
| 86 | + public function attachDefaultListeners() |
|
| 87 | + { |
|
| 88 | + parent::attachDefaultListeners(); |
|
| 89 | + $events = $this->getEventManager(); |
|
| 90 | + $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
| 91 | + return $this; |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | 94 | public function preDispatch(MvcEvent $e) |
| 95 | 95 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | ->getHybridAuth(); |
| 267 | 267 | /* @var $authProfile \Hybrid_User_Profile */ |
| 268 | 268 | $authProfile = $hybridAuth->authenticate($network) |
| 269 | - ->getUserProfile(); |
|
| 269 | + ->getUserProfile(); |
|
| 270 | 270 | |
| 271 | 271 | /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */ |
| 272 | 272 | $profile = $this->plugin('Auth/SocialProfiles')->fetch($network); |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | return $this->redirect() |
| 322 | - ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
| 322 | + ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | public function processPreviewAction() |
@@ -329,11 +329,11 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | public function processAction() |
| 331 | 331 | { |
| 332 | - $params = $this->params(); |
|
| 332 | + $params = $this->params(); |
|
| 333 | 333 | $formName = $params->fromQuery('form'); |
| 334 | 334 | $form = $this->formContainer->getForm($formName); |
| 335 | 335 | $postData = $form->getOption('use_post_array') ? $params->fromPost() : array(); |
| 336 | - //@TODO: [ZF3] option use_files_array is false by default |
|
| 336 | + //@TODO: [ZF3] option use_files_array is false by default |
|
| 337 | 337 | //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array(); |
| 338 | 338 | $form->setData(array_merge($postData,$_FILES)); |
| 339 | 339 | |
@@ -363,9 +363,9 @@ discard block |
||
| 363 | 363 | |
| 364 | 364 | return new JsonModel( |
| 365 | 365 | array( |
| 366 | - 'valid' => $form->isValid(), |
|
| 367 | - 'content' => $content, |
|
| 368 | - 'isApplicationValid' => $this->checkApplication($application) |
|
| 366 | + 'valid' => $form->isValid(), |
|
| 367 | + 'content' => $content, |
|
| 368 | + 'isApplicationValid' => $this->checkApplication($application) |
|
| 369 | 369 | ) |
| 370 | 370 | ); |
| 371 | 371 | } |
@@ -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 | } |
@@ -45,24 +45,24 @@ |
||
| 45 | 45 | 'log' => array( |
| 46 | 46 | 'Core/Log' => array( |
| 47 | 47 | 'writers' => array( |
| 48 | - array( |
|
| 49 | - 'name' => 'stream', |
|
| 48 | + array( |
|
| 49 | + 'name' => 'stream', |
|
| 50 | 50 | 'priority' => 1000, |
| 51 | 51 | 'options' => array( |
| 52 | - 'stream' => getcwd().'/var/log/yawik.log', |
|
| 52 | + 'stream' => getcwd().'/var/log/yawik.log', |
|
| 53 | + ), |
|
| 53 | 54 | ), |
| 54 | - ), |
|
| 55 | 55 | ), |
| 56 | 56 | ), |
| 57 | 57 | 'Log/Core/Mail' => array( |
| 58 | 58 | 'writers' => array( |
| 59 | - array( |
|
| 60 | - 'name' => 'stream', |
|
| 59 | + array( |
|
| 60 | + 'name' => 'stream', |
|
| 61 | 61 | 'priority' => 1000, |
| 62 | 62 | 'options' => array( |
| 63 | - 'stream' => getcwd().'/var/log/mails.log', |
|
| 63 | + 'stream' => getcwd().'/var/log/mails.log', |
|
| 64 | + ), |
|
| 64 | 65 | ), |
| 65 | - ), |
|
| 66 | 66 | ), |
| 67 | 67 | ), |
| 68 | 68 | ), |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | // 'driver' => 'odm_default', |
| 27 | 27 | // |
| 28 | 28 | // 'generate_proxies' => true, |
| 29 | - 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
| 29 | + 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
| 30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
| 31 | 31 | // |
| 32 | 32 | // 'generate_hydrators' => true, |
| 33 | - 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
| 33 | + 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
| 34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
| 35 | 35 | // |
| 36 | 36 | // 'default_db' => '', |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | 'entity' => $snapshot |
| 125 | 125 | ]); |
| 126 | 126 | $this->dm->getEventManager() |
| 127 | - ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs); |
|
| 127 | + ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs); |
|
| 128 | 128 | |
| 129 | 129 | $this->copy($source, $snapshot); |
| 130 | 130 | |
@@ -200,12 +200,12 @@ discard block |
||
| 200 | 200 | public function findLatest($sourceId, $isDraft = false) |
| 201 | 201 | { |
| 202 | 202 | $entity = $this->createQueryBuilder() |
| 203 | - ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
| 204 | - ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
| 205 | - ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
| 206 | - ->limit(1) |
|
| 207 | - ->getQuery() |
|
| 208 | - ->getSingleResult() |
|
| 203 | + ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
| 204 | + ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
| 205 | + ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
| 206 | + ->limit(1) |
|
| 207 | + ->getQuery() |
|
| 208 | + ->getSingleResult() |
|
| 209 | 209 | ; |
| 210 | 210 | if ($entity) { |
| 211 | 211 | $this->dm->getEventManager()->dispatchEvent( |
@@ -158,8 +158,8 @@ |
||
| 158 | 158 | if ($mimetypes) { |
| 159 | 159 | $mimeTypeValidator = new MimeType(); |
| 160 | 160 | $mimeTypeValidator->setMagicFile(false) |
| 161 | - ->disableMagicFile(true) |
|
| 162 | - ->setMimeType($this->getAllowedTypes()); |
|
| 161 | + ->disableMagicFile(true) |
|
| 162 | + ->setMimeType($this->getAllowedTypes()); |
|
| 163 | 163 | |
| 164 | 164 | $validators[] = $mimeTypeValidator; |
| 165 | 165 | } |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | protected $validator; |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * Get a validator if none has been set. |
|
| 18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
| 19 | - * @return RegexValidator |
|
| 20 | - */ |
|
| 17 | + * Get a validator if none has been set. |
|
| 18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
| 19 | + * @return RegexValidator |
|
| 20 | + */ |
|
| 21 | 21 | public function getValidator() |
| 22 | 22 | { |
| 23 | 23 | if (null === $this->validator) { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | public function init() |
| 52 | 52 | { |
| 53 | - $this->setName('items'); |
|
| 53 | + $this->setName('items'); |
|
| 54 | 54 | $this->add([ |
| 55 | 55 | 'type' => 'Collection', |
| 56 | 56 | 'name' => 'items', |