public/main/inc/lib/SkillRelProfileModel.php
Variable "skill_data" is not in valid camel caps format Open
Open
foreach ($skills as $skill_data) {
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class SkillRelProfileModel extends Model
- Exclude checks
Variable "skill_data" is not in valid camel caps format Open
Open
$return[] = $skill_data['skill_id'];
- Exclude checks
The variable $skill_data is not named in camelCase. Open
Open
public function getSkillsByProfile($profileId)
{
$profileId = (int) $profileId;
$skills = $this->get_all(['where' => ['profile_id = ? ' => $profileId]]);
$return = [];
- 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 $skill_data is not named in camelCase. Open
Open
public function getSkillsByProfile($profileId)
{
$profileId = (int) $profileId;
$skills = $this->get_all(['where' => ['profile_id = ? ' => $profileId]]);
$return = [];
- 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();
}
}