modules/custom/pasta/remove_from_pasta/remove_from_pasta.module

Summary

Maintainability
Test Coverage

Avoid unused local variables such as '$request'.
Open

    drupal_set_message('A request has been sent to PASTA to erase this dataset, which responded with this code: !code', array('!code' => $request->code));

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

There must be exactly one blank line before the tags in a doc comment
Open

  * @toDo, need actual doc

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Open

// ----------------------------------------------------------------------------

Expected 1 space(s) before asterisk; 2 found
Open

  * Implement hook_help()

There must be no blank lines after the function comment
Open

  */

Expected 1 space(s) before asterisk; 2 found
Open

  */

Expected 1 newline at end of file; 2 found
Open

}

The second line in the file doc comment must be "@file"
Open

  * Implement hook_help()

The PHP open tag must be followed by exactly one blank line
Open

<?php

Expected 1 space(s) before asterisk; 2 found
Open

  * @toDo, need actual doc

There are no issues that match your filters.

Category
Status