@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public function findByAssignedPermissionsResourceId($resourceId) |
71 | 71 | { |
72 | 72 | $criteria = $this->getIsDeletedCriteria( |
73 | - ['permissions.assigned.' . $resourceId => [ '$exists' => true]] |
|
73 | + ['permissions.assigned.'.$resourceId => ['$exists' => true]] |
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | return $this->findBy($criteria); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $qb = $this->createQueryBuilder(); |
137 | 137 | $qb->distinct('organization') |
138 | 138 | ->hydrate(true) |
139 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
139 | + ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]); |
|
140 | 140 | |
141 | 141 | $q = $qb->getQuery(); |
142 | 142 | $r = $q->execute(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $qb = $this->dm->createQueryBuilder('Organizations\Entity\Organization'); |
146 | 146 | $qb->field('_id')->in($r); |
147 | 147 | if ($term) { |
148 | - $qb->field('_organizationName')->equals(new \MongoRegex('/' . addslashes($term) . '/i')); |
|
148 | + $qb->field('_organizationName')->equals(new \MongoRegex('/'.addslashes($term).'/i')); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | $q = $qb->getQuery(); |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function createQueryBuilder($isDeleted = false) |
204 | 204 | { |
205 | - $qb = parent::createQueryBuilder(); |
|
205 | + $qb = parent::createQueryBuilder(); |
|
206 | 206 | |
207 | 207 | if (null !== $isDeleted) { |
208 | 208 | $qb->addAnd( |
@@ -86,10 +86,10 @@ |
||
86 | 86 | |
87 | 87 | if (isset($params['l'])) { |
88 | 88 | $coords = $params['l']->getCoordinates()->getCoordinates(); |
89 | - $queryBuilder->field('locations.coordinates')->geoWithinCenter((float) $coords[0], (float) $coords[1], (float) $this->value['d']/100); |
|
89 | + $queryBuilder->field('locations.coordinates')->geoWithinCenter((float) $coords[0], (float) $coords[1], (float) $this->value['d'] / 100); |
|
90 | 90 | } |
91 | 91 | |
92 | - if (isset($params['channel']) && !empty($params['channel']) && $params['channel']!="default") { |
|
92 | + if (isset($params['channel']) && !empty($params['channel']) && $params['channel'] != "default") { |
|
93 | 93 | $queryBuilder->field('portals')->equals($params['channel']); |
94 | 94 | } |
95 | 95 |
@@ -67,13 +67,13 @@ |
||
67 | 67 | $file = "jobs.categories.$type.php"; |
68 | 68 | |
69 | 69 | foreach ($this->globalConfigPaths as $path) { |
70 | - if (file_exists($path . $file)) { |
|
71 | - return include $path . $file; |
|
70 | + if (file_exists($path.$file)) { |
|
71 | + return include $path.$file; |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | - if (file_exists($this->moduleConfigPath . $file)) { |
|
76 | - return include $this->moduleConfigPath . $file; |
|
75 | + if (file_exists($this->moduleConfigPath.$file)) { |
|
76 | + return include $this->moduleConfigPath.$file; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return false; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * |
32 | 32 | * @var array |
33 | 33 | */ |
34 | - protected $headscripts = [ 'modules/Jobs/js/forms.manager-select.js' ]; |
|
34 | + protected $headscripts = ['modules/Jobs/js/forms.manager-select.js']; |
|
35 | 35 | |
36 | 36 | public function setHeadscripts(array $scripts) |
37 | 37 | { |
@@ -82,7 +82,7 @@ |
||
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 | } |
@@ -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 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ), |
46 | 46 | 'attributes' => array( |
47 | 47 | 'value' => Status::CREATED, |
48 | - 'data-searchbox' => -1, // hide the search box |
|
48 | + 'data-searchbox' => -1, // hide the search box |
|
49 | 49 | 'data-allowclear' => 'false', // allow to clear a selected value |
50 | 50 | ) |
51 | 51 | ) |
@@ -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 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'options' => [ |
52 | 52 | 'placeholder' => /*@translate*/ 'Enter pure html code here', |
53 | 53 | ], |
54 | - 'attributes' => ['style' => 'width:100%;height:100%;',] |
|
54 | + 'attributes' => ['style' => 'width:100%;height:100%;', ] |
|
55 | 55 | ] |
56 | 56 | ); |
57 | 57 | } |