Skip to content

Commit

Permalink
Merge pull request #82 from jhedstrom/fix-phpcs
Browse files Browse the repository at this point in the history
Fix phpcs
  • Loading branch information
jhedstrom committed Apr 8, 2016
2 parents 3bd2404 + 46307da commit c4c1f48
Show file tree
Hide file tree
Showing 34 changed files with 5 additions and 166 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ script:
- find ./src -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
- phpunit
- vendor/bin/phpspec run -f pretty --no-interaction
- ./vendor/bin/phpcs --standard=./phpcs-ruleset.xml --ignore=./vendor --ignore=./doc --ignore=./spec .
# Don't test coding on php 5.3.
- test ${TRAVIS_PHP_VERSION} == "5.3" || ./vendor/bin/phpcs --standard=./phpcs-ruleset.xml --ignore=./vendor --ignore=./doc --ignore=./spec --ignore=./drush .

# Enable Travis containers.
sudo: false
5 changes: 0 additions & 5 deletions src/Drupal/Component/Utility/Random.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Component\Utility\Random.
*/

namespace Drupal\Component\Utility;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/BaseDriver.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\BaseDriver.
*/

namespace Drupal\Driver;

use Drupal\Driver\Exception\UnsupportedDriverActionException;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/BlackboxDriver.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\BlackboxDriver.
*/

namespace Drupal\Driver;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Cores/AbstractCore.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Cores\AbstractCore.
*/

namespace Drupal\Driver\Cores;

use Drupal\Component\Utility\Random;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Cores/CoreInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Cores\CoreInterface.
*/

namespace Drupal\Driver\Cores;

use Drupal\Component\Utility\Random;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Cores/Drupal6.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Cores\Drupal6.
*/

namespace Drupal\Driver\Cores;

use Drupal\Driver\Exception\BootstrapException;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Cores/Drupal7.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Cores\Drupal7.
*/

namespace Drupal\Driver\Cores;

use Drupal\Driver\Exception\BootstrapException;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Cores/Drupal8.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Cores\Drupal8.
*/

namespace Drupal\Driver\Cores;

use Drupal\Core\DrupalKernel;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/DriverInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\DriverInterface.
*/

namespace Drupal\Driver;

/**
Expand Down
6 changes: 0 additions & 6 deletions src/Drupal/Driver/DrupalDriver.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<?php

/**
* @file
* Contains \Drupal\Driver\DrupalDriver.
*/

namespace Drupal\Driver;

use Drupal\Driver\Exception\BootstrapException;
use Drupal\Driver\SubDriverFinderInterface;

use Behat\Behat\Tester\Exception\PendingException;

Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Exception/BootstrapException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Exception\BootstrapException.
*/

namespace Drupal\Driver\Exception;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Exception/Exception.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Exception\Exception.
*/

namespace Drupal\Driver\Exception;

use Drupal\Driver\DriverInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Exception\UnsupportedDriverActionException.
*/

namespace Drupal\Driver\Exception;

use Drupal\Driver\DriverInterface;
Expand All @@ -13,6 +8,7 @@
* Unsupported driver action.
*/
class UnsupportedDriverActionException extends Exception {

/**
* Initializes exception.
*
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal6/TaxonomyHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal6\TaxonomyHandler.
*/

namespace Drupal\Driver\Fields\Drupal6;

use Drupal\Driver\Fields\FieldHandlerInterface;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/AbstractHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\AbstractFieldHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

use Drupal\Driver\Fields\FieldHandlerInterface;
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/DatetimeHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\DatetimeHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/DefaultHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\DefaultFieldHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/EntityreferenceHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\EntityreferenceHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/ImageHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\ImageHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/LinkFieldHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\LinkFieldHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/ListBooleanHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\ListBooleanHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal7/ListTextHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\ListTextHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\TaxonomyTermReferenceHandler.
*/

namespace Drupal\Driver\Fields\Drupal7;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal8/AbstractHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal8\AbstractFieldHandler.
*/

namespace Drupal\Driver\Fields\Drupal8;

use Drupal\Driver\Fields\FieldHandlerInterface;
Expand Down
6 changes: 1 addition & 5 deletions src/Drupal/Driver/Fields/Drupal8/DatetimeHandler.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal8\DatetimeHandler.
*/

namespace Drupal\Driver\Fields\Drupal8;

/**
* Datetime field handler for Drupal 8.
*/
class DatetimeHandler extends AbstractHandler {

/**
* {@inheritdoc}
*/
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal8/DefaultHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal7\DefaultFieldHandler.
*/

namespace Drupal\Driver\Fields\Drupal8;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/Fields/Drupal8/EntityReferenceHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal8\EntityReferenceHandler.
*/

namespace Drupal\Driver\Fields\Drupal8;

/**
Expand Down
6 changes: 1 addition & 5 deletions src/Drupal/Driver/Fields/Drupal8/LinkHandler.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal8\LinkHandler.
*/

namespace Drupal\Driver\Fields\Drupal8;

/**
* Link field handler for Drupal 8.
*/
class LinkHandler extends AbstractHandler {

/**
* {@inheritdoc}
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\Fields\Drupal8\TaxonomyTermReferenceHandler.
*/

namespace Drupal\Driver\Fields\Drupal8;

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Drupal/Driver/Fields/FieldHandlerInterface.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Driver\Fields\FieldHandlerInterface.
*/

namespace Drupal\Driver\Fields;

Expand Down
5 changes: 0 additions & 5 deletions src/Drupal/Driver/SubDriverFinderInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Driver\SubDriverFinderInterface.
*/

namespace Drupal\Driver;

/**
Expand Down
5 changes: 0 additions & 5 deletions tests/Drupal/Tests/Driver/Drupal7FieldHandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Tests\Driver\Drupal7FieldHandlerTest.
*/

namespace Drupal\Tests\Driver;

/**
Expand Down
5 changes: 0 additions & 5 deletions tests/Drupal/Tests/Driver/FieldHandlerAbstractTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

/**
* @file
* Contains \Drupal\Tests\Driver\FieldHandlerAbstractTest.
*/

namespace Drupal\Tests\Driver;

/**
Expand Down

0 comments on commit c4c1f48

Please sign in to comment.