diff --git a/src/InmailAnalyzerResult.php b/src/InmailAnalyzerResult.php index c7a1f5c..8be5e93 100644 --- a/src/InmailAnalyzerResult.php +++ b/src/InmailAnalyzerResult.php @@ -2,7 +2,6 @@ namespace Drupal\inmail; -use Drupal\Component\Utility\NestedArray; use Drupal\Core\Plugin\Context\ContextInterface; /** @@ -24,7 +23,7 @@ class InmailAnalyzerResult implements AnalyzerResultInterface, InmailAnalyzerRes /** * An array of collected contexts for this this analyzer result. * - * @var \Drupal\Component\Plugin\Context\ContextInterface[] + * @var \Drupal\Core\Plugin\Context\ContextInterface[] */ protected $contexts = []; diff --git a/src/InmailAnalyzerResultInterface.php b/src/InmailAnalyzerResultInterface.php index 3bb02e4..907a4b2 100644 --- a/src/InmailAnalyzerResultInterface.php +++ b/src/InmailAnalyzerResultInterface.php @@ -113,16 +113,16 @@ interface InmailAnalyzerResultInterface { /** * Gets the values for all defined contexts. * - * @return \Drupal\Component\Plugin\Context\ContextInterface[] + * @return \Drupal\Core\Plugin\Context\ContextInterface[] * An array of set contexts, keyed by context name. */ public function getContexts(); /** - * Returns a specific context from available contexts. + * Gets a specific context from the list of available contexts. * * @param string $name - * The name of the context to get. + * The name of the context to return. * * @return \Drupal\Core\Plugin\Context\ContextInterface|null $context * Requested context object or NULL if not found. @@ -130,13 +130,13 @@ interface InmailAnalyzerResultInterface { public function getContext($name); /** - * A flag whether given context name exist. + * Returns whether the context exists. * * @param string $name * The name of the context. * * @return bool - * TRUE if context exists. Otherwise, FALSE. + * TRUE if the context exists. Otherwise, FALSE. */ public function hasContext($name);