Code Duplication    Length = 9-9 lines in 2 locations

src/ORM/ArrayList.php 1 location

@@ 120-128 (lines=9) @@
117
        return $this;
118
    }
119
120
    public function debug()
121
    {
122
        $val = "<h2>" . static::class . "</h2><ul>";
123
        foreach ($this->toNestedArray() as $item) {
124
            $val .= "<li style=\"list-style-type: disc; margin-left: 20px\">" . Debug::text($item) . "</li>";
125
        }
126
        $val .= "</ul>";
127
        return $val;
128
    }
129
130
    /**
131
     * Return this list as an array and every object it as an sub array as well

src/ORM/DataList.php 1 location

@@ 745-753 (lines=9) @@
742
        return $this;
743
    }
744
745
    public function debug()
746
    {
747
        $val = "<h2>" . static::class . "</h2><ul>";
748
        foreach ($this->toNestedArray() as $item) {
749
            $val .= "<li style=\"list-style-type: disc; margin-left: 20px\">" . Debug::text($item) . "</li>";
750
        }
751
        $val .= "</ul>";
752
        return $val;
753
    }
754
755
    /**
756
     * Returns a map of this list