Skip to content

Commit 9b64ac4

Browse files
committed
Lint.
1 parent 258c144 commit 9b64ac4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/behat/bootstrap/FeatureContext.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class FeatureContext extends DrupalContext {
6666
/**
6767
* Keep track of drush output.
6868
*
69-
* @var string|boolean
69+
* @var string|bool
7070
*/
7171
protected $drushOutput;
7272

@@ -481,7 +481,7 @@ public function searchApiIndexContent(string $type, string $title): void {
481481
$node = Node::load($nid);
482482

483483
/** @var \Drupal\node\NodeInterface $node */
484-
$translations = array_keys($node?->getTranslationLanguages());
484+
$translations = array_keys($node->getTranslationLanguages());
485485
$get_ids = static function (string $langcode) use ($nid) : string {
486486
return $nid . ':' . $langcode;
487487
};
@@ -571,9 +571,9 @@ public function elementAssertAttributeContains(string $selector, string $attribu
571571
*
572572
* @Given I run drush :command :arguments
573573
*/
574-
public function assertDrushCommandWithArgument($command, $arguments) {
574+
public function assertDrushCommandWithArgument(string $command, string $arguments): void {
575575
$this->drushOutput = $this->getDriver('drush')->$command($this->fixStepArgument($arguments));
576-
if (!isset($this->drushOutput)) {
576+
if (!empty($this->drushOutput)) {
577577
$this->drushOutput = TRUE;
578578
}
579579
}

0 commit comments

Comments
 (0)