@@ -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 |
@@ -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 |
@@ -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 | ], |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
14 | 14 | |
15 | -if (!file_exists(__DIR__ . '/autoload/yawik.config.global.php')) { |
|
15 | +if (!file_exists(__DIR__.'/autoload/yawik.config.global.php')) { |
|
16 | 16 | $modules = array('Install'); |
17 | 17 | } else { |
18 | 18 | $modules = array( |
@@ -34,12 +34,12 @@ discard block |
||
34 | 34 | // kann und über Server-Variablen oder ähnlichen steuern kann |
35 | 35 | $allModules = False; |
36 | 36 | } |
37 | - foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) { |
|
37 | + foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) { |
|
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)) { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | ), |
93 | 93 | ); |
94 | 94 | |
95 | -$envConfigFile = __DIR__ . '/config.' . $env . '.php'; |
|
95 | +$envConfigFile = __DIR__.'/config.'.$env.'.php'; |
|
96 | 96 | if (file_exists($envConfigFile)) { |
97 | 97 | if (is_readable($envConfigFile)) { |
98 | 98 | $envConfig = include $envConfigFile; |
@@ -63,10 +63,10 @@ |
||
63 | 63 | $image = $org->getImage(); |
64 | 64 | $imageUrl = $image ? $image->getUri() : ''; |
65 | 65 | |
66 | - $options[$org->getId()] = $name . '|' |
|
67 | - . $contact->getCity() . '|' |
|
68 | - . $contact->getStreet() . '|' |
|
69 | - . $contact->getHouseNumber() . '|' |
|
66 | + $options[$org->getId()] = $name.'|' |
|
67 | + . $contact->getCity().'|' |
|
68 | + . $contact->getStreet().'|' |
|
69 | + . $contact->getHouseNumber().'|' |
|
70 | 70 | . $imageUrl; |
71 | 71 | } |
72 | 72 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | public function render(ElementInterface $element, $options = null) |
37 | 37 | { |
38 | - $content = '<iframe src="' . $element->getValue() . '" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
38 | + $content = '<iframe src="'.$element->getValue().'" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
39 | 39 | return $content; |
40 | 40 | } |
41 | 41 | } |
@@ -171,14 +171,14 @@ |
||
171 | 171 | $jsonLastError = json_last_error(); |
172 | 172 | if (json_last_error() != JSON_ERROR_NONE) { |
173 | 173 | // not able to decode json |
174 | - $log->info('RestCall Response not Json [errorCode: ' . $jsonLastError . ']: ' . var_export($body, true)); |
|
174 | + $log->info('RestCall Response not Json [errorCode: '.$jsonLastError.']: '.var_export($body, true)); |
|
175 | 175 | } else { |
176 | 176 | // does the provider want to have an own ID for Identification ? |
177 | 177 | $response_referenceUpdate = $decodedBody->referenceUpdate; |
178 | 178 | $response_externalIdUpdate = $decodedBody->applyIdUpdate; |
179 | 179 | |
180 | 180 | if ($publisher->externalId != $response_externalIdUpdate || $publisher->reference != $response_referenceUpdate) { |
181 | - $log->info('RestCall changed externalID [' . var_export($publisher->externalId, true) . ' => ' . var_export($response_externalIdUpdate, true) . '], reference [' . var_export($publisher->reference, true) . ' => ' . var_export($response_referenceUpdate, true) . ']'); |
|
181 | + $log->info('RestCall changed externalID ['.var_export($publisher->externalId, true).' => '.var_export($response_externalIdUpdate, true).'], reference ['.var_export($publisher->reference, true).' => '.var_export($response_referenceUpdate, true).']'); |
|
182 | 182 | $publisher->reference = $response_referenceUpdate; |
183 | 183 | $publisher->externalId = $response_externalIdUpdate; |
184 | 184 | $serviceManager->get('repositories')->store($entity); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $job = $this->repository->find($id); |
63 | 63 | |
64 | 64 | if (!$job) { |
65 | - throw new \RuntimeException('No job found with id "' . $id . '"'); |
|
65 | + throw new \RuntimeException('No job found with id "'.$id.'"'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $this->acl($job, 'edit'); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $filter->setViewHelperForm($viewHelperForm); |
59 | 59 | } |
60 | 60 | if (!isset($filter)) { |
61 | - throw new \InvalidArgumentException(get_class($element) . ' cannot be used to initialize a template'); |
|
61 | + throw new \InvalidArgumentException(get_class($element).' cannot be used to initialize a template'); |
|
62 | 62 | } |
63 | 63 | $viewManager = $this->service->get('viewHelperManager'); |
64 | 64 | $basePathHelper = $viewManager->get('basePath'); |