The method __construct() has an NPath complexity of 576. The configured NPath complexity threshold is 200. Open
public function __construct(
$certificate_id = 0,
$userId = 0,
$sendNotification = false,
$updateCertificateData = true,
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method generateCustomCertificate() has an NPath complexity of 1584. The configured NPath complexity threshold is 200. Open
public function generateCustomCertificate(string $fileName = ''): string
{
$certificateRepo = Container::getGradeBookCertificateRepository();
$certificateRepo->registerUserInfoAboutCertificate(0, $this->user_id, 100, $fileName);
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['right'] = 0;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['top'] = 0;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['left'] = 0;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$pdf = new PDF($page_format, $params['orientation'], $params);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$myCertificate' which will lead to PHP notices. Open
$tplContent->assign('certificate_generated_date', isset($myCertificate['created_at']) ? api_get_local_time($myCertificate['created_at']) : '');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$myCertificate' which will lead to PHP notices. Open
$myCertificate['created_at'] ?? null,
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['orientation'] = $orientation;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$page_format = 'landscape' == $params['orientation'] ? 'A4-L' : 'A4';
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['orientation'] = 'landscape';
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$myCertificate' which will lead to PHP notices. Open
$tplContent->assign('certificate_generated_date', isset($myCertificate['created_at']) ? api_get_local_time($myCertificate['created_at']) : '');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['bottom'] = 0;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$pdf = new PDF($page_format, $params['orientation'], $params);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
The class Certificate has a coupling between objects value of 18. Consider to reduce the number of dependencies under 13. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- Read upRead up
- Exclude checks
CouplingBetweenObjects
Since: 1.1.0
A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability
Example
class Foo {
/**
* @var \foo\bar\X
*/
private $x = null;
/**
* @var \foo\bar\Y
*/
private $y = null;
/**
* @var \foo\bar\Z
*/
private $z = null;
public function setFoo(\Foo $foo) {}
public function setBar(\Bar $bar) {}
public function setBaz(\Baz $baz) {}
/**
* @return \SplObjectStorage
* @throws \OutOfRangeException
* @throws \InvalidArgumentException
* @throws \ErrorException
*/
public function process(\Iterator $it) {}
// ...
}
Source https://phpmd.org/rules/design.html#couplingbetweenobjects
Missing class import via use statement (line '393', column '19'). Open
throw new \Exception('generateQRImage');
- 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
Missing class import via use statement (line '178', column '26'). Open
$skill = new SkillModel();
- 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
Missing class import via use statement (line '617', column '39'). Open
$lpList = new LearnpathList(
- 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
Missing class import via use statement (line '585', column '32'). Open
$extraFieldValue = new ExtraFieldValue('user');
- 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
Missing class import via use statement (line '738', column '20'). Open
$pdf = new PDF($page_format, $params['orientation'], $params);
- 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
Missing class import via use statement (line '668', column '27'). Open
$tplContent = new Template(null, false, false, false, false, false);
- 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
Missing class import via use statement (line '490', column '26'). Open
$gradeBook = new Gradebook();
- 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
Missing class import via use statement (line '659', column '22'). Open
$skill = new SkillModel();
- 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
Missing class import via use statement (line '554', column '40'). Open
$extraFieldValue = new ExtraFieldValue('user_certificate');
- 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
Missing class import via use statement (line '781', column '27'). Open
$controller = new IndexManager(get_lang('My courses'));
- 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
The method generate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$name = hash('sha256', $this->user_id . $categoryId);
$fileName = $name . '.html';
$certificateContent = $this->generateCustomCertificate($fileName);
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
//$this->checkCertificatePath();
if ('true' === api_get_setting('document.allow_general_certificate')) {
// General certificate
$categoryId = isset($this->certificate_data['cat_id']) ? (int) $this->certificate_data['cat_id'] : 0;
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method generate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Creating new name
$name = hash('sha256', $this->user_id . $categoryId);
$fileName = $name . '.html';
$gradebookCertificateRepo = Container::getGradeBookCertificateRepository();
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid unused local variables such as '$id2'. Open
[$id, $id2, $termsValidationDate] = explode(':', $value['value']);
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused local variables such as '$id'. Open
[$id, $id2, $termsValidationDate] = explode(':', $value['value']);
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
The property $certificate_data is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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 property $force_certificate_generation is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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 $certificate_id is not named in camelCase. Open
public function __construct(
$certificate_id = 0,
$userId = 0,
$sendNotification = false,
$updateCertificateData = true,
- 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 $certification_web_user_path is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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 $user_id is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $qr_file is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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 property $certification_user_path is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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 property $html_file is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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 $path_certificate is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $user_id is not named in camelCase. Open
class Certificate extends Model
{
public $table;
public $columns = [
'id',
- 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
Variable "certificate_id" is not in valid camel caps format Open
if (!empty($certificate_id)) {
- Exclude checks
Variable "certificate_id" is not in valid camel caps format Open
$certificate = $this->get($certificate_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$isCertificateAvailableInCategory = !empty($categoryId) && $myCategory[0]->is_certificate_available($this->user_id);
- Exclude checks
Expected 3 spaces after parameter type; 1 found Open
* @param bool $sendNotification send message to student
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$categoryId = isset($this->certificate_data['cat_id']) ? (int) $this->certificate_data['cat_id'] : 0;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (!empty($this->certificate_data)) {
- Exclude checks
Expected 3 spaces after parameter type; 1 found Open
* @param bool $updateCertificateData
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id = $this->certificate_data['user_id'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($this->user_id) {
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data['path_certificate'] = $fileName;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$myPathCertificate = $this->certificate_data['path_certificate'] ?? '';
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id = !empty($userId) ? $userId : api_get_user_id();
- Exclude checks
Variable "force_certificate_generation" is not in valid camel caps format Open
if ($this->force_certificate_generation) {
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
&& $this->certificate_data
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$gradebookCertificateRepo->deleteCertificateAndRelatedFiles($this->certificate_data['user_id'], $categoryId);
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
&& empty($this->certificate_data['path_certificate'])
- Exclude checks
Variable "html_file" is not in valid camel caps format Open
$this->html_file = $this->certificate_data['path_certificate'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$personalFile = $gradebookCertificateRepo->generateCertificatePersonalFile($this->user_id, $fileName, $content);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Member variable "html_file" is not in valid camel caps format Open
public $html_file = null;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data = $certificate;
- Exclude checks
Variable "certificate_id" is not in valid camel caps format Open
$certificate_id = 0,
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
isset($this->certificate_data)
- Exclude checks
Member variable "certification_user_path" is not in valid camel caps format Open
public $certification_user_path = null;
- Exclude checks
Member variable "certification_web_user_path" is not in valid camel caps format Open
public $certification_web_user_path = null;
- Exclude checks
Member variable "qr_file" is not in valid camel caps format Open
public $qr_file = null;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$categoryId = isset($this->certificate_data['cat_id']) ? (int) $this->certificate_data['cat_id'] : 0;
- Exclude checks
Member variable "user_id" is not in valid camel caps format Open
public $user_id;
- Exclude checks
Member variable "force_certificate_generation" is not in valid camel caps format Open
public $force_certificate_generation = true;
- Exclude checks
Variable "certification_user_path" is not in valid camel caps format Open
!empty($this->certification_user_path) &&
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (!empty($this->certificate_data)) {
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (isset($this->certificate_data['cat_id'])) {
- Exclude checks
Expected 4 spaces after parameter type; 2 found Open
* @param int $certificate_id ID of the certificate
- Exclude checks
Expected 4 spaces after parameter type; 2 found Open
* @param int $userId
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$categoryId = isset($this->certificate_data['cat_id']) ? (int) $this->certificate_data['cat_id'] : 0;
- Exclude checks
Superfluous parameter comment Open
* @param bool $force_delete
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->html_file = $this->certificate_data['path_certificate'];
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->user_id = $this->certificate_data['user_id'];
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$categoryId = isset($this->certificate_data['cat_id']) ? (int) $this->certificate_data['cat_id'] : 0;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$categoryId = (int) $this->certificate_data['cat_id'];
- Exclude checks
Member variable "certificate_data" is not in valid camel caps format Open
public $certificate_data = [];
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
isset($this->certificate_data['path_certificate'])
- Exclude checks
Variable "force_certificate_generation" is not in valid camel caps format Open
!$this->force_certificate_generation
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$name = hash('sha256', $this->user_id . $categoryId);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "certificate_id" is not in valid camel caps format Open
if (isset($certificate_id) &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$personalFile = $gradebookCertificateRepo->generateCertificatePersonalFile($this->user_id, $fileName, $certificateContent);
- Exclude checks
Variable "path_certificate" is not in valid camel caps format Open
path_certificate="'.Database::escape_string($path_certificate).'",
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
!empty($this->certificate_data['path_certificate'])
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
isset($this->certificate_data['id'])
- Exclude checks
Variable "page_format" is not in valid camel caps format Open
$pdf = new PDF($page_format, $params['orientation'], $params);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$personalFile = $gradebookCertificateRepo->generateCertificatePersonalFile($this->user_id, $fileName, $newContentHtml['content']);
- Exclude checks
Variable "certification_user_path" is not in valid camel caps format Open
if (empty($this->certification_user_path)) {
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
$final_content[$my_header] = $value;
- Exclude checks
Variable "my_header" is not in valid camel caps format Open
$final_content[$my_header] = $value;
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
'URL'.': '.$final_content['certificate_link'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if ($this->user_id == api_get_user_id() &&
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$certificateId = $this->certificate_data['id'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
api_get_user_info($this->user_id),
- Exclude checks
Variable "break_space" is not in valid camel caps format Open
get_lang('Trainer').': '.$final_content['teacher_firstname'].' '.$final_content['teacher_lastname'].$break_space.
- Exclude checks
Variable "break_space" is not in valid camel caps format Open
get_lang('Date').': '.$final_content['date_certificate'].$break_space.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data['path_certificate'] = $fileName;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$name = hash('sha256', $this->user_id . $categoryId);
- Exclude checks
Variable "path_certificate" is not in valid camel caps format Open
$path_certificate,
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
get_lang('Learner').': '.$final_content['user_firstname'].' '.$final_content['user_lastname'].$break_space.
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
get_lang('Learner').': '.$final_content['user_firstname'].' '.$final_content['user_lastname'].$break_space.
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (!isset($this->certificate_data, $this->certificate_data['cat_id'])) {
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if ($filesystem->fileExists($this->certificate_data['path_certificate'])) {
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
'item_id' => $this->certificate_data['id'],
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$skills = $skill->getStudentSkills($this->user_id, 2);
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data['file_content'] = $personalRepo->getResourceFileContent($personalFile);
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
$final_content['gradebook_sitename'].' - '.
- Exclude checks
Variable "break_space" is not in valid camel caps format Open
get_lang('Score').': '.$final_content['gradebook_grade'].$break_space.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$certificateRepo->registerUserInfoAboutCertificate(0, $this->user_id, 100, $fileName);
- Exclude checks
Variable "my_header" is not in valid camel caps format Open
$my_header = str_replace(['((', '))'], '', $headers[$key]);
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
$final_content['gradebook_institution'].' - '.
- Exclude checks
Variable "break_space" is not in valid camel caps format Open
get_lang('Certification').$break_space.
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
get_lang('Trainer').': '.$final_content['teacher_firstname'].' '.$final_content['teacher_lastname'].$break_space.
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$certificateContent .= $filesystem->read($this->certificate_data['path_certificate']);
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$score = $this->certificate_data['score_certificate'];
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data['path_certificate'] = $fileName;
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
get_lang('Trainer').': '.$final_content['teacher_firstname'].' '.$final_content['teacher_lastname'].$break_space.
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
get_lang('Date').': '.$final_content['date_certificate'].$break_space.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$sessions = SessionManager::get_sessions_by_user($this->user_id, false, true);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $user_id;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (!isset($this->certificate_data, $this->certificate_data['cat_id'])) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$name = hash('sha256', $this->user_id . $categoryId);
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$gradeBookInfo = $gradeBook->get($this->certificate_data['cat_id']);
- Exclude checks
Variable "certification_user_path" is not in valid camel caps format Open
$this->certification_user_path = $fileName;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data['file_content'],
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
!UserManager::is_user_certified($categoryId, $user_id)
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
isset($this->certificate_data['path_certificate']) &&
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
$final_content = [];
- Exclude checks
Variable "break_space" is not in valid camel caps format Open
get_lang('Learner').': '.$final_content['user_firstname'].' '.$final_content['user_lastname'].$break_space.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "page_format" is not in valid camel caps format Open
$page_format = 'landscape' == $params['orientation'] ? 'A4-L' : 'A4';
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $user_id;
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (!empty($this->certificate_data) &&
- Exclude checks
Variable "final_content" is not in valid camel caps format Open
get_lang('Score').': '.$final_content['gradebook_grade'].$break_space.
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "break_space" is not in valid camel caps format Open
$break_space = " \n\r ";
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (!$filesystem->fileExists($this->certificate_data['path_certificate'])) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$userInfo = api_get_user_info($this->user_id);
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
if (empty($this->certificate_data['path_certificate'])) {
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
$this->certificate_data['cat_id'],
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
WHERE cat_id = "'.$categoryId.'" AND user_id="'.$user_id.'" ';
- Exclude checks
Variable "certificate_data" is not in valid camel caps format Open
!empty($this->certificate_data) &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$value = $extraFieldValue->get_values_by_handler_and_field_variable($this->user_id, 'legal_accept');
- Exclude checks
Expected 0 spaces after opening bracket; newline found Open
if (
- Exclude checks
The variable $path_certificate is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $user_id is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $user_id is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $user_id is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $certificate_id is not named in camelCase. Open
public function __construct(
$certificate_id = 0,
$userId = 0,
$sendNotification = false,
$updateCertificateData = true,
- 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 $certificate_id is not named in camelCase. Open
public function __construct(
$certificate_id = 0,
$userId = 0,
$sendNotification = false,
$updateCertificateData = true,
- 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 $certificate_id is not named in camelCase. Open
public function __construct(
$certificate_id = 0,
$userId = 0,
$sendNotification = false,
$updateCertificateData = true,
- 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 $user_id is not named in camelCase. Open
public function updateUserCertificateInfo(
$categoryId,
$user_id,
$path_certificate,
$updateCertificateData = true
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $page_format is not named in camelCase. Open
public function generatePdfFromCustomCertificate(): void
{
$orientation = api_get_setting('document.certificate_pdf_orientation');
$params['orientation'] = 'landscape';
- 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 $break_space is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $page_format is not named in camelCase. Open
public function generatePdfFromCustomCertificate(): void
{
$orientation = api_get_setting('document.certificate_pdf_orientation');
$params['orientation'] = 'landscape';
- 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 $break_space is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $my_header is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $break_space is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $break_space is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $my_header is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $break_space is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $break_space is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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 $final_content is not named in camelCase. Open
public function parseCertificateVariables($array)
{
$headers = $array[0];
$content = $array[1];
$final_content = [];
- 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();
}
}