chamilo/chamilo-lms

View on GitHub
public/plugin/h5pimport/src/H5pImplementation.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$replacements'.
Open

    public function t($message, $replacements = [])

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$machineName'.
Open

    public function alterLibrarySemantics(&$semantics, $machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

    public function loadContent($id): array

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

    public function updateContentFields($id, $fields)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraryId'.
Open

    public function getNumContent($libraryId, $skip = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$stream'.
Open

    public function fetchExternalData($url, $data = null, $blocking = true, $stream = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraries'.
Open

    public function getLibraryConfig($libraries = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$majorVersion'.
Open

    public function getLibraryId($machineName, $majorVersion = null, $minorVersion = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentMainId'.
Open

    public function updateContent($content, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$name'.
Open

    public function setOption($name, $value)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$message'.
Open

    public function setInfoMessage($message)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$dependencies'.
Open

    public function saveLibraryDependencies($libraryId, $dependencies, $dependency_type)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentId'.
Open

    public function copyLibraryUsage($contentId, $copyFromId, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraryId'.
Open

    public function deleteLibraryDependencies($libraryId)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$library_id'.
Open

    public function deleteCachedAssets($library_id)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentTypeCache'.
Open

    public function replaceContentTypeCache($contentTypeCache)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$content'.
Open

    public function insertContent($content, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentMainId'.
Open

    public function copyLibraryUsage($contentId, $copyFromId, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraries'.
Open

    public function saveCachedAssets($key, $libraries)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$data'.
Open

    public function fetchExternalData($url, $data = null, $blocking = true, $stream = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$defaultContentWhitelist'.
Open

    public function getWhitelist($isLibrary, $defaultContentWhitelist, $defaultLibraryWhitelist)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$library'.
Open

    public function deleteLibrary($library)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$machineName'.
Open

    public function setLibraryTutorialUrl($machineName, $tutorialUrl)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$message'.
Open

    public function setErrorMessage($message, $code = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$slug'.
Open

    public function isContentSlugAvailable($slug)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$key'.
Open

    public function saveCachedAssets($key, $libraries)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$code'.
Open

    public function setErrorMessage($message, $code = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentMainId'.
Open

    public function insertContent($content, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$dependency_type'.
Open

    public function saveLibraryDependencies($libraryId, $dependencies, $dependency_type)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentId'.
Open

    public function deleteLibraryUsage($contentId)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraryId'.
Open

    public function getLibraryUsage($libraryId, $skipContent = false)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$majorVersion'.
Open

    public function alterLibrarySemantics(&$semantics, $machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$new'.
Open

    public function saveLibraryData(&$libraryData, $new = true)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$content'.
Open

    public function updateContent($content, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentId'.
Open

    public function saveLibraryUsage($contentId, $librariesInUse)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$skipContent'.
Open

    public function getLibraryUsage($libraryId, $skipContent = false)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$minorVersion'.
Open

    public function loadLibrarySemantics($machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$type'.
Open

    public function loadContentDependencies($id, $type = null): array

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$library'.
Open

    public function libraryHasUpgrade($library)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$tutorialUrl'.
Open

    public function setLibraryTutorialUrl($machineName, $tutorialUrl)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$blocking'.
Open

    public function fetchExternalData($url, $data = null, $blocking = true, $stream = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$fileName'.
Open

    public function getLibraryFileUrl($libraryFolderName, $fileName)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$library'.
Open

    public function isPatchedLibrary($library)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$copyFromId'.
Open

    public function copyLibraryUsage($contentId, $copyFromId, $contentMainId = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$librariesInUse'.
Open

    public function saveLibraryUsage($contentId, $librariesInUse)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$default'.
Open

    public function getOption($name, $default = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$skip'.
Open

    public function getNumContent($libraryId, $skip = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$type'.
Open

    public function getMessages($type)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraryId'.
Open

    public function saveLibraryDependencies($libraryId, $dependencies, $dependency_type)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

    public function loadContentDependencies($id, $type = null): array

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$content'.
Open

    public function afterExportCreated($content, $filename)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$minorVersion'.
Open

    public function getLibraryId($machineName, $majorVersion = null, $minorVersion = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraryData'.
Open

    public function saveLibraryData(&$libraryData, $new = true)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$machineName'.
Open

    public function loadLibrarySemantics($machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$filename'.
Open

    public function afterExportCreated($content, $filename)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$id'.
Open

    public function hasPermission($permission, $id = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$url'.
Open

    public function fetchExternalData($url, $data = null, $blocking = true, $stream = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$libraryFolderName'.
Open

    public function getLibraryFileUrl($libraryFolderName, $fileName)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$value'.
Open

    public function setOption($name, $value)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$minorVersion'.
Open

    public function alterLibrarySemantics(&$semantics, $machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$machineName'.
Open

    public function getLibraryId($machineName, $majorVersion = null, $minorVersion = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$isLibrary'.
Open

    public function getWhitelist($isLibrary, $defaultContentWhitelist, $defaultLibraryWhitelist)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$majorVersion'.
Open

    public function loadLibrarySemantics($machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$semantics'.
Open

    public function alterLibrarySemantics(&$semantics, $machineName, $majorVersion, $minorVersion)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$fields'.
Open

    public function updateContentFields($id, $fields)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$type'.
Open

    public function getLibraryStats($type)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$defaultLibraryWhitelist'.
Open

    public function getWhitelist($isLibrary, $defaultContentWhitelist, $defaultLibraryWhitelist)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentId'.
Open

    public function resetContentUserData($contentId)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$contentId'.
Open

    public function deleteContentData($contentId)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$library_ids'.
Open

    public function clearFilteredParameters($library_ids)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$permission'.
Open

    public function hasPermission($permission, $id = null)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

The parameter $library_ids is not named in camelCase.
Open

    public function clearFilteredParameters($library_ids)
    {
        // TODO: Implement clearFilteredParameters() method.
    }

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 $library_id is not named in camelCase.
Open

    public function deleteCachedAssets($library_id)
    {
        // TODO: Implement deleteCachedAssets() method.
    }

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 $dependency_type is not named in camelCase.
Open

    public function saveLibraryDependencies($libraryId, $dependencies, $dependency_type)
    {
        // TODO: Implement saveLibraryDependencies() method.
    }

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

Missing class doc comment
Open

class H5pImplementation implements \H5PFrameworkInterface

Missing function doc comment
Open

    public function loadAddons()

Missing function doc comment
Open

    public function saveLibraryData(&$libraryData, $new = true)

Missing function doc comment
Open

    public function loadLibrarySemantics($machineName, $majorVersion, $minorVersion)

Missing function doc comment
Open

    public function getNumNotFiltered()

Missing function doc comment
Open

    public function loadLibraries()

Missing function doc comment
Open

    public function isPatchedLibrary($library)

Missing function doc comment
Open

    public function isContentSlugAvailable($slug)

Missing function doc comment
Open

    public function getMessages($type)

Missing function doc comment
Open

    public function getLibraryId($machineName, $majorVersion = null, $minorVersion = null)

Missing function doc comment
Open

    public function setOption($name, $value)

Missing function doc comment
Open

    public function getAdminUrl()

Missing function doc comment
Open

    public function deleteLibraryDependencies($libraryId)

Missing function doc comment
Open

    public function getLibraryConfig($libraries = null)

Missing function doc comment
Open

    public function mayUpdateLibraries()

Missing function doc comment
Open

    public function getPlatformInfo()

Missing function doc comment
Open

    public function setErrorMessage($message, $code = null)

Missing function doc comment
Open

    public function deleteContentData($contentId)

Missing function doc comment
Open

    public function __construct(H5pImport $h5pImport)

Missing function doc comment
Open

    public function setLibraryTutorialUrl($machineName, $tutorialUrl)

Missing function doc comment
Open

    public function getUploadedH5pFolderPath()

Missing function doc comment
Open

    public function copyLibraryUsage($contentId, $copyFromId, $contentMainId = null)

Missing function doc comment
Open

    public function deleteLibrary($library)

Missing function doc comment
Open

    public function getUploadedH5pPath()

Missing function doc comment
Open

    public function isInDevMode()

Missing function doc comment
Open

    public function resetContentUserData($contentId)

Variable "dependency_type" is not in valid camel caps format
Open

    public function saveLibraryDependencies($libraryId, $dependencies, $dependency_type)

Missing function doc comment
Open

    public function getLibraryUsage($libraryId, $skipContent = false)

Missing function doc comment
Open

    public function loadLibrary($machineName, $majorVersion, $minorVersion)

Missing function doc comment
Open

    public function getLibraryContentCount()

Missing function doc comment
Open

    public function hasPermission($permission, $id = null)

Missing function doc comment
Open

    public function setInfoMessage($message)

Missing function doc comment
Open

    public function t($message, $replacements = [])

Missing function doc comment
Open

    public function saveLibraryDependencies($libraryId, $dependencies, $dependency_type)

Missing function doc comment
Open

    public function updateContentFields($id, $fields)

Missing function doc comment
Open

    public function deleteCachedAssets($library_id)

Missing function doc comment
Open

    public function fetchExternalData($url, $data = null, $blocking = true, $stream = null)

Variable "library_ids" is not in valid camel caps format
Open

    public function clearFilteredParameters($library_ids)

Missing function doc comment
Open

    public function getNumAuthors()

Variable "library_id" is not in valid camel caps format
Open

    public function deleteCachedAssets($library_id)

Missing function doc comment
Open

    public function afterExportCreated($content, $filename)

Missing function doc comment
Open

    public function updateContent($content, $contentMainId = null)

Missing function doc comment
Open

    public function alterLibrarySemantics(&$semantics, $machineName, $majorVersion, $minorVersion)

Missing function doc comment
Open

    public function lockDependencyStorage()

Missing function doc comment
Open

    public function getNumContent($libraryId, $skip = null)

Missing function doc comment
Open

    public function getLibraryStats($type)

Missing function doc comment
Open

    public function saveLibraryUsage($contentId, $librariesInUse)

Missing function doc comment
Open

    public function loadContent($id): array

Missing function doc comment
Open

    public function clearFilteredParameters($library_ids)

Missing function doc comment
Open

    public function getOption($name, $default = null)

Missing function doc comment
Open

    public function insertContent($content, $contentMainId = null)

Missing function doc comment
Open

    public function unlockDependencyStorage()

Missing function doc comment
Open

    public function saveCachedAssets($key, $libraries)

Missing function doc comment
Open

    public function libraryHasUpgrade($library)

Missing function doc comment
Open

    public function getLibraryFileUrl($libraryFolderName, $fileName)

Missing function doc comment
Open

    public function getWhitelist($isLibrary, $defaultContentWhitelist, $defaultLibraryWhitelist)

Missing function doc comment
Open

    public function deleteLibraryUsage($contentId)

Missing function doc comment
Open

    public function loadContentDependencies($id, $type = null): array

Missing function doc comment
Open

    public function replaceContentTypeCache($contentTypeCache)

There are no issues that match your filters.

Category
Status