@@ -47,7 +47,7 @@ |
||
| 47 | 47 | ) |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | - $data['previewLink'] = $viewLink; |
|
| 50 | + $data['previewLink'] = $viewLink; |
|
| 51 | 51 | return $data; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $object = parent::hydrate($data, $object); |
| 44 | 44 | /* @var \Organizations\Entity\Template $template */ |
| 45 | - $template=$object->getOrganization()->getTemplate(); |
|
| 45 | + $template = $object->getOrganization()->getTemplate(); |
|
| 46 | 46 | if (isset($data['description-label-requirements'])) { |
| 47 | 47 | $template->setLabelRequirements($data['description-label-requirements']); |
| 48 | 48 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | ), |
| 83 | 83 | 'attributes' => [ |
| 84 | 84 | 'value' => '10', // default distance |
| 85 | - 'data-searchbox' => -1, // hide the search box |
|
| 85 | + 'data-searchbox' => -1, // hide the search box |
|
| 86 | 86 | 'data-allowclear' => 'false', // allow to clear a selected value |
| 87 | 87 | 'data-placeholder' => /*@translate*/ 'Distance', |
| 88 | 88 | 'data-width' => '100%', |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function getConfig() |
| 40 | 40 | { |
| 41 | - return ModuleConfigLoader::load(__DIR__ . '/../config'); |
|
| 41 | + return ModuleConfigLoader::load(__DIR__.'/../config'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function onBootstrap(MvcEvent $e) |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) /* @var $job \Jobs\Entity\Job */ |
| 64 | 64 | { |
| 65 | 65 | $title = $job->getTitle() ?: $view->translate('untitled'); |
| 66 | - $title .= ' ('. $view->dateFormat($job->getDateCreated(), 'short', 'none') . ')'; |
|
| 66 | + $title .= ' ('.$view->dateFormat($job->getDateCreated(), 'short', 'none').')'; |
|
| 67 | 67 | $url = $view->url('lang/jobs/manage', ['action' => 'edit'], [ |
| 68 | 68 | 'query' => [ |
| 69 | 69 | 'id' => $job->getId() |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function __invoke(Job $jobEntity, $options = [], $urlParams = []) |
| 69 | 69 | { |
| 70 | - $options= array_merge($this->options, $options); |
|
| 70 | + $options = array_merge($this->options, $options); |
|
| 71 | 71 | $paramsHelper = $this->paramsHelper; |
| 72 | 72 | $urlHelper = $this->urlHelper; |
| 73 | 73 | $serverUrlHelper = $this->serverUrlHelper; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | ); |
| 90 | 90 | } else { |
| 91 | 91 | $query = [ |
| 92 | - 'subscriberUri' => $serverUrlHelper([]) . '/subscriber/' . 1, |
|
| 92 | + 'subscriberUri' => $serverUrlHelper([]).'/subscriber/'.1, |
|
| 93 | 93 | 'id' => $jobEntity->getId() |
| 94 | 94 | ]; |
| 95 | 95 | if ($jobEntity instanceof JobSnapshot) { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | '<a href="%s" rel="%s" %s>%s</a>', |
| 117 | 117 | $url, |
| 118 | 118 | $options['rel'], |
| 119 | - $options['target']?"target=" . $options['target']:"", |
|
| 119 | + $options['target'] ? "target=".$options['target'] : "", |
|
| 120 | 120 | strip_tags($jobEntity->getTitle()) |
| 121 | 121 | ); |
| 122 | 122 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | { |
| 132 | 132 | foreach ($options as $key=>$val) { |
| 133 | 133 | if (array_key_exists($this->options, $key)) { |
| 134 | - $this->options[$key]=$val; |
|
| 134 | + $this->options[$key] = $val; |
|
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | } |
@@ -65,6 +65,6 @@ |
||
| 65 | 65 | 'admin' => 1, |
| 66 | 66 | ]], |
| 67 | 67 | true |
| 68 | - ) . '&return=' . $this->returnUrl; |
|
| 68 | + ).'&return='.$this->returnUrl; |
|
| 69 | 69 | } |
| 70 | 70 | } |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | $currentTemplate = $view->viewModel() |
| 76 | 76 | ->getCurrent() |
| 77 | 77 | ->getTemplate(); |
| 78 | - $partial = dirname($currentTemplate) . '/' . $options['partial']; |
|
| 78 | + $partial = dirname($currentTemplate).'/'.$options['partial']; |
|
| 79 | 79 | |
| 80 | 80 | if (!$options['oneClickOnly'] && $data['uri']) { |
| 81 | 81 | $variables['default'] = [ |
@@ -23,35 +23,35 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * Job has been published |
| 25 | 25 | */ |
| 26 | - const RESPONSE_OK = 'ok'; |
|
| 26 | + const RESPONSE_OK = 'ok'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Job has been published and has stopped all other publishing |
| 30 | 30 | */ |
| 31 | - const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
| 31 | + const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * publishing has been stopped |
| 35 | 35 | */ |
| 36 | - const RESPONSE_STOP = 'publishing terminated'; |
|
| 36 | + const RESPONSE_STOP = 'publishing terminated'; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * publishing has been denied, |
| 40 | 40 | * this is very likely when a job was not intended to be sended to a portal |
| 41 | 41 | */ |
| 42 | - const RESPONSE_DENIED = 'denied'; |
|
| 42 | + const RESPONSE_DENIED = 'denied'; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * a connection to the portal could not be established |
| 46 | 46 | * or the publishing of the Job has been rejected for other reasons |
| 47 | 47 | */ |
| 48 | - const RESPONSE_FAIL = 'fail'; |
|
| 48 | + const RESPONSE_FAIL = 'fail'; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * This error has nothing to do with wrong inputs, |
| 52 | 52 | * something just has happend in the programm |
| 53 | 53 | */ |
| 54 | - const RESPONSE_ERROR = 'internal Error'; |
|
| 54 | + const RESPONSE_ERROR = 'internal Error'; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * nothing happens, but that's not a failure |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * nothing happens, and get used to it |
| 64 | 64 | */ |
| 65 | - const RESPONSE_DEPRECATED = 'deprecated'; |
|
| 65 | + const RESPONSE_DEPRECATED = 'deprecated'; |
|
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * @var string |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param string $portal |
| 84 | 84 | * @param string $status |
| 85 | 85 | */ |
| 86 | - public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') |
|
| 86 | + public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') |
|
| 87 | 87 | { |
| 88 | 88 | $this->portal = $portal; |
| 89 | 89 | $this->status = $status; |