@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | // Routes |
| 13 | 13 | return array('router' => array('routes' => array('lang' => array('child_routes' => array( |
| 14 | - 'admin' => [ 'child_routes' => [ |
|
| 14 | + 'admin' => ['child_routes' => [ |
|
| 15 | 15 | 'jobs' => [ |
| 16 | 16 | 'type' => 'Segment', |
| 17 | 17 | 'options' => [ |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @license MIT |
|
| 7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @license MIT |
|
| 7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** */ |
| 11 | 11 | namespace Jobs\Controller; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | return new JsonModel([ |
| 72 | 72 | 'valid' => $valid, |
| 73 | 73 | 'errors' => $errors |
| 74 | - ]); |
|
| 74 | + ]); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | $form->bind($job); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function indexAction() |
| 27 | 27 | { |
| 28 | 28 | |
| 29 | - $params = $this->paginationParams('Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ]); |
|
| 29 | + $params = $this->paginationParams('Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status']); |
|
| 30 | 30 | |
| 31 | 31 | $services = $this->getServiceLocator(); |
| 32 | 32 | $forms = $services->get('forms'); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $oldStatus = $job->getStatus(); |
| 65 | 65 | $job->changeStatus($post['status'], '[System] Status changed via Admin GUI.'); |
| 66 | 66 | $events = $services->get('Jobs/Events'); |
| 67 | - $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, [ 'job' => $job, 'status' => $oldStatus ]); |
|
| 67 | + $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, ['job' => $job, 'status' => $oldStatus]); |
|
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $form->bind($job); |
| 78 | 78 | |
| 79 | - return [ 'form' => $form, 'job' => $job ]; |
|
| 79 | + return ['form' => $form, 'job' => $job]; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | } |
| 83 | 83 | \ No newline at end of file |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @license MIT |
|
| 7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @license MIT |
|
| 7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** */ |
| 11 | 11 | namespace Jobs\Form\Element; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | if (true === $this->getOption('include_all_option')) { |
| 37 | 37 | $valueOptions = array_merge([ |
| 38 | 38 | 'all' => /*@translate*/ 'All', |
| 39 | - ], $valueOptions ); |
|
| 39 | + ], $valueOptions ); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $this->setValueOptions($valueOptions); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | if (true === $this->getOption('include_all_option')) { |
| 37 | 37 | $valueOptions = array_merge([ |
| 38 | 38 | 'all' => /*@translate*/ 'All', |
| 39 | - ], $valueOptions ); |
|
| 39 | + ], $valueOptions); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $this->setValueOptions($valueOptions); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $options = parent::getValueOptions(); |
| 83 | 83 | |
| 84 | 84 | return true === $this->getOption('include_all_option') |
| 85 | - ? array_merge([ 'all' => /*@translate*/ 'All' ], $options) |
|
| 85 | + ? array_merge(['all' => /*@translate*/ 'All'], $options) |
|
| 86 | 86 | : $options; |
| 87 | 87 | } |
| 88 | 88 | |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @license MIT |
|
| 7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @license MIT |
|
| 7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** */ |
| 11 | 11 | namespace Jobs\Form; |
@@ -30,21 +30,21 @@ discard block |
||
| 30 | 30 | )); |
| 31 | 31 | |
| 32 | 32 | $this->add([ |
| 33 | - 'type' => 'Jobs/StatusSelect', |
|
| 33 | + 'type' => 'Jobs/StatusSelect', |
|
| 34 | 34 | |
| 35 | - ]); |
|
| 35 | + ]); |
|
| 36 | 36 | |
| 37 | 37 | $this->add([ |
| 38 | - 'type' => 'Core/Datepicker', |
|
| 39 | - 'name' => 'datePublishStart', |
|
| 40 | - 'options' => [ |
|
| 41 | - 'label' => /*@translate*/ 'Start date', |
|
| 42 | - 'description' => /*@translate*/ 'Set the start date of this job.', |
|
| 43 | - ], |
|
| 44 | - 'attributes' => [ |
|
| 45 | - 'data-date-autoclose' => 'true', |
|
| 46 | - ], |
|
| 47 | - ]); |
|
| 38 | + 'type' => 'Core/Datepicker', |
|
| 39 | + 'name' => 'datePublishStart', |
|
| 40 | + 'options' => [ |
|
| 41 | + 'label' => /*@translate*/ 'Start date', |
|
| 42 | + 'description' => /*@translate*/ 'Set the start date of this job.', |
|
| 43 | + ], |
|
| 44 | + 'attributes' => [ |
|
| 45 | + 'data-date-autoclose' => 'true', |
|
| 46 | + ], |
|
| 47 | + ]); |
|
| 48 | 48 | $this->setIsDescriptionsEnabled(true); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Organizations\Factory\Controller; |
| 11 | 11 | |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | * Event is fired when a users has created a new job opening and accepted the |
| 35 | 35 | * terms and conditions |
| 36 | 36 | */ |
| 37 | - const EVENT_JOB_CREATED = 'job.created'; |
|
| 37 | + const EVENT_JOB_CREATED = 'job.created'; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Event is fired when the owner of the YAWIK installation has accepted the job |
| 41 | 41 | * opening |
| 42 | 42 | */ |
| 43 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
| 43 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * get all available names for publishing |
| 56 | 56 | */ |
| 57 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
| 57 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @var portals to be published |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @license MIT |
|
| 7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @license MIT |
|
| 7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** */ |
| 11 | 11 | namespace Jobs\Listener; |
@@ -36,21 +36,21 @@ discard block |
||
| 36 | 36 | $pending = $this->repository->count(['status.name' => StatusInterface::CREATED]); |
| 37 | 37 | |
| 38 | 38 | $event->addViewVariables('jobs', [ |
| 39 | - 'title' => 'Jobs', |
|
| 40 | - 'data' => [ |
|
| 39 | + 'title' => 'Jobs', |
|
| 40 | + 'data' => [ |
|
| 41 | 41 | /*@translate*/ 'Total jobs' => [ |
| 42 | 42 | 'url' => [ 'lang/admin/jobs', [], true ], |
| 43 | 43 | 'value' => $total, |
| 44 | 44 | ], |
| 45 | 45 | /*@translate*/ 'Active jobs' => [ |
| 46 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
| 47 | - 'value' => $active |
|
| 48 | - ], |
|
| 46 | + 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
| 47 | + 'value' => $active |
|
| 48 | + ], |
|
| 49 | 49 | /*@translate*/ 'Pending jobs' => [ |
| 50 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
| 51 | - 'value' => $pending |
|
| 52 | - ] |
|
| 53 | - ], |
|
| 54 | - ]); |
|
| 50 | + 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
| 51 | + 'value' => $pending |
|
| 52 | + ] |
|
| 53 | + ], |
|
| 54 | + ]); |
|
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | \ No newline at end of file |
@@ -39,15 +39,15 @@ |
||
| 39 | 39 | 'title' => 'Jobs', |
| 40 | 40 | 'data' => [ |
| 41 | 41 | /*@translate*/ 'Total jobs' => [ |
| 42 | - 'url' => [ 'lang/admin/jobs', [], true ], |
|
| 42 | + 'url' => ['lang/admin/jobs', [], true], |
|
| 43 | 43 | 'value' => $total, |
| 44 | 44 | ], |
| 45 | 45 | /*@translate*/ 'Active jobs' => [ |
| 46 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
| 46 | + 'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'active']], true], |
|
| 47 | 47 | 'value' => $active |
| 48 | 48 | ], |
| 49 | 49 | /*@translate*/ 'Pending jobs' => [ |
| 50 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
| 50 | + 'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'created']], true], |
|
| 51 | 51 | 'value' => $pending |
| 52 | 52 | ] |
| 53 | 53 | ], |
@@ -1,16 +1,16 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * Configuration file of the Core module |
|
| 5 | - * |
|
| 6 | - * This file intents to provide the configuration for all other modules |
|
| 7 | - * as well (convention over configuration). |
|
| 8 | - * Having said that, you may always overwrite or extend the configuration |
|
| 9 | - * in your own modules configuration file(s) (or via the config autoloading). |
|
| 10 | - * |
|
| 11 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 12 | - * @license MIT |
|
| 13 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * Configuration file of the Core module |
|
| 5 | + * |
|
| 6 | + * This file intents to provide the configuration for all other modules |
|
| 7 | + * as well (convention over configuration). |
|
| 8 | + * Having said that, you may always overwrite or extend the configuration |
|
| 9 | + * in your own modules configuration file(s) (or via the config autoloading). |
|
| 10 | + * |
|
| 11 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 12 | + * @license MIT |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | $doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
| 16 | 16 | |
@@ -32,24 +32,24 @@ discard block |
||
| 32 | 32 | 'log' => array( |
| 33 | 33 | 'Core/Log' => array( |
| 34 | 34 | 'writers' => array( |
| 35 | - array( |
|
| 36 | - 'name' => 'stream', |
|
| 35 | + array( |
|
| 36 | + 'name' => 'stream', |
|
| 37 | 37 | 'priority' => 1000, |
| 38 | 38 | 'options' => array( |
| 39 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 39 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 40 | + ), |
|
| 40 | 41 | ), |
| 41 | - ), |
|
| 42 | 42 | ), |
| 43 | 43 | ), |
| 44 | 44 | 'Log/Core/Mail' => array( |
| 45 | 45 | 'writers' => array( |
| 46 | - array( |
|
| 47 | - 'name' => 'stream', |
|
| 46 | + array( |
|
| 47 | + 'name' => 'stream', |
|
| 48 | 48 | 'priority' => 1000, |
| 49 | 49 | 'options' => array( |
| 50 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 50 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 51 | + ), |
|
| 51 | 52 | ), |
| 52 | - ), |
|
| 53 | 53 | ), |
| 54 | 54 | ), |
| 55 | 55 | 'ErrorLogger' => array( |
@@ -234,17 +234,17 @@ discard block |
||
| 234 | 234 | // Defines the Core/Navigation. |
| 235 | 235 | 'navigation' => array( |
| 236 | 236 | 'default' => array( |
| 237 | - 'home' => array( |
|
| 238 | - 'label' => /*@translate*/ 'Home', |
|
| 239 | - 'route' => 'lang', |
|
| 240 | - 'visible' => false |
|
| 241 | - ), |
|
| 242 | - 'admin' => array( |
|
| 243 | - 'label ' => /*@translate*/ 'Admin', |
|
| 244 | - 'route' => 'lang/admin', |
|
| 245 | - 'resource' => 'route/lang/admin', |
|
| 246 | - 'order' => 200, |
|
| 247 | - ), |
|
| 237 | + 'home' => array( |
|
| 238 | + 'label' => /*@translate*/ 'Home', |
|
| 239 | + 'route' => 'lang', |
|
| 240 | + 'visible' => false |
|
| 241 | + ), |
|
| 242 | + 'admin' => array( |
|
| 243 | + 'label ' => /*@translate*/ 'Admin', |
|
| 244 | + 'route' => 'lang/admin', |
|
| 245 | + 'resource' => 'route/lang/admin', |
|
| 246 | + 'order' => 200, |
|
| 247 | + ), |
|
| 248 | 248 | ), |
| 249 | 249 | ), |
| 250 | 250 | // Configuration of the controller service manager (Which loads controllers) |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Auth controller */ |
| 11 | 11 | namespace Auth\Controller; |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | $paginator = $this->paginator('Auth/User', $params); |
| 38 | 38 | $form = $this->getServiceLocator()->get('forms') |
| 39 | 39 | ->get('Core/TextSearch', [ |
| 40 | - 'placeholder' => /*@translate*/ 'Type name, email address, role, or login name', |
|
| 41 | - 'button_element' => 'text' |
|
| 42 | - ]); |
|
| 40 | + 'placeholder' => /*@translate*/ 'Type name, email address, role, or login name', |
|
| 41 | + 'button_element' => 'text' |
|
| 42 | + ]); |
|
| 43 | 43 | |
| 44 | 44 | $return = array( |
| 45 | 45 | 'by' => $params['by'], |