@@ -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. |
@@ -117,6 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * {@inheritdoc} |
| 120 | + * @param string $name |
|
| 120 | 121 | */ |
| 121 | 122 | public function getDrupalText($name) |
| 122 | 123 | { |
@@ -216,7 +217,7 @@ discard block |
||
| 216 | 217 | * @param array $args |
| 217 | 218 | * Placeholder declarations. |
| 218 | 219 | * |
| 219 | - * @return mixed |
|
| 220 | + * @return string |
|
| 220 | 221 | */ |
| 221 | 222 | public function executeJs($javascript, array $args = []) |
| 222 | 223 | { |
@@ -233,7 +234,7 @@ discard block |
||
| 233 | 234 | * |
| 234 | 235 | * @param StepScope $event |
| 235 | 236 | * |
| 236 | - * @return int |
|
| 237 | + * @return boolean |
|
| 237 | 238 | */ |
| 238 | 239 | public static function isStepImpliesJsEvent(StepScope $event) |
| 239 | 240 | { |
@@ -91,6 +91,9 @@ |
||
| 91 | 91 | self::requireContext(__FUNCTION__, func_get_args()); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $path |
|
| 96 | + */ |
|
| 94 | 97 | public static function setCurrentPath($path) |
| 95 | 98 | { |
| 96 | 99 | self::requireContext(__FUNCTION__, func_get_args()); |
@@ -12,6 +12,7 @@ |
||
| 12 | 12 | * Set context parameters from behat.yml. |
| 13 | 13 | * |
| 14 | 14 | * @param array $parameters |
| 15 | + * @return void |
|
| 15 | 16 | */ |
| 16 | 17 | public function setTqParameters(array $parameters); |
| 17 | 18 | |
@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | public function getCurrentId() |
| 31 | 31 | { |
| 32 | 32 | $currentUser = $this |
| 33 | - ->getUserManager() |
|
| 34 | - ->getCurrentUser(); |
|
| 33 | + ->getUserManager() |
|
| 34 | + ->getCurrentUser(); |
|
| 35 | 35 | |
| 36 | 36 | return empty($currentUser->uid) ? 0 : $currentUser->uid; |
| 37 | 37 | } |
@@ -117,8 +117,8 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | $account = user_load_by_name($props['username']); |
| 119 | 119 | $this |
| 120 | - ->getUserManager() |
|
| 121 | - ->setCurrentUser($account); |
|
| 120 | + ->getUserManager() |
|
| 121 | + ->setCurrentUser($account); |
|
| 122 | 122 | |
| 123 | 123 | DrupalKernelPlaceholder::setCurrentUser($account); |
| 124 | 124 | } |
@@ -114,8 +114,8 @@ |
||
| 114 | 114 | public function fillInWithValueOfFieldOfCurrentUser($field, $userField) |
| 115 | 115 | { |
| 116 | 116 | $currentUser = $this |
| 117 | - ->getUserManager() |
|
| 118 | - ->getCurrentUser(); |
|
| 117 | + ->getUserManager() |
|
| 118 | + ->getCurrentUser(); |
|
| 119 | 119 | |
| 120 | 120 | if (!empty($currentUser) && empty($currentUser->uid)) { |
| 121 | 121 | throw new \Exception('Anonymous user have no fields'); |