62% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
Loading history...
64
// TODO: throw exception instead of returning
65
return $data;
66
}
67
68
/**
69
* Method returns RAW request data.
70
*
71
* @return string
72
*/
73
abstract public function getRawData();
74
75
/**
76
* Whether the request is RAW and should not be decoded.
77
* @return bool
78
*/
79
2
public function isRaw()
80
{
81
2
return $this->request->isRaw();
82
}
83
84
/**
85
* Method checks whether response is a JSON response.
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.