public/main/inc/lib/SkillProfileModel.php
Missing class import via use statement (line '70', column '42'). Open
Open
$skill_rel_profile = new SkillRelProfileModel();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Variable "profile_id" is not in valid camel caps format Open
Open
if ($profile_id) {
- Exclude checks
Variable "skill_id" is not in valid camel caps format Open
Open
foreach ($params['skills'] as $skill_id) {
- Exclude checks
Variable "table_rel_profile" is not in valid camel caps format Open
Open
$this->table_rel_profile = Database::get_main_table(TABLE_MAIN_SKILL_REL_PROFILE);
- Exclude checks
Variable "profile_id" is not in valid camel caps format Open
Open
'profile_id' => $profile_id,
- Exclude checks
Variable "skill_id" is not in valid camel caps format Open
Open
'skill_id' => $skill_id,
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Variable "profile_id" is not in valid camel caps format Open
Open
$profile_id = parent::save($params, $showQuery);
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class SkillProfileModel extends Model
- Exclude checks
Variable "profile_id" is not in valid camel caps format Open
Open
return $profile_id;
- Exclude checks
Variable "skill_rel_profile" is not in valid camel caps format Open
Open
$skill_rel_profile = new SkillRelProfileModel();
- Exclude checks
Variable "table_rel_profile" is not in valid camel caps format Open
Open
$this->table_rel_profile,
- Exclude checks
Variable "skill_rel_profile" is not in valid camel caps format Open
Open
$skill_rel_profile->save($attributes);
- Exclude checks
The variable $profile_id is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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_rel_profile is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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_id is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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 $profile_id is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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_id is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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_rel_profile is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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 $profile_id is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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 $profile_id is not named in camelCase. Open
Open
public function save($params, $showQuery = false)
{
if (!empty($params)) {
$profile_id = parent::save($params, $showQuery);
if ($profile_id) {
- 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();
}
}