Commit 3cee107c authored by alexpott's avatar alexpott

Issue #2100329 by cosmicdreams: Use \Drupal instead of Drupal to make IDEs and...

Issue #2100329 by cosmicdreams: Use \Drupal instead of Drupal to make IDEs and static code analyse tools happy.
parent bc44cbda
...@@ -2277,7 +2277,7 @@ function _drupal_load_test_overrides($test_prefix) { ...@@ -2277,7 +2277,7 @@ function _drupal_load_test_overrides($test_prefix) {
global $conf, $config_directories; global $conf, $config_directories;
// Do not use the parent site's config directories. Use only the child site's. // Do not use the parent site's config directories. Use only the child site's.
// @see Drupal\simpletest\TestBase::prepareConfigDirectories() // @see \Drupal\simpletest\TestBase::prepareConfigDirectories()
$path_prefix = 'simpletest/' . substr($test_prefix, 10); $path_prefix = 'simpletest/' . substr($test_prefix, 10);
$config_directories = array(); $config_directories = array();
foreach (array(CONFIG_ACTIVE_DIRECTORY, CONFIG_STAGING_DIRECTORY) as $type) { foreach (array(CONFIG_ACTIVE_DIRECTORY, CONFIG_STAGING_DIRECTORY) as $type) {
...@@ -2353,7 +2353,7 @@ function drupal_language_initialize() { ...@@ -2353,7 +2353,7 @@ function drupal_language_initialize() {
/** /**
* Returns the language object for a given language type. * Returns the language object for a given language type.
* *
* @see Drupal\Core\Language\LanguageManager * @see \Drupal\Core\Language\LanguageManager
* *
* @param string $type * @param string $type
* The type of language object needed, e.g. Language::TYPE_INTERFACE. * The type of language object needed, e.g. Language::TYPE_INTERFACE.
...@@ -2561,7 +2561,7 @@ function language_is_locked($langcode) { ...@@ -2561,7 +2561,7 @@ function language_is_locked($langcode) {
/** /**
* Returns the default language used on the site. * Returns the default language used on the site.
* *
* @return Drupal\Core\Language\Language * @return \Drupal\Core\Language\Language
* A language object. * A language object.
*/ */
function language_default() { function language_default() {
...@@ -3086,7 +3086,7 @@ function drupal_check_memory_limit($required, $memory_limit = NULL) { ...@@ -3086,7 +3086,7 @@ function drupal_check_memory_limit($required, $memory_limit = NULL) {
* @deprecated Use \Drupal::lock() instead, or even better have the lock service * @deprecated Use \Drupal::lock() instead, or even better have the lock service
* injected into your object. * injected into your object.
* *
* @return Drupal\Core\Lock\LockBackendInterface * @return \Drupal\Core\Lock\LockBackendInterface
*/ */
function lock() { function lock() {
return \Drupal::lock(); return \Drupal::lock();
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
* The cache bin for which the cache object should be returned, defaults to * The cache bin for which the cache object should be returned, defaults to
* 'cache'. * 'cache'.
* *
* @return Drupal\Core\Cache\CacheBackendInterface * @return \Drupal\Core\Cache\CacheBackendInterface
* The cache object associated with the specified bin. * The cache object associated with the specified bin.
* *
* @see Drupal\Core\Cache\CacheBackendInterface * @see \Drupal\Core\Cache\CacheBackendInterface
*/ */
function cache($bin = 'cache') { function cache($bin = 'cache') {
return \Drupal::cache($bin); return \Drupal::cache($bin);
......
...@@ -297,7 +297,7 @@ function drupal_get_profile() { ...@@ -297,7 +297,7 @@ function drupal_get_profile() {
* @deprecated This will be removed in 8.0. Instead, register a new breadcrumb * @deprecated This will be removed in 8.0. Instead, register a new breadcrumb
* builder service. * builder service.
* *
* @see Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface * @see \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface
*/ */
function drupal_set_breadcrumb($breadcrumb = NULL) { function drupal_set_breadcrumb($breadcrumb = NULL) {
$stored_breadcrumb = &drupal_static(__FUNCTION__); $stored_breadcrumb = &drupal_static(__FUNCTION__);
...@@ -3135,8 +3135,8 @@ function _drupal_bootstrap_code() { ...@@ -3135,8 +3135,8 @@ function _drupal_bootstrap_code() {
* *
* DrupalKernel skips this and replicates it via event listeners. * DrupalKernel skips this and replicates it via event listeners.
* *
* @see Drupal\Core\EventSubscriber\PathSubscriber; * @see \Drupal\Core\EventSubscriber\PathSubscriber;
* @see Drupal\Core\EventSubscriber\LegacyRequestSubscriber; * @see \Drupal\Core\EventSubscriber\LegacyRequestSubscriber;
*/ */
function _drupal_bootstrap_full($skip = FALSE) { function _drupal_bootstrap_full($skip = FALSE) {
static $called = FALSE; static $called = FALSE;
...@@ -4949,7 +4949,7 @@ function archiver_get_archiver($file) { ...@@ -4949,7 +4949,7 @@ function archiver_get_archiver($file) {
* @return array * @return array
* The Drupal Updater class registry. * The Drupal Updater class registry.
* *
* @see Drupal\Core\Updater\Updater * @see \Drupal\Core\Updater\Updater
* @see hook_updater_info() * @see hook_updater_info()
* @see hook_updater_info_alter() * @see hook_updater_info_alter()
*/ */
...@@ -4969,7 +4969,7 @@ function drupal_get_updaters() { ...@@ -4969,7 +4969,7 @@ function drupal_get_updaters() {
* @return * @return
* The Drupal FileTransfer class registry. * The Drupal FileTransfer class registry.
* *
* @see Drupal\Core\FileTransfer\FileTransfer * @see \Drupal\Core\FileTransfer\FileTransfer
* @see hook_filetransfer_info() * @see hook_filetransfer_info()
* @see hook_filetransfer_info_alter() * @see hook_filetransfer_info_alter()
*/ */
......
...@@ -102,7 +102,7 @@ function config_uninstall_default_config($type, $name) { ...@@ -102,7 +102,7 @@ function config_uninstall_default_config($type, $name) {
/** /**
* Gets configuration object names starting with a given prefix. * Gets configuration object names starting with a given prefix.
* *
* @see Drupal\Core\Config\StorageInterface::listAll() * @see \Drupal\Core\Config\StorageInterface::listAll()
*/ */
function config_get_storage_names_with_prefix($prefix = '') { function config_get_storage_names_with_prefix($prefix = '') {
return drupal_container()->get('config.storage')->listAll($prefix); return drupal_container()->get('config.storage')->listAll($prefix);
...@@ -123,7 +123,7 @@ function config_get_storage_names_with_prefix($prefix = '') { ...@@ -123,7 +123,7 @@ function config_get_storage_names_with_prefix($prefix = '') {
* config object returned will contain the contents of book.admin * config object returned will contain the contents of book.admin
* configuration file. * configuration file.
* *
* @return Drupal\Core\Config\Config * @return \Drupal\Core\Config\Config
* A configuration object. * A configuration object.
*/ */
function config($name) { function config($name) {
...@@ -219,9 +219,9 @@ function config_get_entity_type_by_name($name) { ...@@ -219,9 +219,9 @@ function config_get_entity_type_by_name($name) {
* *
* Use the typed data manager service for creating typed configuration objects. * Use the typed data manager service for creating typed configuration objects.
* *
* @see Drupal\Core\TypedData\TypedDataManager::create() * @see \Drupal\Core\TypedData\TypedDataManager::create()
* *
* @return Drupal\Core\TypedData\TypedConfigManager * @return \Drupal\Core\TypedData\TypedConfigManager
*/ */
function config_typed() { function config_typed() {
return drupal_container()->get('config.typed'); return drupal_container()->get('config.typed');
...@@ -230,9 +230,9 @@ function config_typed() { ...@@ -230,9 +230,9 @@ function config_typed() {
/** /**
* Creates a configuration snapshot following a successful import. * Creates a configuration snapshot following a successful import.
* *
* @param Drupal\Core\Config\StorageInterface $source_storage * @param \Drupal\Core\Config\StorageInterface $source_storage
* The storage to synchronize configuration from. * The storage to synchronize configuration from.
* @param Drupal\Core\Config\StorageInterface $snapshot_storage * @param \Drupal\Core\Config\StorageInterface $snapshot_storage
* The storage to synchronize configuration to. * The storage to synchronize configuration to.
*/ */
function config_import_create_snapshot(StorageInterface $source_storage, StorageInterface $snapshot_storage) { function config_import_create_snapshot(StorageInterface $source_storage, StorageInterface $snapshot_storage) {
...@@ -245,9 +245,9 @@ function config_import_create_snapshot(StorageInterface $source_storage, Storage ...@@ -245,9 +245,9 @@ function config_import_create_snapshot(StorageInterface $source_storage, Storage
/** /**
* Return a formatted diff of a named config between two storages. * Return a formatted diff of a named config between two storages.
* *
* @param Drupal\Core\Config\StorageInterface $source_storage * @param \Drupal\Core\Config\StorageInterface $source_storage
* The storage to diff configuration from. * The storage to diff configuration from.
* @param Drupal\Core\Config\StorageInterface $target_storage * @param \Drupal\Core\Config\StorageInterface $target_storage
* The storage to diff configuration to. * The storage to diff configuration to.
* @param string $name * @param string $name
* The name of the configuration object to diff. * The name of the configuration object to diff.
......
...@@ -192,7 +192,7 @@ function entity_get_view_modes($entity_type = NULL) { ...@@ -192,7 +192,7 @@ function entity_get_view_modes($entity_type = NULL) {
* @param bool $reset * @param bool $reset
* Whether to reset the internal cache for the requested entity type. * Whether to reset the internal cache for the requested entity type.
* *
* @return Drupal\Core\Entity\EntityInterface * @return \Drupal\Core\Entity\EntityInterface
* The entity object, or NULL if there is no entity with the given id. * The entity object, or NULL if there is no entity with the given id.
* *
* @see \Drupal\Core\Entity\EntityManager * @see \Drupal\Core\Entity\EntityManager
...@@ -216,7 +216,7 @@ function entity_load($entity_type, $id, $reset = FALSE) { ...@@ -216,7 +216,7 @@ function entity_load($entity_type, $id, $reset = FALSE) {
* @param int $revision_id * @param int $revision_id
* The id of the entity to load. * The id of the entity to load.
* *
* @return Drupal\Core\Entity\EntityInterface * @return \Drupal\Core\Entity\EntityInterface
* The entity object, or FALSE if there is no entity with the given revision * The entity object, or FALSE if there is no entity with the given revision
* id. * id.
* *
...@@ -259,7 +259,7 @@ function entity_revision_delete($entity_type, $revision_id) { ...@@ -259,7 +259,7 @@ function entity_revision_delete($entity_type, $revision_id) {
* @return EntityInterface|FALSE * @return EntityInterface|FALSE
* The entity object, or FALSE if there is no entity with the given UUID. * The entity object, or FALSE if there is no entity with the given UUID.
* *
* @throws Drupal\Core\Entity\EntityStorageException * @throws \Drupal\Core\Entity\EntityStorageException
* Thrown in case the requested entity type does not support UUIDs. * Thrown in case the requested entity type does not support UUIDs.
* *
* @see \Drupal\Core\Entity\EntityManager * @see \Drupal\Core\Entity\EntityManager
...@@ -383,7 +383,7 @@ function entity_delete_multiple($entity_type, array $ids) { ...@@ -383,7 +383,7 @@ function entity_delete_multiple($entity_type, array $ids) {
* An array of values to set, keyed by property name. If the entity type has * An array of values to set, keyed by property name. If the entity type has
* bundles the bundle key has to be specified. * bundles the bundle key has to be specified.
* *
* @return Drupal\Core\Entity\EntityInterface * @return \Drupal\Core\Entity\EntityInterface
* A new entity object. * A new entity object.
*/ */
function entity_create($entity_type, array $values) { function entity_create($entity_type, array $values) {
...@@ -395,7 +395,7 @@ function entity_create($entity_type, array $values) { ...@@ -395,7 +395,7 @@ function entity_create($entity_type, array $values) {
/** /**
* Gets the entity controller class for an entity type. * Gets the entity controller class for an entity type.
* *
* @return Drupal\Core\Entity\EntityStorageControllerInterface * @return \Drupal\Core\Entity\EntityStorageControllerInterface
* *
* @deprecated Use \Drupal\Core\Entity\EntityManager::getStorageController(). * @deprecated Use \Drupal\Core\Entity\EntityManager::getStorageController().
*/ */
...@@ -410,7 +410,7 @@ function entity_get_controller($entity_type) { ...@@ -410,7 +410,7 @@ function entity_get_controller($entity_type) {
* This is a wrapper for Drupal\Core\Entity\EntityInterface::label(). This function * This is a wrapper for Drupal\Core\Entity\EntityInterface::label(). This function
* should only be used as a callback, e.g. for menu title callbacks. * should only be used as a callback, e.g. for menu title callbacks.
* *
* @param Drupal\Core\Entity\EntityInterface $entity * @param \Drupal\Core\Entity\EntityInterface $entity
* The entity for which to generate the label. * The entity for which to generate the label.
* @param $langcode * @param $langcode
* (optional) The language code of the language that should be used for * (optional) The language code of the language that should be used for
...@@ -420,7 +420,7 @@ function entity_get_controller($entity_type) { ...@@ -420,7 +420,7 @@ function entity_get_controller($entity_type) {
* @return * @return
* The label of the entity, or NULL if there is no label defined. * The label of the entity, or NULL if there is no label defined.
* *
* @see Drupal\Core\Entity\EntityInterface::label() * @see \Drupal\Core\Entity\EntityInterface::label()
*/ */
function entity_page_label(EntityInterface $entity, $langcode = NULL) { function entity_page_label(EntityInterface $entity, $langcode = NULL) {
return $entity->label($langcode); return $entity->label($langcode);
...@@ -460,7 +460,7 @@ function entity_access_controller($entity_type) { ...@@ -460,7 +460,7 @@ function entity_access_controller($entity_type) {
* identifying the controlled form. Defaults to 'default' which is the usual * identifying the controlled form. Defaults to 'default' which is the usual
* create/edit form. * create/edit form.
* *
* @return Drupal\Core\Entity\EntityFormControllerInterface * @return \Drupal\Core\Entity\EntityFormControllerInterface
* An entity form controller instance. * An entity form controller instance.
* *
* @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController(). * @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController().
...@@ -541,7 +541,7 @@ function entity_get_form(EntityInterface $entity, $operation = 'default', array ...@@ -541,7 +541,7 @@ function entity_get_form(EntityInterface $entity, $operation = 'default', array
* @param string $entity_type * @param string $entity_type
* The type of the entity. * The type of the entity.
* *
* @return Drupal\Core\Entity\EntityListControllerInterface * @return \Drupal\Core\Entity\EntityListControllerInterface
* An entity list controller. * An entity list controller.
* *
* @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController(). * @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController().
...@@ -557,7 +557,7 @@ function entity_list_controller($entity_type) { ...@@ -557,7 +557,7 @@ function entity_list_controller($entity_type) {
* @param string $entity_type * @param string $entity_type
* The type of the entity. * The type of the entity.
* *
* @return Drupal\Core\Entity\EntityRenderControllerInterface * @return \Drupal\Core\Entity\EntityRenderControllerInterface
* An entity render controller. * An entity render controller.
* *
* @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController(). * @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController().
...@@ -570,7 +570,7 @@ function entity_render_controller($entity_type) { ...@@ -570,7 +570,7 @@ function entity_render_controller($entity_type) {
/** /**
* Returns the render array for an entity. * Returns the render array for an entity.
* *
* @param Drupal\Core\Entity\EntityInterface $entity * @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to be rendered. * The entity to be rendered.
* @param string $view_mode * @param string $view_mode
* The view mode that should be used to display the entity. * The view mode that should be used to display the entity.
......
...@@ -1350,7 +1350,7 @@ function drupal_unlink($uri, $context = NULL) { ...@@ -1350,7 +1350,7 @@ function drupal_unlink($uri, $context = NULL) {
* @return string|false * @return string|false
* The absolute local filepath (with no symbolic links), or FALSE on failure. * The absolute local filepath (with no symbolic links), or FALSE on failure.
* *
* @see Drupal\Core\StreamWrapper\StreamWrapperInterface::realpath() * @see \Drupal\Core\StreamWrapper\StreamWrapperInterface::realpath()
* @see http://php.net/manual/function.realpath.php * @see http://php.net/manual/function.realpath.php
* @ingroup php_wrappers * @ingroup php_wrappers
*/ */
......
...@@ -1467,7 +1467,7 @@ function install_find_translations() { ...@@ -1467,7 +1467,7 @@ function install_find_translations() {
/** /**
* Build a file translation service for installation. * Build a file translation service for installation.
* *
* @return Drupal\Core\StringTranslation\Translator\FileTranslation * @return \Drupal\Core\StringTranslation\Translator\FileTranslation
* File translation service for the installer. * File translation service for the installer.
*/ */
function install_file_translation_service() { function install_file_translation_service() {
......
...@@ -206,7 +206,7 @@ function drupal_mail($module, $key, $to, $langcode, $params = array(), $from = N ...@@ -206,7 +206,7 @@ function drupal_mail($module, $key, $to, $langcode, $params = array(), $from = N
* A key to identify the e-mail sent. The final e-mail ID for the e-mail * A key to identify the e-mail sent. The final e-mail ID for the e-mail
* alter hook in drupal_mail() would have been {$module}_{$key}. * alter hook in drupal_mail() would have been {$module}_{$key}.
* *
* @return Drupal\Core\Mail\MailInterface * @return \Drupal\Core\Mail\MailInterface
* An object that implements Drupal\Core\Mail\MailInterface. * An object that implements Drupal\Core\Mail\MailInterface.
* *
* @throws \Exception * @throws \Exception
......
...@@ -321,7 +321,7 @@ function module_set_weight($module, $weight) { ...@@ -321,7 +321,7 @@ function module_set_weight($module, $weight) {
->save(); ->save();
// Prepare the new module list, sorted by weight, including filenames. // Prepare the new module list, sorted by weight, including filenames.
// @see Drupal\Core\Extension\ModuleHandler::install() // @see \Drupal\Core\Extension\ModuleHandler::install()
$module_handler = \Drupal::moduleHandler(); $module_handler = \Drupal::moduleHandler();
$current_module_filenames = $module_handler->getModuleList(); $current_module_filenames = $module_handler->getModuleList();
$current_modules = array_fill_keys(array_keys($current_module_filenames), 0); $current_modules = array_fill_keys(array_keys($current_module_filenames), 0);
......
...@@ -1054,7 +1054,7 @@ function update_get_update_list() { ...@@ -1054,7 +1054,7 @@ function update_get_update_list() {
* - 'module': The name of the module that this update function belongs to. * - 'module': The name of the module that this update function belongs to.
* - 'number': The number of this update function within that module. * - 'number': The number of this update function within that module.
* *
* @see Drupal\Component\Graph\Graph::searchAndSort() * @see \Drupal\Component\Graph\Graph::searchAndSort()
*/ */
function update_resolve_dependencies($starting_updates) { function update_resolve_dependencies($starting_updates) {
// Obtain a dependency graph for the requested update functions. // Obtain a dependency graph for the requested update functions.
...@@ -1170,7 +1170,7 @@ function update_get_update_function_list($starting_updates) { ...@@ -1170,7 +1170,7 @@ function update_get_update_function_list($starting_updates) {
* - 'module': The name of the module that this update function belongs to. * - 'module': The name of the module that this update function belongs to.
* - 'number': The number of this update function within that module. * - 'number': The number of this update function within that module.
* *
* @see Drupal\Component\Graph\Graph::searchAndSort() * @see \Drupal\Component\Graph\Graph::searchAndSort()
* @see update_resolve_dependencies() * @see update_resolve_dependencies()
*/ */
function update_build_dependency_graph($update_functions) { function update_build_dependency_graph($update_functions) {
......
...@@ -19,7 +19,7 @@ interface ArchiverInterface { ...@@ -19,7 +19,7 @@ interface ArchiverInterface {
* The full system path of the file or directory to add. Only local files * The full system path of the file or directory to add. Only local files
* and directories are supported. * and directories are supported.
* *
* @return Drupal\Component\Archiver\ArchiverInterface * @return \Drupal\Component\Archiver\ArchiverInterface
* The called object. * The called object.
*/ */
public function add($file_path); public function add($file_path);
...@@ -30,7 +30,7 @@ public function add($file_path); ...@@ -30,7 +30,7 @@ public function add($file_path);
* @param string $path * @param string $path
* The file name relative to the root of the archive to remove. * The file name relative to the root of the archive to remove.
* *
* @return Drupal\Component\Archiver\ArchiverInterface * @return \Drupal\Component\Archiver\ArchiverInterface
* The called object. * The called object.
*/ */
public function remove($path); public function remove($path);
...@@ -45,7 +45,7 @@ public function remove($path); ...@@ -45,7 +45,7 @@ public function remove($path);
* relative to the root of the archive. If not specified, all files * relative to the root of the archive. If not specified, all files
* in the archive will be extracted. * in the archive will be extracted.
* *
* @return Drupal\Component\Archiver\ArchiverInterface * @return \Drupal\Component\Archiver\ArchiverInterface
* The called object. * The called object.
*/ */
public function extract($path, array $files = array()); public function extract($path, array $files = array());
......
...@@ -15,7 +15,7 @@ class Tar implements ArchiverInterface { ...@@ -15,7 +15,7 @@ class Tar implements ArchiverInterface {
/** /**
* The underlying ArchiveTar instance that does the heavy lifting. * The underlying ArchiveTar instance that does the heavy lifting.
* *
* @var Drupal\Component\Archiver\ArchiveTar * @var \Drupal\Component\Archiver\ArchiveTar
*/ */
protected $tar; protected $tar;
...@@ -27,7 +27,7 @@ class Tar implements ArchiverInterface { ...@@ -27,7 +27,7 @@ class Tar implements ArchiverInterface {
* are supported. If the file does not yet exist, it will be created if * are supported. If the file does not yet exist, it will be created if
* appropriate. * appropriate.
* *
* @throws Drupal\Component\Archiver\ArchiverException * @throws \Drupal\Component\Archiver\ArchiverException
*/ */
public function __construct($file_path) { public function __construct($file_path) {
$this->tar = new ArchiveTar($file_path); $this->tar = new ArchiveTar($file_path);
......
...@@ -29,7 +29,7 @@ class Zip implements ArchiverInterface { ...@@ -29,7 +29,7 @@ class Zip implements ArchiverInterface {
* are supported. If the file does not yet exist, it will be created if * are supported. If the file does not yet exist, it will be created if
* appropriate. * appropriate.
* *
* @throws Drupal\Component\Archiver\ArchiverException * @throws \Drupal\Component\Archiver\ArchiverException
*/ */
public function __construct($file_path) { public function __construct($file_path) {
$this->zip = new \ZipArchive(); $this->zip = new \ZipArchive();
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
/** /**
* Methods required for both reader and writer implementations. * Methods required for both reader and writer implementations.
* *
* @see Drupal\Component\Gettext\PoReaderInterface * @see \Drupal\Component\Gettext\PoReaderInterface
* @see Drupal\Component\Gettext\PoWriterInterface * @see \Drupal\Component\Gettext\PoWriterInterface
*/ */
interface PoMetadataInterface { interface PoMetadataInterface {
...@@ -36,7 +36,7 @@ public function getLangcode(); ...@@ -36,7 +36,7 @@ public function getLangcode();
/** /**
* Set header metadata. * Set header metadata.
* *
* @param Drupal\Component\Gettext\PoHeader $header * @param \Drupal\Component\Gettext\PoHeader $header
* Header object representing metadata in a PO header. * Header object representing metadata in a PO header.
*/ */
public function setHeader(PoHeader $header); public function setHeader(PoHeader $header);
...@@ -44,7 +44,7 @@ public function setHeader(PoHeader $header); ...@@ -44,7 +44,7 @@ public function setHeader(PoHeader $header);
/** /**
* Get header metadata. * Get header metadata.
* *
* @return Drupal\Component\Gettext\PoHeader $header * @return \Drupal\Component\Gettext\PoHeader $header
* Header instance representing metadata in a PO header. * Header instance representing metadata in a PO header.
*/ */
public function getHeader(); public function getHeader();
......
...@@ -17,7 +17,7 @@ interface PoReaderInterface extends PoMetadataInterface { ...@@ -17,7 +17,7 @@ interface PoReaderInterface extends PoMetadataInterface {
/** /**
* Reads and returns a PoItem (source/translation pair). * Reads and returns a PoItem (source/translation pair).
* *
* @return Drupal\Component\Gettext\PoItem * @return \Drupal\Component\Gettext\PoItem
* Wrapper for item data instance. * Wrapper for item data instance.
*/ */
public function readItem(); public function readItem();
......
...@@ -87,14 +87,14 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface { ...@@ -87,14 +87,14 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
/** /**
* The PO stream header. * The PO stream header.
* *
* @var Drupal\Component\Gettext\PoHeader * @var \Drupal\Component\Gettext\PoHeader
*/ */
private $_header; private $_header;
/** /**
* Object wrapper for the last read source/translation pair. * Object wrapper for the last read source/translation pair.
* *
* @var Drupal\Component\Gettext\PoItem * @var \Drupal\Component\Gettext\PoItem