Code Duplication    Length = 5-7 lines in 2 locations

class/smartobjectcontroller.php 2 locations

@@ 225-229 (lines=5) @@
222
    {
223
        $objectid = isset($_POST[$this->handler->keyName]) ? (int)$_POST[$this->handler->keyName] : 0;
224
        if ($debug) {
225
            if ($x_param) {
226
                $smartObj = $this->handler->getD($objectid, true, $x_param);
227
            } else {
228
                $smartObj = $this->handler->getD($objectid);
229
            }
230
        } else {
231
            if ($x_param) {
232
                $smartObj = $this->handler->get($objectid, true, false, false, $x_param);
@@ 230-236 (lines=7) @@
227
            } else {
228
                $smartObj = $this->handler->getD($objectid);
229
            }
230
        } else {
231
            if ($x_param) {
232
                $smartObj = $this->handler->get($objectid, true, false, false, $x_param);
233
            } else {
234
                $smartObj = $this->handler->get($objectid);
235
            }
236
        }
237
238
        // if handler is the Multilanguage handler, we will need to treat this for multilanguage
239
        if (is_subclass_of($this->handler, 'smartpersistablemlobjecthandler')) {