@@ -35,21 +35,21 @@ |
||
35 | 35 | $pending = $this->repository->count(['status.name' => StatusInterface::CREATED]); |
36 | 36 | |
37 | 37 | $event->addViewVariables('jobs', [ |
38 | - 'title' => 'Jobs', |
|
39 | - 'data' => [ |
|
38 | + 'title' => 'Jobs', |
|
39 | + 'data' => [ |
|
40 | 40 | /*@translate*/ 'Total jobs' => [ |
41 | 41 | 'url' => [ 'lang/admin/jobs', [], true ], |
42 | 42 | 'value' => $total, |
43 | 43 | ], |
44 | 44 | /*@translate*/ 'Active jobs' => [ |
45 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
46 | - 'value' => $active |
|
47 | - ], |
|
45 | + 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
46 | + 'value' => $active |
|
47 | + ], |
|
48 | 48 | /*@translate*/ 'Pending jobs' => [ |
49 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
50 | - 'value' => $pending |
|
51 | - ] |
|
52 | - ], |
|
53 | - ]); |
|
49 | + 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
50 | + 'value' => $pending |
|
51 | + ] |
|
52 | + ], |
|
53 | + ]); |
|
54 | 54 | } |
55 | 55 | } |
@@ -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 | ], |
@@ -33,13 +33,13 @@ discard block |
||
33 | 33 | * Event is fired when a users has created a new job opening and accepted the |
34 | 34 | * terms and conditions |
35 | 35 | */ |
36 | - const EVENT_JOB_CREATED = 'job.created'; |
|
36 | + const EVENT_JOB_CREATED = 'job.created'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Event is fired when the owner of the YAWIK installation has accepted the job |
40 | 40 | * opening |
41 | 41 | */ |
42 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
42 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * get all available names for publishing |
57 | 57 | */ |
58 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
58 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * portals to be published |
@@ -51,11 +51,11 @@ |
||
51 | 51 | $imageUrl = $image ? $image->getUri() : ''; |
52 | 52 | |
53 | 53 | $options[] = [ 'id' => $org->getId(), |
54 | - 'text' => $name . '|' |
|
55 | - . $contact->getCity() . '|' |
|
56 | - . $contact->getStreet() . '|' |
|
57 | - . $contact->getHouseNumber() . '|' |
|
58 | - . $imageUrl |
|
54 | + 'text' => $name . '|' |
|
55 | + . $contact->getCity() . '|' |
|
56 | + . $contact->getStreet() . '|' |
|
57 | + . $contact->getHouseNumber() . '|' |
|
58 | + . $imageUrl |
|
59 | 59 | ]; |
60 | 60 | } |
61 | 61 |
@@ -50,11 +50,11 @@ |
||
50 | 50 | $image = $org->getImage(); |
51 | 51 | $imageUrl = $image ? $image->getUri() : ''; |
52 | 52 | |
53 | - $options[] = [ 'id' => $org->getId(), |
|
54 | - 'text' => $name . '|' |
|
55 | - . $contact->getCity() . '|' |
|
56 | - . $contact->getStreet() . '|' |
|
57 | - . $contact->getHouseNumber() . '|' |
|
53 | + $options[] = ['id' => $org->getId(), |
|
54 | + 'text' => $name.'|' |
|
55 | + . $contact->getCity().'|' |
|
56 | + . $contact->getStreet().'|' |
|
57 | + . $contact->getHouseNumber().'|' |
|
58 | 58 | . $imageUrl |
59 | 59 | ]; |
60 | 60 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $core = $container->get("Core/Options"); |
39 | 39 | |
40 | 40 | if ('' == $channel->getCurrency()) { |
41 | - $currency=$core->getDefaultCurrencyCode(); |
|
41 | + $currency = $core->getDefaultCurrencyCode(); |
|
42 | 42 | $channel->setCurrency($currency); |
43 | 43 | } |
44 | 44 |
@@ -38,14 +38,14 @@ |
||
38 | 38 | |
39 | 39 | $globalConfigPaths = []; |
40 | 40 | foreach ($config['config_glob_paths'] as $path) { |
41 | - $globalConfigPaths[] = substr($path, 0, strrpos($path, DIRECTORY_SEPARATOR)) . DIRECTORY_SEPARATOR; |
|
41 | + $globalConfigPaths[] = substr($path, 0, strrpos($path, DIRECTORY_SEPARATOR)).DIRECTORY_SEPARATOR; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $moduleConfigPath = '.'; |
45 | 45 | foreach ($config['module_paths'] as $path) { |
46 | - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
47 | - if (file_exists($path . 'Jobs')) { |
|
48 | - $moduleConfigPath = $path . 'Jobs' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR; |
|
46 | + $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
47 | + if (file_exists($path.'Jobs')) { |
|
48 | + $moduleConfigPath = $path.'Jobs'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR; |
|
49 | 49 | break; |
50 | 50 | } |
51 | 51 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array(); |
45 | 45 | |
46 | - if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) { |
|
46 | + if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) { |
|
47 | 47 | $coreOptions = $container->get('Core/Options'); |
48 | 48 | $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail(); |
49 | 49 | } |
@@ -53,13 +53,13 @@ |
||
53 | 53 | if ($initialId) { |
54 | 54 | /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager |
55 | 55 | * @var $repository \Organizations\Repository\Organization */ |
56 | - $repositories = $container->get('repositories'); |
|
56 | + $repositories = $container->get('repositories'); |
|
57 | 57 | $repository = $repositories->get('Organizations'); |
58 | - $organization = $repository->find($initialId); |
|
58 | + $organization = $repository->find($initialId); |
|
59 | 59 | $organizations[] = $organization; |
60 | 60 | } |
61 | 61 | |
62 | - $select = new OrganizationSelect(); |
|
62 | + $select = new OrganizationSelect(); |
|
63 | 63 | |
64 | 64 | $select->setSelectableOrganizations($organizations); |
65 | 65 | $select->setAttribute('data-ajax', '?ajax=jobs.admin.activeorganizations'); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @filesource |
6 | 6 | * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
7 | 7 | * @license MIT |
8 | - */ |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Jobs\Factory\Form\Hydrator; |
11 | 11 |
@@ -49,8 +49,8 @@ |
||
49 | 49 | |
50 | 50 | $helper = new JobUrl(); |
51 | 51 | $helper->setUrlHelper($url) |
52 | - ->setParamsHelper($params) |
|
53 | - ->setServerUrlHelper($serverUrl); |
|
52 | + ->setParamsHelper($params) |
|
53 | + ->setServerUrlHelper($serverUrl); |
|
54 | 54 | return $helper; |
55 | 55 | } |
56 | 56 | } |