Commit d87ade36 authored by jhodgdon's avatar jhodgdon

Issue #2572643 by alexpott, attiks, Jelle_S, jhodgdon: Fix...

Issue #2572643 by alexpott, attiks, Jelle_S, jhodgdon: Fix Drupal.Commenting.FileComment coding standard
parent dd0beee2
<?php
/**
* @file
* API functions for installing Drupal.
*/
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Config\BootstrapConfigStorageFactory;
......@@ -28,11 +33,6 @@
use Drupal\user\Entity\User;
use GuzzleHttp\Exception\RequestException;
/**
* @file
* API functions for installing Drupal.
*/
/**
* Do not run the task during the current installation request.
*
......
<?php
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Url;
use Drupal\Component\Utility\UrlHelper;
/**
* @file
* Functions to aid in the creation of sortable tables.
......@@ -13,6 +9,10 @@
* column.
*/
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Url;
use Drupal\Component\Utility\UrlHelper;
/**
* Initializes the table sort context.
*/
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\Bridge\ZfExtensionManagerSfContainer.
*/
namespace Drupal\Component\Bridge;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\Datetime\DateTimePlus.
*/
namespace Drupal\Component\Datetime;
use Drupal\Component\Utility\ToStringTrait;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\PhpStorage\MTimeProtectedFileStorage.
*/
namespace Drupal\Component\PhpStorage;
/**
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\Utility\Number.
*/
namespace Drupal\Component\Utility;
/**
......
<?php
// @codingStandardsIgnoreFile
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\Core\Config\Entity\ConfigDependencyDeleteFormTrait.
*/
namespace Drupal\Core\Config\Entity;
use Drupal\Core\Config\ConfigManagerInterface;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Controller\TitleResolverInterface.
*/
namespace Drupal\Core\Controller;
use Symfony\Component\Routing\Route;
......
......@@ -14,6 +14,7 @@
* translation should be hard-coded and wrapped in t() so the translation system
* will be able to process them.
*/
namespace Drupal\Core\Datetime;
/**
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Datetime\DrupalDateTime.
*/
namespace Drupal\Core\Datetime;
use Drupal\Component\Datetime\DateTimePlus;
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteEnhancers.
*/
namespace Drupal\Core\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteFilters.
*/
namespace Drupal\Core\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\Core\Entity\Query\Sql\pgsql\QueryFactory.
*/
namespace Drupal\Core\Entity\Query\Sql\pgsql;
use Drupal\Core\Entity\Query\Sql\QueryFactory as BaseQueryFactory;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Menu\LocalActionManagerInterface.
*/
namespace Drupal\Core\Menu;
use Drupal\Component\Plugin\PluginManagerInterface;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Menu\LocalTaskManagerInterface.
*/
namespace Drupal\Core\Menu;
use Drupal\Component\Plugin\PluginManagerInterface;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\block_content\Tests\Views\RevisionRelationshipsTest.
*/
namespace Drupal\block_content\Tests\Views;
use Drupal\block_content\Entity\BlockContentType;
......
<?php
use Drupal\comment\CommentInterface;
use Drupal\Core\Url;
/**
* @file
* Hooks provided by the Comment module.
*/
use Drupal\comment\CommentInterface;
use Drupal\Core\Url;
/**
* @addtogroup hooks
* @{
......
<?php
/**
* @file
* Field API documentation.
*/
/**
* @addtogroup hooks
* @{
......
<?php
use Drupal\field\FieldStorageConfigInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\field\Entity\FieldStorageConfig;
/**
* @file
* Helper module for the Field API tests.
......@@ -17,6 +13,10 @@
* test helper functions
*/
use Drupal\field\FieldStorageConfigInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\field\Entity\FieldStorageConfig;
require_once __DIR__ . '/field_test.entity.inc';
require_once __DIR__ . '/field_test.field.inc';
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldEmptyFormatter.
*/
namespace Drupal\field_test\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
......
......@@ -5,6 +5,7 @@
*
* Contains \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldNoSettingsFormatter.
*/
namespace Drupal\field_test\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
......
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Form\FormStateInterface;
/**
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\filter\Plugin\migrate\process\d6\FilterFormatPermission.
*/
namespace Drupal\filter\Plugin\migrate\process\d6;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
......
......@@ -3,6 +3,7 @@
* @file
* Contains \Drupal\forum\ForumIndexStorageInterface.
*/
namespace Drupal\forum;
use Drupal\node\NodeInterface;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\language\Tests\LanguageConfigOverrideInstallTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source\MenuLinkSourceTest.
*/
namespace Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source;
use Drupal\Component\Utility\Unicode;
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\migrate\Plugin\migrate\process\MenuLinkContent.
*/
namespace Drupal\migrate\Plugin\migrate\process;
use Drupal\Core\Entity\EntityStorageInterface;
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest.
*/
namespace Drupal\Tests\migrate\Unit\process;
use Drupal\migrate\Plugin\migrate\process\SkipOnEmpty;
......
<?php
use Drupal\node\NodeInterface;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Access\AccessResult;
/**
* @file
* Hooks specific to the Node module.
*/
use Drupal\node\NodeInterface;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Access\AccessResult;
/**
* @addtogroup hooks
* @{
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\node\Tests\Views\RevisionRelationshipsTest.
*/
namespace Drupal\node\Tests\Views;
use Drupal\views\Views;
......
......@@ -5,7 +5,6 @@
* Contains \Drupal\options\Tests\OptionsFieldUnitTestBase.
*/
namespace Drupal\options\Tests;
use Drupal\field\Tests\FieldUnitTestBase;
......
<?php
use Drupal\Core\Database\Query\AlterableInterface;
/**
* @file
* Test module that alters search queries.
*/
use Drupal\Core\Database\Query\AlterableInterface;
/**
* Implements hook_query_TAG_alter(): tag search_$type with $type node_search.
*/
......
<?php
// @codingStandardsIgnoreFile
print 'SimpleTest PHP was executed!';
?>
<?php
// @codingStandardsIgnoreFile
print 'SimpleTest PHP was executed!';
<?php
/**
* @file
* Provides testing functionality.
*/
use Drupal\Core\Asset\AttachedAssetsInterface;
use Drupal\Core\Database\Database;
use Drupal\Core\Render\Element;
......@@ -8,11 +13,6 @@
use Drupal\simpletest\TestDiscovery;
use Symfony\Component\Process\PhpExecutableFinder;
/**
* @file
* Provides testing functionality.
*/
/**
* Implements hook_help().
*/
......
<?php
/**
* @file
* Contains \Drupal\Tests\simpletest\Unit\SimpletestPhpunitRunCommandTestWillDie.
*/
namespace Drupal\Tests\simpletest\Unit;
use Drupal\Tests\UnitTestCase;
......
<?php
/**
* @file
* Install hooks for test module.
*/
/**
* Implements hook_install().
*/
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\system\Tests\Entity\EntityQueryAggregateTest.
*/
namespace Drupal\system\Tests\Entity;
use Drupal\field\Entity\FieldStorageConfig;
......
<?php
/**
* @file
* Test fixture.
*/
use Drupal\Core\Database\Database;
......
<?php
/**
* @file
* Test fixture.
*/
$connection = Drupal\Core\Database\Database::getConnection();
$config = $connection;
......
<?php
/**
* @file
* Database test module.
*/
use Drupal\Core\Database\Query\AlterableInterface;
/**
......
<?php
/**
* @file
* Include file for test module.
*/
/**
* Implements hook_views_data_alter().
*/
......
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Extension\Extension;
/**
......
<?php
/**
* @file
* Include file for test module.
*/
/**
* Implements hook_altered_test_hook().
*
......
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Extension\Extension;
/**
......
<?php
/**
* @file
* Post update functions for test module.
*/
/**
* Test post update function.
*/
......
<?php
/**
* @file
* Install hooks for test module.
*/
/**
* Implements hook_requirements().
*/
......
<?php
/**
* @file
* Test module.
*/
/**
* Implements hook_user_login().
*/
......
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Extension\Extension;
use Drupal\Core\Routing\RouteMatchInterface;
......
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Extension\Extension;
/**
......
<?php
/**
* @file
* Include file for test module.
*/
/**
* Returns HTML for the 'theme_test' theme hook used by tests.
*/
......
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Extension\Extension;
/**
......
<?php
/**
* @file
* Test module.
*/
/**
* Implements hook_theme().
*/
......
<?php
/**
* @file
* Post update functions for test module.
*/
/**
* First update, should not be run since this module's update hooks fail.
*/
......
<?php
/**
* @file
* Install hooks for test module.
*/
/**
* Normal update_N() function.
*/
......
<?php
/**
* @file
* Post update functions for test module.
*/
/**
* First update.
*/
......
<?php
/**
* @file
* Install hooks for test module.
*/
/**
* Implements hook_install().
*/
......
......@@ -4,6 +4,7 @@
* @file
* Add hooks for tests to use.
*/
use Drupal\views\Plugin\views\cache\CachePluginBase;
use Drupal\views\ViewExecutable;
......
<?php
/**
* @file
* Test theme.
*/
/**
* Implements hook_preprocess_theme_test_template_test().
*/
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\taxonomy\Tests\VocabularyTranslationTest.
*/
namespace Drupal\taxonomy\Tests;
use Drupal\Component\Utility\Unicode;
......
......@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\text\Plugin\Field\FieldFormatter\TextTrimmedFormatter.
*/
namespace Drupal\text\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
......
<?php
/**
* @file
* Test module.
*/
/**
* Implements hook_toolbar_alter().
*/
......
......@@ -4,6 +4,7 @@
* @file
* Hooks provided by the toolbar module.
*/
use Drupal\Core\Url;
/**
......