| @@ -11,8 +11,8 @@ | ||
| 11 | 11 | // Helpers. | 
| 12 | 12 | use Behat\Mink\Element\NodeElement; | 
| 13 | 13 | // Utils. | 
| 14 | -use Drupal\TqExtension\Utils\XPath; | |
| 15 | 14 | use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | 
| 15 | +use Drupal\TqExtension\Utils\XPath; | |
| 16 | 16 | |
| 17 | 17 | class RawPageContext extends RawDrupalContext | 
| 18 | 18 |  { | 
| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | // Scope definitions. | 
| 8 | 8 | use Behat\Behat\Hook\Scope; | 
| 9 | 9 | // Utils. | 
| 10 | +use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | |
| 10 | 11 | use Drupal\TqExtension\Utils\Database\Database; | 
| 11 | 12 | use Drupal\TqExtension\Utils\LogicalAssertion; | 
| 12 | -use Drupal\TqExtension\Cores\DrupalKernelPlaceholder; | |
| 13 | 13 | |
| 14 | 14 | class TqContext extends RawTqContext | 
| 15 | 15 |  { | 
| @@ -91,6 +91,9 @@ discard block | ||
| 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()); | 
| @@ -237,6 +240,8 @@ discard block | ||
| 237 | 240 | |
| 238 | 241 | /** | 
| 239 | 242 |       * {@inheritdoc} | 
| 243 | + * @param string $type | |
| 244 | + * @param string $name | |
| 240 | 245 | */ | 
| 241 | 246 | public static function drupalGetFilename($type, $name, $filename = null) | 
| 242 | 247 |      { | 
| @@ -245,6 +250,7 @@ discard block | ||
| 245 | 250 | |
| 246 | 251 | /** | 
| 247 | 252 |       * {@inheritdoc} | 
| 253 | + * @param string $path | |
| 248 | 254 | */ | 
| 249 | 255 | public static function fileUnmanagedDelete($path) | 
| 250 | 256 |      { | 
| @@ -253,6 +259,8 @@ discard block | ||
| 253 | 259 | |
| 254 | 260 | /** | 
| 255 | 261 |       * {@inheritdoc} | 
| 262 | + * @param string $source | |
| 263 | + * @param string $destination | |
| 256 | 264 | */ | 
| 257 | 265 | public static function fileUnmanagedCopy($source, $destination = null, $replace = FILE_EXISTS_RENAME) | 
| 258 | 266 |      { | 
| @@ -4,14 +4,14 @@ | ||
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | 6 | use Behat\Behat\Hook\Scope\BeforeFeatureScope; | 
| 7 | -use Drupal\Core\Field\FieldDefinitionInterface; | |
| 8 | -use Drupal\Core\Entity\FieldableEntityInterface; | |
| 9 | -use Drupal\Core\Session\AccountInterface; | |
| 7 | +use Drupal\Component\Render\FormattableMarkup; | |
| 8 | +use Drupal\Component\Serialization\Json; | |
| 10 | 9 | use Drupal\Core\Database\Database; | 
| 11 | 10 | use Drupal\Core\Database\Query\Select; | 
| 11 | +use Drupal\Core\Entity\FieldableEntityInterface; | |
| 12 | +use Drupal\Core\Field\FieldDefinitionInterface; | |
| 13 | +use Drupal\Core\Session\AccountInterface; | |
| 12 | 14 | use Drupal\Core\StringTranslation\TranslatableMarkup; | 
| 13 | -use Drupal\Component\Render\FormattableMarkup; | |
| 14 | -use Drupal\Component\Serialization\Json; | |
| 15 | 15 | use Drupal\TqExtension\Utils\Database\FetchField; | 
| 16 | 16 | |
| 17 | 17 | // @codingStandardsIgnoreStart | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | /** | 
| 13 | 13 | * @param string $path | 
| 14 | 14 | * Relative URL. | 
| 15 | - * @param string|int $code | |
| 15 | + * @param integer $code | |
| 16 | 16 | * HTTP response code. | 
| 17 | 17 | * | 
| 18 | 18 | * @return bool |