modules/custom/pasta/remove_from_pasta/remove_from_pasta.module
Avoid unused local variables such as '$request'. Open
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));
- Read upRead up
- Exclude checks
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
Open
* @toDo, need actual doc
- Exclude checks
Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses Open
Open
// ----------------------------------------------------------------------------
- Exclude checks
Expected 1 space(s) before asterisk; 2 found Open
Open
* Implement hook_help()
- Exclude checks
There must be no blank lines after the function comment Open
Open
*/
- Exclude checks
Expected 1 space(s) before asterisk; 2 found Open
Open
*/
- Exclude checks
Expected 1 newline at end of file; 2 found Open
Open
}
- Exclude checks
The second line in the file doc comment must be "@file" Open
Open
* Implement hook_help()
- Exclude checks
The PHP open tag must be followed by exactly one blank line Open
Open
<?php
- Exclude checks
Expected 1 space(s) before asterisk; 2 found Open
Open
* @toDo, need actual doc
- Exclude checks