@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | { |
| 288 | 288 | // Obtain base URL when path is empty, or not starts from "//" or "http". |
| 289 | 289 | if (empty($path) || strpos($path, '//') !== 0 && strpos($path, 'http') !== 0) { |
| 290 | - $path = rtrim($this->getMinkParameter('base_url'), '/') . '/' . ltrim($path, '/'); |
|
| 290 | + $path = rtrim($this->getMinkParameter('base_url'), '/').'/'.ltrim($path, '/'); |
|
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | $url = parse_url($path); |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | throw new \InvalidArgumentException(sprintf('%s is not valid scheme.', $url['scheme'])); |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | - $path = $url['scheme'] . ':'; |
|
| 306 | + $path = $url['scheme'].':'; |
|
| 307 | 307 | } else { |
| 308 | 308 | // Process "//" at the start. |
| 309 | 309 | $path = ''; |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | // Encode special characters in username and password. Useful |
| 316 | 316 | // when some item contain something like "@" symbol. |
| 317 | 317 | foreach (['user' => ':', 'pass' => '@'] as $part => $suffix) { |
| 318 | - $path .= rawurlencode($url[$part]) . $suffix; |
|
| 318 | + $path .= rawurlencode($url[$part]).$suffix; |
|
| 319 | 319 | } |
| 320 | 320 | } |
| 321 | 321 | |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | // Append additional URL components. |
| 325 | 325 | foreach (['port' => ':', 'path' => '', 'query' => '?', 'fragment' => '#'] as $part => $prefix) { |
| 326 | 326 | if (isset($url[$part])) { |
| 327 | - $path .= $prefix . $url[$part]; |
|
| 327 | + $path .= $prefix.$url[$part]; |
|
| 328 | 328 | } |
| 329 | 329 | } |
| 330 | 330 | |
@@ -42,6 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * {@inheritdoc} |
| 45 | + * @param string $string |
|
| 45 | 46 | */ |
| 46 | 47 | public static function formatString($string, array $args = []) |
| 47 | 48 | { |
@@ -50,6 +51,7 @@ discard block |
||
| 50 | 51 | |
| 51 | 52 | /** |
| 52 | 53 | * {@inheritdoc} |
| 54 | + * @param string $text |
|
| 53 | 55 | */ |
| 54 | 56 | public static function tokenReplace($text, array $data = [], array $options = []) |
| 55 | 57 | { |
@@ -75,7 +77,7 @@ discard block |
||
| 75 | 77 | /** |
| 76 | 78 | * {@inheritdoc} |
| 77 | 79 | * |
| 78 | - * @param AccountInterface $user |
|
| 80 | + * @param stdClass $user |
|
| 79 | 81 | */ |
| 80 | 82 | public static function setCurrentUser($user) |
| 81 | 83 | { |
@@ -4,13 +4,13 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | use Behat\Behat\Hook\Scope\BeforeFeatureScope; |
| 7 | -use Drupal\Core\Field\FieldDefinitionInterface; |
|
| 7 | +use Drupal\Component\Render\FormattableMarkup; |
|
| 8 | +use Drupal\Component\Serialization\Json; |
|
| 9 | +use Drupal\Core\Database\Query\Select; |
|
| 8 | 10 | use Drupal\Core\Entity\FieldableEntityInterface; |
| 11 | +use Drupal\Core\Field\FieldDefinitionInterface; |
|
| 9 | 12 | use Drupal\Core\Session\AccountInterface; |
| 10 | -use Drupal\Core\Database\Query\Select; |
|
| 11 | 13 | use Drupal\Core\StringTranslation\TranslatableMarkup; |
| 12 | -use Drupal\Component\Render\FormattableMarkup; |
|
| 13 | -use Drupal\Component\Serialization\Json; |
|
| 14 | 14 | use Drupal\TqExtension\Utils\Database\FetchField; |
| 15 | 15 | |
| 16 | 16 | // @codingStandardsIgnoreStart |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | static $original = 'php_mail'; |
| 166 | 166 | |
| 167 | 167 | $systemMail = \Drupal::configFactory() |
| 168 | - ->getEditable('system.mail'); |
|
| 168 | + ->getEditable('system.mail'); |
|
| 169 | 169 | |
| 170 | 170 | if ($useTesting) { |
| 171 | 171 | // Store original mail system to restore it after scenario. |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | // @codingStandardsIgnoreStart |
| 10 | 10 | final class DrupalKernelPlaceholder extends DrupalKernelPlaceholderBase |
| 11 | - // @codingStandardsIgnoreEnd |
|
| 11 | + // @codingStandardsIgnoreEnd |
|
| 12 | 12 | { |
| 13 | 13 | /** |
| 14 | 14 | * {@inheritdoc} |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | { |
| 209 | 209 | $file .= '.js'; |
| 210 | 210 | $modulePath = static::drupalGetFilename('module', 'system'); |
| 211 | - $destination = dirname($modulePath) . '/' . $file; |
|
| 211 | + $destination = dirname($modulePath).'/'.$file; |
|
| 212 | 212 | $injection = "\ndrupal_add_js('$destination', array('every_page' => TRUE));"; |
| 213 | 213 | |
| 214 | 214 | if ($delete) { |
@@ -218,13 +218,13 @@ discard block |
||
| 218 | 218 | $replace = ''; |
| 219 | 219 | } else { |
| 220 | 220 | static::fileUnmanagedCopy( |
| 221 | - str_replace('Context', 'JavaScript', __DIR__) . '/' . $file, |
|
| 221 | + str_replace('Context', 'JavaScript', __DIR__).'/'.$file, |
|
| 222 | 222 | $destination, |
| 223 | 223 | FILE_EXISTS_REPLACE |
| 224 | 224 | ); |
| 225 | 225 | |
| 226 | 226 | $search = 'system_add_module_assets();'; |
| 227 | - $replace = $search . $injection; |
|
| 227 | + $replace = $search.$injection; |
|
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | file_put_contents($modulePath, str_replace($search, $replace, file_get_contents($modulePath))); |