@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $databaseArray |
104 | 104 | ); |
105 | 105 | |
106 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
106 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
107 | 107 | |
108 | 108 | return $entity; |
109 | 109 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | ['id' => $entity->id] |
132 | 132 | ); |
133 | 133 | |
134 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
134 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
135 | 135 | |
136 | 136 | return $entity; |
137 | 137 | } |
@@ -216,16 +216,16 @@ discard block |
||
216 | 216 | public function getEntityFromDatabaseArray(array $data) |
217 | 217 | { |
218 | 218 | $entity = new UserEntity(); |
219 | - $entity->id = (int) $data['user_id']; |
|
220 | - $entity->username = (string) $data['username']; |
|
221 | - $entity->password = (string) $data['password']; |
|
222 | - $entity->email = (string) $data['email']; |
|
223 | - $entity->latitude = (double) $data['latitude']; |
|
224 | - $entity->longitude = (double) $data['longitude']; |
|
225 | - $entity->isActive = (bool) $data['is_active_flag']; |
|
226 | - $entity->firstname = (string) $data['first_name']; |
|
227 | - $entity->lastname = (string) $data['last_name']; |
|
228 | - $entity->country = (string) $data['country']; |
|
219 | + $entity->id = (int)$data['user_id']; |
|
220 | + $entity->username = (string)$data['username']; |
|
221 | + $entity->password = (string)$data['password']; |
|
222 | + $entity->email = (string)$data['email']; |
|
223 | + $entity->latitude = (double)$data['latitude']; |
|
224 | + $entity->longitude = (double)$data['longitude']; |
|
225 | + $entity->isActive = (bool)$data['is_active_flag']; |
|
226 | + $entity->firstname = (string)$data['first_name']; |
|
227 | + $entity->lastname = (string)$data['last_name']; |
|
228 | + $entity->country = (string)$data['country']; |
|
229 | 229 | $entity->language = strtolower($data['language']); |
230 | 230 | |
231 | 231 | return $entity; |
@@ -211,15 +211,15 @@ |
||
211 | 211 | public function getEntityFromDatabaseArray(array $data) |
212 | 212 | { |
213 | 213 | $entity = new LanguageEntity(); |
214 | - $entity->short = (string) strtolower($data['short']); |
|
215 | - $entity->name = (string) $data['name']; |
|
216 | - $entity->nativeName = (string) $data['native_name']; |
|
217 | - $entity->de = (string) $data['de']; |
|
218 | - $entity->en = (string) $data['en']; |
|
219 | - $entity->translationId = (int) $data['trans_id']; |
|
220 | - $entity->listDefaultDe = (bool) $data['list_default_de']; |
|
221 | - $entity->listDefaultEn = (bool) $data['list_default_en']; |
|
222 | - $entity->isTranslated = (bool) $data['is_translated']; |
|
214 | + $entity->short = (string)strtolower($data['short']); |
|
215 | + $entity->name = (string)$data['name']; |
|
216 | + $entity->nativeName = (string)$data['native_name']; |
|
217 | + $entity->de = (string)$data['de']; |
|
218 | + $entity->en = (string)$data['en']; |
|
219 | + $entity->translationId = (int)$data['trans_id']; |
|
220 | + $entity->listDefaultDe = (bool)$data['list_default_de']; |
|
221 | + $entity->listDefaultEn = (bool)$data['list_default_en']; |
|
222 | + $entity->isTranslated = (bool)$data['is_translated']; |
|
223 | 223 | |
224 | 224 | return $entity; |
225 | 225 | } |
@@ -151,17 +151,17 @@ |
||
151 | 151 | public static function getConflictingAttribIds($attribId) |
152 | 152 | { |
153 | 153 | static $conflicts = [ |
154 | - [1, 38], // only at night - 24/7 |
|
155 | - [1, 40], // only at night - only by day |
|
156 | - [24, 25], // near the parking area - long walk |
|
157 | - [24, 27], // near the parking area - hilly area |
|
158 | - [24, 29], // near the parking area - swimming required |
|
159 | - [24, 50], // near the parking area - cave equipment |
|
160 | - [24, 51], // near the parking area - diving equipment |
|
161 | - [24, 52], // near the parking area - watercraft |
|
162 | - [38, 39], // 24/7 - only at specified times |
|
163 | - [38, 40], // 24/7 - only by day |
|
164 | - [42, 43], // all seasons - breeding season |
|
154 | + [1, 38], // only at night - 24/7 |
|
155 | + [1, 40], // only at night - only by day |
|
156 | + [24, 25], // near the parking area - long walk |
|
157 | + [24, 27], // near the parking area - hilly area |
|
158 | + [24, 29], // near the parking area - swimming required |
|
159 | + [24, 50], // near the parking area - cave equipment |
|
160 | + [24, 51], // near the parking area - diving equipment |
|
161 | + [24, 52], // near the parking area - watercraft |
|
162 | + [38, 39], // 24/7 - only at specified times |
|
163 | + [38, 40], // 24/7 - only by day |
|
164 | + [42, 43], // all seasons - breeding season |
|
165 | 165 | [42, 60] // all seassons - only during specified seasons |
166 | 166 | ]; |
167 | 167 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $config->set( |
64 | 64 | 'HTML.ForbiddenElements', |
65 | 65 | [ |
66 | - 'basefont', // workaround for HTMLPurifier bug, which allows this in the <body> |
|
66 | + 'basefont', // workaround for HTMLPurifier bug, which allows this in the <body> |
|
67 | 67 | ] |
68 | 68 | ); |
69 | 69 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | // add attributes |
99 | 99 | $def->addAttribute('a', 'rel', 'CDATA'); |
100 | 100 | $def->addAttribute('img', 'usemap', 'CDATA'); |
101 | - $def->addAttribute('map', 'name', 'CDATA'); // workaround for HTMLPurifer bug |
|
101 | + $def->addAttribute('map', 'name', 'CDATA'); // workaround for HTMLPurifer bug |
|
102 | 102 | |
103 | 103 | // create parent object with config |
104 | 104 | parent::__construct($config); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | $process = new Process($cmd, $this->rootPath, null, null, 9600); |
46 | - $process->run(function ($type, $buffer) { |
|
46 | + $process->run(function($type, $buffer) { |
|
47 | 47 | echo $buffer; |
48 | 48 | }); |
49 | 49 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function execute(InputInterface $input, OutputInterface $output) |
48 | 48 | { |
49 | - require_once __DIR__.'/../../../okapi/autoload.php'; |
|
49 | + require_once __DIR__ . '/../../../okapi/autoload.php'; |
|
50 | 50 | Okapi::execute_prerequest_cronjobs(); |
51 | 51 | Okapi::execute_cron5_cronjobs(); |
52 | 52 | } |
@@ -106,6 +106,6 @@ |
||
106 | 106 | */ |
107 | 107 | public static function Container() |
108 | 108 | { |
109 | - return self::getInstance()->getContainer(); |
|
109 | + return self::getInstance()->getContainer(); |
|
110 | 110 | } |
111 | 111 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | ] |
55 | 55 | ); |
56 | 56 | |
57 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
57 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
58 | 58 | $data = $event->getData(); |
59 | 59 | $form = $event->getForm(); |
60 | 60 |
@@ -13,10 +13,10 @@ |
||
13 | 13 | $tpl->name = 'usertops'; |
14 | 14 | $tpl->menuitem = MNU_CACHES_USERTOPS; |
15 | 15 | |
16 | -$userId = (int) isset($_REQUEST['userid']) ? $_REQUEST['userid']: 0; |
|
16 | +$userId = (int)isset($_REQUEST['userid']) ? $_REQUEST['userid'] : 0; |
|
17 | 17 | $ocOnly = isset($_REQUEST['oconly']) && $_REQUEST['oconly']; |
18 | 18 | |
19 | -$sUsername = $connection->fetchColumn('SELECT `username` FROM `user` WHERE `user_id` = :userId',['userId' => $userId]); |
|
19 | +$sUsername = $connection->fetchColumn('SELECT `username` FROM `user` WHERE `user_id` = :userId', ['userId' => $userId]); |
|
20 | 20 | if ($sUsername == null) { |
21 | 21 | $tpl->error(ERROR_USER_NOT_EXISTS); |
22 | 22 | } |