The method convert_document() has an NPath complexity of 264. The configured NPath complexity threshold is 200. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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
Remove error control operator '@' on line 126. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 164. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 124. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 163. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 125. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 240. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 251. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 250. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 241. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Missing class import via use statement (line '360', column '23'). Open
$client = new SoapClient(null, $options);
- 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 convert_document uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->file_path = $this->created_dir.'/'.api_replace_dangerous_char($file['name']);
}
- 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 convert_document uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// get result from webservices
$result = $this->_get_remote_ppt2lp_files($file, $size);
$result = unserialize($result);
// Save remote images to server
- 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 convert_document uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$converter_path = api_get_path(SYS_PATH).'main/inc/lib/ppt2png';
//$class_path = '-cp .:jodconverter-2.2.1.jar:jodconverter-cli-2.2.1.jar';
$class_path = ' -Dfile.encoding=UTF-8 -cp .:jodconverter-2.2.2.jar:jodconverter-cli-2.2.2.jar';
$cmd = 'cd '.$converter_path.' && java '.$class_path.' DokeosConverter';
- 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 _get_remote_ppt2lp_files uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$uri = $ppt2lp_host;
}
- 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 convertCopyDocument uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$converterPath = api_get_path(SYS_PATH).'main/inc/lib/ppt2png';
$classPath = ' -Dfile.encoding=UTF-8 -jar jodconverter-cli-2.2.2.jar';
$cmd = 'cd '.$converterPath.' && java '.$classPath.' ';
}
- 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 convertCopyDocument uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
/*
* @TODO Create method to use webservice
// get result from webservices
$result = $this->_get_remote_ppt2lp_files($file);
- 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 '$shell'. Open
$shell = exec($cmd, $files, $return);
- 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 '$perm'. Open
$perm = api_get_setting('permissions_for_new_files');
- 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 '$shell'. Open
$shell = exec($cmd, $files, $return);
- 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 $original_locale is not named in camelCase. Open
abstract class OpenofficeDocument extends learnpath
{
public $first_item = 0;
public $original_charset = 'utf-8';
public $original_locale = 'en_US.UTF-8';
- 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 $slide_width is not named in camelCase. Open
abstract class OpenofficeDocument extends learnpath
{
public $first_item = 0;
public $original_charset = 'utf-8';
public $original_locale = 'en_US.UTF-8';
- 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 $original_charset is not named in camelCase. Open
abstract class OpenofficeDocument extends learnpath
{
public $first_item = 0;
public $original_charset = 'utf-8';
public $original_locale = 'en_US.UTF-8';
- 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 __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_id);
}
- 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 $first_item is not named in camelCase. Open
abstract class OpenofficeDocument extends learnpath
{
public $first_item = 0;
public $original_charset = 'utf-8';
public $original_locale = 'en_US.UTF-8';
- 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 $course_code is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_id);
}
- 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 parameter $action_after_conversion is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 parameter $resource_id is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_id);
}
- 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 $slide_height is not named in camelCase. Open
abstract class OpenofficeDocument extends learnpath
{
public $first_item = 0;
public $original_charset = 'utf-8';
public $original_locale = 'en_US.UTF-8';
- 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 "created_dir" is not in valid camel caps format Open
$this->file_path = $this->created_dir.'/'.api_replace_dangerous_char($file['name']);
- Exclude checks
Variable "class_path" is not in valid camel caps format Open
$class_path = ' -Dfile.encoding=UTF-8 -cp .:jodconverter-2.2.2.jar:jodconverter-cli-2.2.2.jar';
- Exclude checks
Missing function doc comment Open
abstract public function add_docs_to_visio();
- Exclude checks
Missing parameter name Open
* @param string Course code
- Exclude checks
Variable "resource_id" is not in valid camel caps format Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
- Exclude checks
Variable "file_name" is not in valid camel caps format Open
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
$this->file_path = $this->created_dir.'/'.api_replace_dangerous_char($file['name']);
- Exclude checks
Missing function doc comment Open
abstract public function add_command_parameters();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
parent::__construct($course_code, $resource_id, $user_id);
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
if ('localhost' === $ppt2lp_host) {
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
move_uploaded_file($file['tmp_name'], $this->base_work_dir.'/'.$this->file_path);
- Exclude checks
Variable "original_locale" is not in valid camel caps format Open
$locale = $this->original_locale; // TODO: Improve it because we're not sure this locale is present everywhere.
- Exclude checks
Variable "img_data" is not in valid camel caps format Open
@file_put_contents($image_path.'/'.$image, base64_decode($img_data));
- Exclude checks
Member variable "slide_width" is not in valid camel caps format Open
public $slide_width;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @param string Course code
- Exclude checks
Variable "resource_id" is not in valid camel caps format Open
parent::__construct($course_code, $resource_id, $user_id);
- Exclude checks
Variable "class_path" is not in valid camel caps format Open
$cmd = 'cd '.$converter_path.' && java '.$class_path.' DokeosConverter';
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir.$this->created_dir, $dirMode);
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
$this->file_path = $this->created_dir.api_replace_dangerous_char($file['name']);
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
DocumentManager::delete_document($_course, $this->created_dir, $this->base_work_dir);
- Exclude checks
Variable "img_data" is not in valid camel caps format Open
foreach ($result['images'] as $image => $img_data) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$this->lp_id = learnpath::add_lp($_course['id'], $this->file_name, '', 'guess', 'manual');
- Exclude checks
Variable "first_item" is not in valid camel caps format Open
return $this->first_item;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
- Exclude checks
Variable "converter_path" is not in valid camel caps format Open
$class_path = $converter_path.';'.$converter_path.'/jodconverter-2.2.2.jar;'.$converter_path.'/jodconverter-cli-2.2.2.jar';
- Exclude checks
Variable "converter_path" is not in valid camel caps format Open
$converter_path = api_get_path(SYS_PATH).'main/inc/lib/ppt2png';
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
DocumentManager::delete_document($_course, $this->created_dir, $this->base_work_dir);
- Exclude checks
Variable "image_path" is not in valid camel caps format Open
$image_path = $this->base_work_dir.$this->created_dir;
- Exclude checks
Variable "slide_height" is not in valid camel caps format Open
$this->slide_height = $h;
- Exclude checks
Member variable "original_locale" is not in valid camel caps format Open
public $original_locale = 'en_US.UTF-8';
- Exclude checks
Member variable "slide_height" is not in valid camel caps format Open
public $slide_height;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @param int User ID
- Exclude checks
Variable "slide_width" is not in valid camel caps format Open
$this->slide_width = $w;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @license GNU/GPL
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
move_uploaded_file($file['tmp_name'], $this->base_work_dir.'/'.$this->file_path);
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir.$this->file_path, $fileMode);
- Exclude checks
Abstract class name is not prefixed with "Abstract" Open
abstract class OpenofficeDocument extends learnpath
- Exclude checks
Member variable "first_item" is not in valid camel caps format Open
public $first_item = 0;
- Exclude checks
Missing parameter name Open
* @param int Learnpath ID in DB
- Exclude checks
Variable "action_after_conversion" is not in valid camel caps format Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$this->base_work_dir = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document';
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$this->file_path = $this->created_dir.api_replace_dangerous_char($file['name']);
- Exclude checks
Variable "converter_path" is not in valid camel caps format Open
$class_path = $converter_path.';'.$converter_path.'/jodconverter-2.2.2.jar;'.$converter_path.'/jodconverter-cli-2.2.2.jar';
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
chmod($this->base_work_dir.$this->created_dir, api_get_permissions_for_new_directories());
- Exclude checks
Method name "OpenofficeDocument::add_docs_to_visio" is not in camel caps format Open
abstract public function add_docs_to_visio();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @param int Learnpath ID in DB
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
parent::__construct($course_code, $resource_id, $user_id);
- Exclude checks
Variable "converter_path" is not in valid camel caps format Open
$converter_path = str_replace('/', '\\', api_get_path(SYS_PATH).'main/inc/lib/ppt2png');
- Exclude checks
Variable "class_path" is not in valid camel caps format Open
$class_path = $converter_path.';'.$converter_path.'/jodconverter-2.2.2.jar;'.$converter_path.'/jodconverter-cli-2.2.2.jar';
- Exclude checks
Member variable "original_charset" is not in valid camel caps format Open
public $original_charset = 'utf-8';
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
- Exclude checks
Method name "OpenofficeDocument::convert_document" is not in camel caps format Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
- Exclude checks
Variable "converter_path" is not in valid camel caps format Open
$cmd = 'cd '.$converter_path.' && java '.$class_path.' DokeosConverter';
- Exclude checks
Variable "action_after_conversion" is not in valid camel caps format Open
switch ($action_after_conversion) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @author Eric Marguin <eric.marguin@dokeos.com>
- Exclude checks
Variable "file_name" is not in valid camel caps format Open
$result = $this->generate_lp_folder($_course, $this->file_name);
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$this->created_dir = $result['dir'];
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir.$this->created_dir, $dirMode);
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
chmod($this->base_work_dir.$this->created_dir, api_get_permissions_for_new_directories());
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$image_path = $this->base_work_dir.$this->created_dir;
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
chmod($this->base_work_dir, api_get_permissions_for_new_directories());
- Exclude checks
Missing function doc comment Open
abstract public function make_lp();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @param int User ID
- Exclude checks
Variable "resource_id" is not in valid camel caps format Open
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
- Exclude checks
Variable "image_path" is not in valid camel caps format Open
@file_put_contents($image_path.'/'.$image, base64_decode($img_data));
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
$this->course_info = $_course;
- Exclude checks
Missing parameter name Open
* @param int User ID
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
if ('/' == substr($this->created_dir, -1, 1)) {
- Exclude checks
Variable "converter_path" is not in valid camel caps format Open
$class_path = $converter_path.';'.$converter_path.'/jodconverter-2.2.2.jar;'.$converter_path.'/jodconverter-cli-2.2.2.jar';
- Exclude checks
Variable "class_path" is not in valid camel caps format Open
$cmd = 'java -Dfile.encoding=UTF-8 -cp "'.$class_path.'" DokeosConverter';
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir, $dirMode);
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$image_path = $this->base_work_dir.$this->created_dir;
- Exclude checks
Variable "image_path" is not in valid camel caps format Open
@chmod($image_path.'/'.$image, $fileMode);
- Exclude checks
Method name "OpenofficeDocument::make_lp" is not in camel caps format Open
abstract public function make_lp();
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
$this->file_path = $originalPathInfo['basename'];
- Exclude checks
Variable "file_name" is not in valid camel caps format Open
$file_name = $file['name'];
- Exclude checks
Variable "original_locale" is not in valid camel caps format Open
$locale = $this->original_locale; // TODO: Improve it because we're not sure this locale is present everywhere.
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
if (file_exists($this->base_work_dir.'/'.$this->created_dir)) {
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
- Exclude checks
Variable "file_data" is not in valid camel caps format Open
$file_data = base64_encode(file_get_contents($file['tmp_name']));
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$cmd .= ' "'.$this->base_work_dir.'/'.$this->file_path.'" "'.$this->base_work_dir.'/'.$this->created_dir.'"';
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$cmd .= ' "'.$this->base_work_dir.'/'.$this->file_path.'" "'.$this->base_work_dir.'/'.$this->created_dir.'"';
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
'/'.$this->created_dir,
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
filesize($this->base_work_dir.'/'.$this->created_dir),
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
chmod($this->base_work_dir, $permissionFolder);
- Exclude checks
Variable "secret_key" is not in valid camel caps format Open
'secret_key' => $secret_key,
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir.'/'.$this->file_path, $permissionFile);
- Exclude checks
Method name "OpenofficeDocument::_get_remote_ppt2lp_files" is not in camel caps format Open
private function _get_remote_ppt2lp_files($file, $size = null)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @param string Course code
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @param int Learnpath ID in DB
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
@chmod($this->base_work_dir.$this->file_path, $fileMode);
- Exclude checks
Variable "file_name" is not in valid camel caps format Open
$this->lp_id = learnpath::add_lp($_course['id'], $this->file_name, '', 'guess', 'manual');
- Exclude checks
Method name "OpenofficeDocument::add_command_parameters" is not in camel caps format Open
abstract public function add_command_parameters();
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
$this->created_dir = $convertedPathInfo['basename'];
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
@chown($this->base_work_dir.'/'.$this->created_dir, 'www-data');
- Exclude checks
Method name "_get_remote_ppt2lp_files" should not be prefixed with an underscore to indicate visibility Open
private function _get_remote_ppt2lp_files($file, $size = null)
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir, $permissionFolder);
- Exclude checks
Variable "file_data" is not in valid camel caps format Open
'file_data' => $file_data,
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$this->base_work_dir = $originalPathInfo['dirname'];
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
$result = preg_match('/^([a-zA-Z0-9]*):\/\/([^\/]*)\//', $ppt2lp_host, $matches);
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
if (file_exists($this->base_work_dir.'/'.$this->created_dir)) {
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
DocumentManager::delete_document($_course, $this->created_dir, $this->base_work_dir);
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
$cmd .= ' "'.$this->base_work_dir.'/'.$this->file_path.'" "'.$this->base_work_dir.'/'.$this->created_dir.'"';
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
if (file_exists($this->base_work_dir.'/'.$this->created_dir)) {
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
filesize($this->base_work_dir.'/'.$this->created_dir),
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
'location' => $ppt2lp_host,
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
if ('https' === substr($ppt2lp_host, 0, 5)) {
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
$cmd .= ' "'.$this->base_work_dir.'/'.$this->file_path.'" "'.$this->base_work_dir.'/'.$this->created_dir.'"';
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chown($this->base_work_dir.'/'.$this->created_dir, 'www-data');
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
DocumentManager::delete_document($_course, $this->created_dir, $this->base_work_dir);
- Exclude checks
Variable "file_name" is not in valid camel caps format Open
'file_name' => $file_name,
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
if (file_exists($this->base_work_dir.'/'.$this->created_dir)) {
- Exclude checks
Variable "base_work_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir.'/'.$this->created_dir, $permissionFile);
- Exclude checks
Variable "created_dir" is not in valid camel caps format Open
@chmod($this->base_work_dir.'/'.$this->created_dir, $permissionFile);
- Exclude checks
Variable "file_path" is not in valid camel caps format Open
@chmod($this->base_work_dir.'/'.$this->file_path, $permissionFile);
- Exclude checks
Variable "ppt2lp_host" is not in valid camel caps format Open
$uri = $ppt2lp_host;
- Exclude checks
Variable "secret_key" is not in valid camel caps format Open
$secret_key = sha1(api_get_setting('service_ppt2lp', 'ftp_password'));
- Exclude checks
The variable $resource_id is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_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 $image_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_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 $image_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $converter_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $img_data is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $course_code is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_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 $resource_id is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_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 $user_id is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_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 $ppt2lp_host is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $ppt2lp_host is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $converter_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $converter_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $class_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $class_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $img_data is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $course_code is not named in camelCase. Open
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
parent::__construct($course_code, $resource_id, $user_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 $converter_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $class_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $converter_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $image_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $action_after_conversion is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $converter_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $class_path is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- 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 $_course is not named in camelCase. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- 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 $file_data is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $_course is not named in camelCase. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- 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 $ppt2lp_host is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $_course is not named in camelCase. Open
public function convertCopyDocument($originalPath, $convertedPath, $convertedTitle)
{
$_course = api_get_course_info();
$ids = [];
$originalPathInfo = pathinfo($originalPath);
- 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 $ppt2lp_host is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $secret_key is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $secret_key is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $file_name is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $file_name is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $ppt2lp_host is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $ppt2lp_host is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $ppt2lp_host is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 $file_data is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- 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 method make_lp is not named in camelCase. Open
abstract public function make_lp();
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method convert_document is not named in camelCase. Open
public function convert_document($file, $action_after_conversion = 'make_lp', $size = null)
{
$_course = api_get_course_info();
$this->file_name = pathinfo($file['name'], PATHINFO_FILENAME);
// Create the directory
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_docs_to_visio is not named in camelCase. Open
abstract public function add_docs_to_visio();
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_command_parameters is not named in camelCase. Open
abstract public function add_command_parameters();
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method _get_remote_ppt2lp_files is not named in camelCase. Open
private function _get_remote_ppt2lp_files($file, $size = null)
{
// host
$ppt2lp_host = api_get_setting('service_ppt2lp', 'host');
// SOAP URI (just the host)
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}