Skip to content

Commit

Permalink
change docblocks to please phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
bircher committed Sep 14, 2020
1 parent 262f7e9 commit cd6c4ce
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 82 deletions.
4 changes: 1 addition & 3 deletions src/Driver/Cores/CoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Drupal\Driver\Cores\CoreInterface as OriginalCoreInterface;

/**
* Interface CoreInterface.
*
* @package NuvoleWeb\Drupal\Driver\Cores
* Adding more methods to the core interface.
*/
interface CoreInterface extends OriginalCoreInterface {

Expand Down
4 changes: 1 addition & 3 deletions src/Driver/Cores/Drupal6.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Drupal\Driver\Cores\Drupal6 as OriginalDrupal6;

/**
* Class Drupal6.
*
* @package NuvoleWeb\Drupal\Driver\Cores
* Extending the Drupal 6 direver.
*/
class Drupal6 extends OriginalDrupal6 {

Expand Down
4 changes: 1 addition & 3 deletions src/Driver/Cores/Drupal7.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Drupal\Driver\Cores\Drupal7 as OriginalDrupal7;

/**
* Class Drupal7.
*
* @package NuvoleWeb\Drupal\Driver\Cores
* Extending the Drupal 7 direver.
*/
class Drupal7 extends OriginalDrupal7 {

Expand Down
4 changes: 1 addition & 3 deletions src/Driver/Cores/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
use Webmozart\Assert\Assert;

/**
* Class Drupal8.
*
* @package NuvoleWeb\Drupal\Driver\Cores
* Extending the Drupal 8 direver with more methods.
*/
class Drupal8 extends OriginalDrupal8 implements CoreInterface {

Expand Down
4 changes: 1 addition & 3 deletions src/Driver/Objects/Drupal8/EditableConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use NuvoleWeb\Drupal\Driver\Objects\EditableConfigInterface;

/**
* Class EditableConfig.
*
* @package NuvoleWeb\Drupal\Driver\Objects\Drupal8
* Simple abstraction for editable config.
*/
class EditableConfig implements EditableConfigInterface {

Expand Down
4 changes: 1 addition & 3 deletions src/Driver/Objects/Drupal8/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use NuvoleWeb\Drupal\Driver\Objects\StateInterface;

/**
* Class State.
*
* @package NuvoleWeb\Drupal\Driver\Objects\Drupal8
* Simple state abstraction.
*/
class State implements StateInterface {

Expand Down
2 changes: 0 additions & 2 deletions src/Driver/Objects/EditableConfigInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace NuvoleWeb\Drupal\Driver\Objects;

/**
* Interface EditableConfigInterface.
*
* This is in essence an interface for Drupal 8s \Drupal\Core\Config\Config.
*/
interface EditableConfigInterface {
Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Component/PyStringYamlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use Symfony\Component\Yaml\Yaml;

/**
* Class PyStringYamlParser.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Component
* Our YAML parser.
*/
class PyStringYamlParser {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Component/RandomGeneratorComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace NuvoleWeb\Drupal\DrupalExtension\Component;

/**
* Class RandomGeneratorComponent.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Component
* Random generator component for easy test values.
*/
class RandomGeneratorComponent {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Component/ResolutionComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Webmozart\Assert\Assert;

/**
* Class ResolutionComponent.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Component
* Resolution component to work with screen resolutions.
*/
class ResolutionComponent {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/CKEditorContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Behat\MinkExtension\Context\RawMinkContext;

/**
* Class CKEditorContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* CKEditor Context step definitions.
*/
class CKEditorContext extends RawMinkContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/ChosenFieldContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use Behat\Mink\Exception\ExpectationException;

/**
* Class ChosenFieldContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Chosen context step definitions.
*/
class ChosenFieldContext extends RawMinkContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/ContentContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
use Webmozart\Assert\Assert;

/**
* Class ContentContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Content context step definitions.
*/
class ContentContext extends RawDrupalContext {

Expand Down
2 changes: 0 additions & 2 deletions src/DrupalExtension/Context/DrupalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* Extends Drupal Extension DrupalContext class.
*
* Load this context instead of Drupal\DrupalExtension\Context\DrupalContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
*/
class DrupalContext extends RawDrupalContext {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
use NuvoleWeb\Drupal\DrupalExtension\Context\ServiceContainerAwareInterface;

/**
* Class ServiceContainer.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context\Initializer
* Service Container Initializer gives easy access to the container.
*/
class ServiceContainerInitializer implements ContextInitializer {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/MenuContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
use Behat\Mink\Exception\ExpectationException;

/**
* Class MenuContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Menu context step definitions.
*/
class MenuContext extends RawDrupalContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/PositionContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Behat\Mink\Exception\ExpectationException;

/**
* Class PositionContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Position context to determine the order of elements.
*/
class PositionContext extends RawMinkContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/RawDrupalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Class RawDrupalContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* The raw drupal context extended with the service container.
*/
class RawDrupalContext extends OriginalRawDrupalContext implements ServiceContainerAwareInterface {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/RawMinkContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Class RawMinkContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Extended raw mink context with service container.
*/
class RawMinkContext extends OriginalRawMinkContext implements ServiceContainerAwareInterface {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/ResponsiveContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use Webmozart\Assert\Assert;

/**
* Class ResponsiveContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Responsive Context for responsive tests.
*/
class ResponsiveContext extends RawMinkContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/ScreenShotContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
use Behat\Testwork\Tester\Result\TestResult;

/**
* Class ScreenShotContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Screenshot context for taking screenshots.
*/
class ScreenShotContext extends RawMinkContext {

Expand Down
10 changes: 4 additions & 6 deletions src/DrupalExtension/Context/SelectFieldContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
use Behat\Mink\Exception\ExpectationException;

/**
* Class SelectFieldContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Select field context to work with select fields.
*/
class SelectFieldContext extends RawMinkContext {

Expand All @@ -24,7 +22,7 @@ public function assertSelectOptions($select, TableNode $options) {
throw new ExpectationException("Field '$select' not found.", $this->getSession());
}

/* @var \Behat\Mink\Element\NodeElement $field */
/** @var \Behat\Mink\Element\NodeElement $field */

// Check that the specified field is a <select> field.
$this->assertElementType($field, 'select');
Expand Down Expand Up @@ -62,7 +60,7 @@ public function assertNoSelectOptions($select, TableNode $options) {
throw new ExpectationException("Field '$select' not found.", $this->getSession());
}

/* @var \Behat\Mink\Element\NodeElement $field */
/** @var \Behat\Mink\Element\NodeElement $field */

// Check that the specified field is a <select> field.
$this->assertElementType($field, 'select');
Expand Down Expand Up @@ -128,7 +126,7 @@ protected function getSelectedOptionByLabel($select, $option_label, $check_selec
throw new ExpectationException("Field '$select' not found.", $this->getSession());
}

/* @var \Behat\Mink\Element\NodeElement $field */
/** @var \Behat\Mink\Element\NodeElement $field */

// Check that the specified field is a <select> field.
$this->assertElementType($field, 'select');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Interface ServiceContainerAwareInterface.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Define a service container aware interface.
*/
interface ServiceContainerAwareInterface {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/TaxonomyTermContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Behat\Mink\Exception\ExpectationException;

/**
* Class TaxonomyTermContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Taxonomy term context with sep definitions.
*/
class TaxonomyTermContext extends RawDrupalContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/Context/VisibilityContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
use Behat\Mink\Exception\UnsupportedDriverActionException;

/**
* Class VisibilityContext.
*
* @package NuvoleWeb\Drupal\DrupalExtension\Context
* Visibility context with step definitions.
*/
class VisibilityContext extends RawMinkContext {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/ServiceContainer/DrupalExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
use Drupal\DrupalExtension\ServiceContainer\DrupalExtension as OriginalDrupalExtension;

/**
* Class DrupalExtension.
*
* @package NuvoleWeb\Drupal\DrupalExtension\ServiceContainer
* Drupal extension which loads the service container.
*/
class DrupalExtension extends OriginalDrupalExtension {

Expand Down
4 changes: 1 addition & 3 deletions src/DrupalExtension/ServiceProvider/BehatServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;

/**
* Class BehatServiceProvider.
*
* @package NuvoleWeb\Drupal\DrupalExtension\ServiceProvider
* Behat service provider for getting parameter overrides.
*/
class BehatServiceProvider extends ServiceProviderBase {

Expand Down

0 comments on commit cd6c4ce

Please sign in to comment.