Code Duplication    Length = 10-10 lines in 2 locations

src/Config/ConfigFileConverter.php 1 location

@@ 68-77 (lines=10) @@
65
        return $configFile;
66
    }
67
68
    private function objectsToArrays($data)
69
    {
70
        $data = (array) $data;
71
72
        foreach ($data as $key => $value) {
73
            $data[$key] = is_object($value) ? $this->objectsToArrays($value) : $value;
74
        }
75
76
        return $data;
77
    }
78
79
    private function arraysToObjects(array $data)
80
    {

src/Module/RootModuleFileConverter.php 1 location

@@ 185-194 (lines=10) @@
182
        }
183
    }
184
185
    private function objectsToArrays($data)
186
    {
187
        $data = (array) $data;
188
189
        foreach ($data as $key => $value) {
190
            $data[$key] = is_object($value) ? $this->objectsToArrays($value) : $value;
191
        }
192
193
        return $data;
194
    }
195
}
196