Skip to content
Snippets Groups Projects

Issue #3199647: Fix PHPMD

4 files
+ 28
3
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -48,13 +48,32 @@ class FileIndexableEvent extends Event {
return $this->file;
}
// phpcs:disable
/**
* If the file is indexable or not.
*
* @return bool
* If the file is indexable or not.
*
* @deprecated in 2.0.1 and will be removed in 3.0.0. Use isIndexable()
* instead.
*
* @SuppressWarnings(PHPMD.ErrorControlOperator)
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
*/
public function getIndexable() {
@trigger_error(__METHOD__ . '() is deprecated in 2.0.1 and will be removed in 3.0.0. use isIndexable() instead.', \E_USER_DEPRECATED);
return $this->isIndexable();
}
// phpcs:enable
/**
* If the file is indexable or not.
*
* @return bool
* If the file is indexable or not.
*/
public function isIndexable() {
return $this->indexable;
}
Loading