@@ -115,7 +115,7 @@ |
||
115 | 115 | { |
116 | 116 | return $this->context->executeJsOnElement($this->element, sprintf( |
117 | 117 | "return jQuery({{ELEMENT}}).datepicker(%s);", |
118 | - implode(', ', array_map(function ($value) { |
|
118 | + implode(', ', array_map(function($value) { |
|
119 | 119 | return in_array($value, ['<date>']) ? $this->date : "'$value'"; |
120 | 120 | }, $arguments)) |
121 | 121 | )); |
@@ -189,7 +189,7 @@ |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | $selector = t($selector); |
192 | - $element = $this->{'find' . $map[$locator]}($selector); |
|
192 | + $element = $this->{'find'.$map[$locator]}($selector); |
|
193 | 193 | $this->throwNoSuchElementException($selector, $element); |
194 | 194 | |
195 | 195 | return $element; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | if (empty($wysiwyg)) { |
32 | 32 | throw new \InvalidArgumentException( |
33 | - 'WYSIWYG name cannot be empty. You must mark your scenario with @wysiwyg' . |
|
33 | + 'WYSIWYG name cannot be empty. You must mark your scenario with @wysiwyg'. |
|
34 | 34 | 'and @wysiwyg:<NAME> tags. For example: @wysiwyg @wysiwyg:CKEditor' |
35 | 35 | ); |
36 | 36 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | return trim($this->getDrushDriver()->drush('uli', [ |
20 | 20 | $username, |
21 | 21 | '--browser=0', |
22 | - '--uri=' . $this->locatePath(), |
|
22 | + '--uri='.$this->locatePath(), |
|
23 | 23 | ])); |
24 | 24 | } |
25 | 25 | } |
@@ -26,6 +26,6 @@ |
||
26 | 26 | |
27 | 27 | return $this->getSession() |
28 | 28 | ->getPage() |
29 | - ->findAll('css', $selector = $this->getDrupalSelector($type . 'message_selector')); |
|
29 | + ->findAll('css', $selector = $this->getDrupalSelector($type.'message_selector')); |
|
30 | 30 | } |
31 | 31 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $formContext = $this->getFormContext(); |
65 | 65 | |
66 | 66 | foreach (['username', 'password'] as $prop) { |
67 | - $formContext->fillField($this->getDrupalText($prop . '_field'), $props[$prop]); |
|
67 | + $formContext->fillField($this->getDrupalText($prop.'_field'), $props[$prop]); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $this->getWorkingElement()->pressButton($this->getDrupalText('log_in')); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $minkContext = $this->getMinkContext(); |
155 | 155 | |
156 | 156 | foreach ($checkboxes->getRows() as $checkbox) { |
157 | - $minkContext->{trim($action) . 'Option'}(reset($checkbox)); |
|
157 | + $minkContext->{trim($action).'Option'}(reset($checkbox)); |
|
158 | 158 | } |
159 | 159 | } |
160 | 160 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | throw new \Exception('The "files_path" Mink parameter was not configured.'); |
248 | 248 | } |
249 | 249 | |
250 | - $file = rtrim(realpath($filesPath), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $file; |
|
250 | + $file = rtrim(realpath($filesPath), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file; |
|
251 | 251 | |
252 | 252 | if (!is_file($file)) { |
253 | 253 | throw new \InvalidArgumentException(sprintf('The "%s" file does not exist.', $file)); |
@@ -256,7 +256,7 @@ |
||
256 | 256 | public function waitAjaxAndAnimations() |
257 | 257 | { |
258 | 258 | $this->getSession() |
259 | - ->wait(1000, "window.__behatAjax === false && !jQuery(':animated').length && !jQuery.active"); |
|
259 | + ->wait(1000, "window.__behatAjax === false && !jQuery(':animated').length && !jQuery.active"); |
|
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | { |
243 | 243 | $file .= '.js'; |
244 | 244 | $modulePath = drupal_get_filename('module', 'system'); |
245 | - $destination = dirname($modulePath) . '/' . $file; |
|
245 | + $destination = dirname($modulePath).'/'.$file; |
|
246 | 246 | $injection = "\ndrupal_add_js('$destination', array('every_page' => TRUE));"; |
247 | 247 | |
248 | 248 | if ($delete) { |
@@ -252,13 +252,13 @@ discard block |
||
252 | 252 | $replace = ''; |
253 | 253 | } else { |
254 | 254 | file_unmanaged_copy( |
255 | - str_replace('Context', 'JavaScript', __DIR__) . '/' . $file, |
|
255 | + str_replace('Context', 'JavaScript', __DIR__).'/'.$file, |
|
256 | 256 | $destination, |
257 | 257 | FILE_EXISTS_REPLACE |
258 | 258 | ); |
259 | 259 | |
260 | 260 | $search = 'system_add_module_assets();'; |
261 | - $replace = $search . $injection; |
|
261 | + $replace = $search.$injection; |
|
262 | 262 | } |
263 | 263 | |
264 | 264 | file_put_contents($modulePath, str_replace($search, $replace, file_get_contents($modulePath))); |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | { |
322 | 322 | // Obtain base URL when path is empty, or not starts from "//" or "http". |
323 | 323 | if (empty($path) || strpos($path, '//') !== 0 && strpos($path, 'http') !== 0) { |
324 | - $path = rtrim($this->getMinkParameter('base_url'), '/') . '/' . ltrim($path, '/'); |
|
324 | + $path = rtrim($this->getMinkParameter('base_url'), '/').'/'.ltrim($path, '/'); |
|
325 | 325 | } |
326 | 326 | |
327 | 327 | $url = parse_url($path); |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | throw new \InvalidArgumentException(sprintf('%s is not valid scheme.', $url['scheme'])); |
338 | 338 | } |
339 | 339 | |
340 | - $path = $url['scheme'] . ':'; |
|
340 | + $path = $url['scheme'].':'; |
|
341 | 341 | } else { |
342 | 342 | // Process "//" at the start. |
343 | 343 | $path = ''; |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | // Encode special characters in username and password. Useful |
350 | 350 | // when some item contain something like "@" symbol. |
351 | 351 | foreach (['user' => ':', 'pass' => '@'] as $part => $suffix) { |
352 | - $path .= rawurlencode($url[$part]) . $suffix; |
|
352 | + $path .= rawurlencode($url[$part]).$suffix; |
|
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | // Append additional URL components. |
359 | 359 | foreach (['port' => ':', 'path' => '', 'query' => '?', 'fragment' => '#'] as $part => $prefix) { |
360 | 360 | if (isset($url[$part])) { |
361 | - $path .= $prefix . $url[$part]; |
|
361 | + $path .= $prefix.$url[$part]; |
|
362 | 362 | } |
363 | 363 | } |
364 | 364 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public function setConnection($email, $imap, $username, $password) |
20 | 20 | { |
21 | 21 | if (empty($this->connections[$email])) { |
22 | - $connection = imap_open('{' . $imap . '}INBOX', $username, $password); |
|
22 | + $connection = imap_open('{'.$imap.'}INBOX', $username, $password); |
|
23 | 23 | |
24 | 24 | if (false === $connection) { |
25 | 25 | throw new \RuntimeException('IMAP connection cannot be open. Maybe some parameters are incorrect.'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 4 => 'imap_qprint', |
91 | 91 | ]; |
92 | 92 | |
93 | - return isset($process[$encoding]) ? $process[$encoding] : function ($string) { |
|
93 | + return isset($process[$encoding]) ? $process[$encoding] : function($string) { |
|
94 | 94 | return $string; |
95 | 95 | }; |
96 | 96 | } |