Showing 699 of 699 total issues
Expected 2 space(s) before asterisk; 1 found Open
Open
*
- Exclude checks
There must be no blank lines after the function comment Open
Open
*/
- Exclude checks
Missing function doc comment Open
Open
public function __construct($node) {
- Exclude checks
Expected 2 space(s) before asterisk; 1 found Open
Open
* @file
- Exclude checks
There must be exactly one blank line before the tags in a doc comment Open
Open
* @see http://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_feed/7
- Exclude checks
Missing function doc comment Open
Open
public function __construct($node) {
- Exclude checks
The PHP open tag must be followed by exactly one blank line Open
Open
<?php
- Exclude checks
Missing function doc comment Open
Open
function _iso_date_value($date, $granularity) {
- Exclude checks
Doc comment short description must be on a single line, further text should be a separate paragraph Open
Open
* by other elements.
- Exclude checks
Missing class doc comment Open
Open
class LterUnitHelper {
- Exclude checks
Function fetchEmlReport
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function fetchEmlReport() {
list($scope, $identifier, $revision) = $this->dataSet->getPackageIDParts();
// Fetch the EML report from the API.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Public method name "EmlHarvestList::getEMLHL" is not in lowerCamel format Open
Open
public function getEMLHL($reset = FALSE) {
- Exclude checks
Expected 2 space(s) before asterisk; 1 found Open
Open
* Default template to use when an entity is rendered using the 'iso' view mode.
- Exclude checks
Additional blank lines found at end of doc comment Open
Open
*/
- Exclude checks
Missing function doc comment Open
Open
public function submitEml() {
- Exclude checks
Closing brace indented incorrectly; expected 2 spaces, found 0 Open
Open
}
- Exclude checks
Public method name "PastaApi::fetchDOI" is not in lowerCamel format Open
Open
public function fetchDOI() {
- Exclude checks
Expected 2 space(s) before asterisk; 3 found Open
Open
* An integer from the PASTA API.
- Exclude checks
Line indented incorrectly; expected 10 spaces, found 11 Open
Open
$element[$delta] = array(
- Exclude checks
Expected 1 space(s) before asterisk; 2 found Open
Open
* Implement hook_help()
- Exclude checks