Commit 63927236 authored by xjm's avatar xjm

Issue #2502621 by Pravin Ajaaz, hussainweb, Peacog, jhodgdon, ivanjaros:...

Issue #2502621 by Pravin Ajaaz, hussainweb, Peacog, jhodgdon, ivanjaros: Replace implement notes with inheritdoc tag
parent 32a9e1cb
......@@ -26,7 +26,7 @@ class MockFileFinder implements ClassFinderInterface {
protected $filename;
/**
* Implements Doctrine\Common\Reflection\ClassFinderInterface::findFile().
* {@inheritdoc}
*/
public function findFile($class) {
return $this->filename;
......
......@@ -27,7 +27,7 @@ function __construct() {
}
/**
* Implements Drupal\Component\Gettext\PoWriterInterface::writeItem().
* {@inheritdoc}
*/
public function writeItem(PoItem $item) {
if (is_array($item->getSource())) {
......@@ -39,7 +39,7 @@ public function writeItem(PoItem $item) {
}
/**
* Implements Drupal\Component\Gettext\PoWriterInterface::writeItems().
* {@inheritdoc}
*/
public function writeItems(PoReaderInterface $reader, $count = -1) {
$forever = $count == -1;
......
......@@ -103,21 +103,21 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
private $_errors;
/**
* Implements Drupal\Component\Gettext\PoMetadataInterface::getLangcode().
* {@inheritdoc}
*/
public function getLangcode() {
return $this->_langcode;
}
/**
* Implements Drupal\Component\Gettext\PoMetadataInterface::setLangcode().
* {@inheritdoc}
*/
public function setLangcode($langcode) {
$this->_langcode = $langcode;
}
/**
* Implements Drupal\Component\Gettext\PoMetadataInterface::getHeader().
* {@inheritdoc}
*/
public function getHeader() {
return $this->_header;
......@@ -132,14 +132,14 @@ public function setHeader(PoHeader $header) {
}
/**
* Implements Drupal\Component\Gettext\PoStreamInterface::getURI().
* {@inheritdoc}
*/
public function getURI() {
return $this->_uri;
}
/**
* Implements Drupal\Component\Gettext\PoStreamInterface::setURI().
* {@inheritdoc}
*/
public function setURI($uri) {
$this->_uri = $uri;
......@@ -180,7 +180,7 @@ public function close() {
}
/**
* Implements Drupal\Component\Gettext\PoReaderInterface::readItem().
* {@inheritdoc}
*/
public function readItem() {
// Clear out the last item.
......
......@@ -74,7 +74,7 @@ public function setLangcode($langcode) {
}
/**
* Implements Drupal\Component\Gettext\PoStreamInterface::open().
* {@inheritdoc}
*/
public function open() {
// Open in write mode. Will overwrite the stream if it already exists.
......@@ -123,14 +123,14 @@ private function writeHeader() {
}
/**
* Implements Drupal\Component\Gettext\PoWriterInterface::writeItem().
* {@inheritdoc}
*/
public function writeItem(PoItem $item) {
$this->write($item);
}
/**
* Implements Drupal\Component\Gettext\PoWriterInterface::writeItems().
* {@inheritdoc}
*/
public function writeItems(PoReaderInterface $reader, $count = -1) {
$forever = $count == -1;
......@@ -153,7 +153,7 @@ public function getURI() {
}
/**
* Implements Drupal\Component\Gettext\PoStreamInterface::setURI().
* {@inheritdoc}
*/
public function setURI($uri) {
$this->_uri = $uri;
......
......@@ -34,14 +34,14 @@ public function __construct(array $configuration) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::exists().
* {@inheritdoc}
*/
public function exists($name) {
return file_exists($this->getFullPath($name));
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::load().
* {@inheritdoc}
*/
public function load($name) {
// The FALSE returned on failure is enough for the caller to handle this,
......@@ -50,14 +50,14 @@ public function load($name) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::save().
* {@inheritdoc}
*/
public function save($name, $code) {
return FALSE;
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::delete().
* {@inheritdoc}
*/
public function delete($name) {
return FALSE;
......@@ -71,14 +71,14 @@ public function getFullPath($name) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::writeable().
* {@inheritdoc}
*/
function writeable() {
return FALSE;
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::deleteAll().
* {@inheritdoc}
*/
public function deleteAll() {
return FALSE;
......
......@@ -33,14 +33,14 @@ public function __construct(array $configuration) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::exists().
* {@inheritdoc}
*/
public function exists($name) {
return file_exists($this->getFullPath($name));
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::load().
* {@inheritdoc}
*/
public function load($name) {
// The FALSE returned on failure is enough for the caller to handle this,
......@@ -49,7 +49,7 @@ public function load($name) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::save().
* {@inheritdoc}
*/
public function save($name, $code) {
$path = $this->getFullPath($name);
......@@ -183,7 +183,7 @@ protected function createDirectory($directory, $mode = 0777, $is_backwards_recur
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::delete().
* {@inheritdoc}
*/
public function delete($name) {
$path = $this->getFullPath($name);
......@@ -201,14 +201,14 @@ public function getFullPath($name) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::writeable().
* {@inheritdoc}
*/
public function writeable() {
return TRUE;
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::deleteAll().
* {@inheritdoc}
*/
public function deleteAll() {
return $this->unlink($this->directory);
......
......@@ -36,7 +36,7 @@
class MTimeProtectedFileStorage extends MTimeProtectedFastFileStorage {
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::load().
* {@inheritdoc}
*/
public function load($name) {
if (($filename = $this->checkFile($name)) !== FALSE) {
......@@ -47,7 +47,7 @@ public function load($name) {
}
/**
* Implements Drupal\Component\PhpStorage\PhpStorageInterface::exists().
* {@inheritdoc}
*/
public function exists($name) {
return $this->checkFile($name) !== FALSE;
......
......@@ -44,7 +44,7 @@ public function __construct(ContextDefinitionInterface $context_definition, $con
}
/**
* Implements \Drupal\Component\Plugin\Context\ContextInterface::getContextValue().
* {@inheritdoc}
*/
public function getContextValue() {
// Support optional contexts.
......@@ -71,14 +71,14 @@ public function hasContextValue() {
}
/**
* Implements \Drupal\Component\Plugin\Context\ContextInterface::getContextDefinition().
* {@inheritdoc}
*/
public function getContextDefinition() {
return $this->contextDefinition;
}
/**
* Implements \Drupal\Component\Plugin\Context\ContextInterface::getConstraints().
* {@inheritdoc}
*/
public function getConstraints() {
if (empty($this->contextDefinition['class'])) {
......@@ -88,7 +88,7 @@ public function getConstraints() {
}
/**
* Implements \Drupal\Component\Plugin\Context\ContextInterface::validate().
* {@inheritdoc}
*/
public function validate() {
$validator = Validation::createValidatorBuilder()
......
......@@ -16,7 +16,7 @@ class StaticDiscovery implements DiscoveryInterface {
use DiscoveryCachedTrait;
/**
* Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions().
* {@inheritdoc}
*/
public function getDefinitions() {
if (!$this->definitions) {
......
......@@ -52,7 +52,7 @@ public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE) {
}
/**
* Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions().
* {@inheritdoc}
*/
public function getDefinitions() {
if (isset($this->registerDefinitions)) {
......
......@@ -51,7 +51,7 @@ public function __construct(DiscoveryInterface $discovery, $plugin_interface = N
}
/**
* Implements Drupal\Component\Plugin\Factory\FactoryInterface::createInstance().
* {@inheritdoc}
*/
public function createInstance($plugin_id, array $configuration = array()) {
$plugin_definition = $this->discovery->getDefinition($plugin_id);
......
......@@ -15,7 +15,7 @@
class ReflectionFactory extends DefaultFactory {
/**
* Implements Drupal\Component\Plugin\Factory\FactoryInterface::createInstance().
* {@inheritdoc}
*/
public function createInstance($plugin_id, array $configuration = array()) {
$plugin_definition = $this->discovery->getDefinition($plugin_id);
......
......@@ -42,7 +42,7 @@ public function __construct($selector = NULL, $persist = FALSE) {
}
/**
* Implements \Drupal\Core\Ajax\CommandInterface::render().
* {@inheritdoc}
*/
public function render() {
return array(
......
......@@ -54,7 +54,7 @@ public function __construct($selector, $option_name, $option_value) {
}
/**
* Implements \Drupal\Core\Ajax\CommandInterface::render().
* {@inheritdoc}
*/
public function render() {
return array(
......
......@@ -39,7 +39,7 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac
}
/**
* Overrides \Drupal\Component\Plugin\PluginManagerBase::createInstance().
* {@inheritdoc}
*/
public function createInstance($plugin_id, array $configuration = array()) {
$plugin_definition = $this->getDefinition($plugin_id);
......@@ -48,7 +48,7 @@ public function createInstance($plugin_id, array $configuration = array()) {
}
/**
* Implements \Drupal\Core\PluginManagerInterface::getInstance().
* {@inheritdoc}
*/
public function getInstance(array $options) {
$filepath = $options['filepath'];
......
......@@ -74,7 +74,7 @@ public function prependBackend(CacheBackendInterface $backend) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::get().
* {@inheritdoc}
*/
public function get($cid, $allow_invalid = FALSE) {
foreach ($this->backends as $index => $backend) {
......@@ -94,7 +94,7 @@ public function get($cid, $allow_invalid = FALSE) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::getMultiple().
* {@inheritdoc}
*/
public function getMultiple(&$cids, $allow_invalid = FALSE) {
$return = array();
......@@ -125,7 +125,7 @@ public function getMultiple(&$cids, $allow_invalid = FALSE) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::set().
* {@inheritdoc}
*/
public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) {
foreach ($this->backends as $backend) {
......@@ -143,7 +143,7 @@ public function setMultiple(array $items) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::delete().
* {@inheritdoc}
*/
public function delete($cid) {
foreach ($this->backends as $backend) {
......@@ -152,7 +152,7 @@ public function delete($cid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteMultiple().
* {@inheritdoc}
*/
public function deleteMultiple(array $cids) {
foreach ($this->backends as $backend) {
......@@ -161,7 +161,7 @@ public function deleteMultiple(array $cids) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteAll().
* {@inheritdoc}
*/
public function deleteAll() {
foreach ($this->backends as $backend) {
......@@ -170,7 +170,7 @@ public function deleteAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidate().
* {@inheritdoc}
*/
public function invalidate($cid) {
foreach ($this->backends as $backend) {
......@@ -179,7 +179,7 @@ public function invalidate($cid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple().
* {@inheritdoc}
*/
public function invalidateMultiple(array $cids) {
foreach ($this->backends as $backend) {
......@@ -188,7 +188,7 @@ public function invalidateMultiple(array $cids) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateTags().
* {@inheritdoc}
*/
public function invalidateTags(array $tags) {
foreach ($this->backends as $backend) {
......@@ -199,7 +199,7 @@ public function invalidateTags(array $tags) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateAll().
* {@inheritdoc}
*/
public function invalidateAll() {
foreach ($this->backends as $backend) {
......@@ -208,7 +208,7 @@ public function invalidateAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::garbageCollection().
* {@inheritdoc}
*/
public function garbageCollection() {
foreach ($this->backends as $backend) {
......
......@@ -61,7 +61,7 @@ public function __construct(Connection $connection, CacheTagsChecksumInterface $
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::get().
* {@inheritdoc}
*/
public function get($cid, $allow_invalid = FALSE) {
$cids = array($cid);
......@@ -70,7 +70,7 @@ public function get($cid, $allow_invalid = FALSE) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::getMultiple().
* {@inheritdoc}
*/
public function getMultiple(&$cids, $allow_invalid = FALSE) {
$cid_mapping = array();
......@@ -240,14 +240,14 @@ protected function doSetMultiple(array $items) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::delete().
* {@inheritdoc}
*/
public function delete($cid) {
$this->deleteMultiple(array($cid));
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteMultiple().
* {@inheritdoc}
*/
public function deleteMultiple(array $cids) {
$cids = array_values(array_map(array($this, 'normalizeCid'), $cids));
......@@ -270,7 +270,7 @@ public function deleteMultiple(array $cids) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteAll().
* {@inheritdoc}
*/
public function deleteAll() {
try {
......@@ -287,14 +287,14 @@ public function deleteAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidate().
* {@inheritdoc}
*/
public function invalidate($cid) {
$this->invalidateMultiple(array($cid));
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple().
* {@inheritdoc}
*/
public function invalidateMultiple(array $cids) {
$cids = array_values(array_map(array($this, 'normalizeCid'), $cids));
......@@ -313,7 +313,7 @@ public function invalidateMultiple(array $cids) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateAll().
* {@inheritdoc}
*/
public function invalidateAll() {
try {
......@@ -327,7 +327,7 @@ public function invalidateAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::garbageCollection().
* {@inheritdoc}
*/
public function garbageCollection() {
try {
......
......@@ -34,7 +34,7 @@ public function __construct($bin) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::get().
* {@inheritdoc}
*/
public function get($cid, $allow_invalid = FALSE) {
if (isset($this->cache[$cid])) {
......@@ -46,7 +46,7 @@ public function get($cid, $allow_invalid = FALSE) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::getMultiple().
* {@inheritdoc}
*/
public function getMultiple(&$cids, $allow_invalid = FALSE) {
$ret = array();
......@@ -104,7 +104,7 @@ protected function prepareItem($cache, $allow_invalid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::set().
* {@inheritdoc}
*/
public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) {
assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)', 'Cache Tags must be strings.');
......@@ -130,28 +130,28 @@ public function setMultiple(array $items = array()) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::delete().
* {@inheritdoc}
*/
public function delete($cid) {
unset($this->cache[$cid]);
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteMultiple().
* {@inheritdoc}
*/
public function deleteMultiple(array $cids) {
$this->cache = array_diff_key($this->cache, array_flip($cids));
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::deleteAll().
* {@inheritdoc}
*/
public function deleteAll() {
$this->cache = array();
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidate().
* {@inheritdoc}
*/
public function invalidate($cid) {
if (isset($this->cache[$cid])) {
......@@ -160,7 +160,7 @@ public function invalidate($cid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple().
* {@inheritdoc}
*/
public function invalidateMultiple(array $cids) {
foreach ($cids as $cid) {
......@@ -180,7 +180,7 @@ public function invalidateTags(array $tags) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalidateAll().
* {@inheritdoc}
*/
public function invalidateAll() {
foreach ($this->cache as $cid => $item) {
......@@ -189,7 +189,7 @@ public function invalidateAll() {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::garbageCollection()
* {@inheritdoc}
*/
public function garbageCollection() {
}
......
......@@ -26,7 +26,7 @@ class MemoryCounterBackend extends MemoryBackend {
protected $counter = array();
/**
* Implements \Drupal\Core\Cache\CacheBackendInterface::get().
* {@inheritdoc}
*/
public function get($cid, $allow_invalid = FALSE) {
$this->increaseCounter(__FUNCTION__, $cid);
......@@ -34,7 +34,7 @@ public function get($cid, $allow_invalid = FALSE) {
}
/**
* Implements \Drupal\Core\Cache\CacheBackendInterface::set().
* {@inheritdoc}
*/
public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) {
$this->increaseCounter(__FUNCTION__, $cid);
......@@ -42,7 +42,7 @@ public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array
}
/**
* Implements \Drupal\Core\Cache\CacheBackendInterface::delete().
* {@inheritdoc}
*/
public function delete($cid) {
$this->increaseCounter(__FUNCTION__, $cid);
......
......@@ -31,21 +31,21 @@ class NullBackend implements CacheBackendInterface {
public function __construct($bin) {}