Commit 700452ba authored by alexpott's avatar alexpott

Issue #2722621 by anoopjohn: Fix...

Issue #2722621 by anoopjohn: Fix Drupal.Commenting.FunctionComment.InvalidReturn and Drupal.Commenting.FunctionComment.VoidReturn
parent 8e062e99
......@@ -455,7 +455,7 @@ public function checkErrors() {
/**
* Detects if there were errors in the processing of this date.
*
* @return boolean
* @return bool
* TRUE if there were errors in the processing of this date, FALSE
* otherwise.
*/
......
......@@ -64,7 +64,7 @@ public function rmdir($path, $options);
public function stream_cast($cast_as);
/**
* @return void
* Closes stream.
*/
public function stream_close();
......
......@@ -139,8 +139,6 @@ protected function entitySaveReload(EntityInterface $entity) {
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to save.
*
* @return void
*/
protected function entityValidateAndSave(EntityInterface $entity) {
$violations = $entity->validate();
......
......@@ -41,7 +41,7 @@ class ImageStyleTest extends UnitTestCase {
* @param \Drupal\image\ImageEffectInterface|\PHPUnit_Framework_MockObject_MockObject $image_effect
* The image effect used for testing.
*
* @return \Drupal\image\ImageStyleInterface|\Drupal\image\ImageStyleInterface
* @return \Drupal\image\ImageStyleInterface
* The mocked image style.
*/
protected function getImageStyleMock($image_effect_id, $image_effect, $stubs = array()) {
......
......@@ -155,7 +155,7 @@ function _tracker_myrecent_access(AccountInterface $account) {
* @param int $account
* The user account ID to track.
*
* @return boolean
* @return bool
* TRUE if a user has permission to access the account for $account and
* has permission to access the content.
*
......
......@@ -42,8 +42,6 @@ public function get($module, $uid = NULL, $name = NULL);
* The name of the data key.
* @param mixed $value
* The value to store. Non-scalar values are serialized automatically.
*
* @return void
*/
public function set($module, $uid, $name, $value);
......@@ -60,8 +58,6 @@ public function set($module, $uid, $name, $value);
* @param string $name
* (optional) The name of the data key. If omitted, all data associated with
* $module and $uid is deleted.
*
* @return void
*/
public function delete($module = NULL, $uid = NULL, $name = NULL);
......
......@@ -336,7 +336,7 @@ public function globalTokenReplace($string = '', array $options = array()) {
* @param $tokens
* Array of token => replacement_value items.
*
* @return String
* @return string
*/
protected function viewsTokenReplace($text, $tokens) {
if (!strlen($text)) {
......
......@@ -152,7 +152,7 @@ public function testPagePaths() {
* @param string $path
* Path that will be set as the view page display path.
*
* @return boolean
* @return bool
* Assertion result.
*/
public function assertPagePath($path) {
......
......@@ -46,7 +46,6 @@
<rule ref="Drupal.Commenting.FunctionComment">
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
<exclude name="Drupal.Commenting.FunctionComment.InvalidNoReturn"/>
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturnNotVoid"/>
<exclude name="Drupal.Commenting.FunctionComment.InvalidTypeHint"/>
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
......@@ -60,7 +59,6 @@
<exclude name="Drupal.Commenting.FunctionComment.ParamCommentNotCapital"/>
<exclude name="Drupal.Commenting.FunctionComment.ParamNameNoMatch"/>
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
<exclude name="Drupal.Commenting.FunctionComment.VoidReturn"/>
</rule>
<rule ref="Drupal.ControlStructures.ElseIf"/>
<rule ref="Drupal.ControlStructures.ControlSignature"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment