RebelCode/rcmod-eddbk-rest-api

View on GitHub
src/Transformer/BookingTransformer.php

Summary

Maintainability
A
1 hr
Test Coverage

Method _getBookingMapConfig has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function _getBookingMapConfig()
    {
        return [
            [
                MapTransformer::K_SOURCE => 'id',
Severity: Minor
Found in src/Transformer/BookingTransformer.php - About 1 hr to fix

    Avoid unused local variables such as '$_key'.
    Open

            foreach ($resources as $_key => $resourceId) {

    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

    There are no issues that match your filters.

    Category
    Status