api.rho.social/modules/v1/helpers/GrantType.php
The parameter $grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The property $GRANT_TYPES is not named in camelCase. Open
Open
class GrantType
{
const GRANT_TYPE_AUTHORIZATION_CODE = 'authorization_code';
const GRANT_TYPE_CLIENT_CREDENTIALS = 'client_credentials';
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The parameter $valid_grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Whitespace found at end of line Open
Open
* @throws BadRequestHttpException
- Exclude checks
The variable $grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $valid_grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $valid_grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $grant_type is not named in camelCase. Open
Open
public static function check($grant_type, $valid_grant_type = null)
{
if (empty($grant_type)) {
throw new BadRequestHttpException('Grant Type Not Specified.', 10041);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}