Code Duplication    Length = 8-8 lines in 2 locations

models/Map.php 1 location

@@ 51-58 (lines=8) @@
48
    /**
49
     * {@inheritdoc}
50
     */
51
    protected function assignResult($map)
52
    {
53
        $this->name = $map['name'];
54
        $this->description = $map['description'];
55
        $this->alias = $map['alias'];
56
        $this->avatar = $map['avatar'];
57
        $this->status = $map['status'];
58
    }
59
60
    /**
61
     * Add a new map

models/Page.php 1 location

@@ 64-71 (lines=8) @@
61
    /**
62
     * {@inheritdoc}
63
     */
64
    protected function assignResult($page)
65
    {
66
        $this->name = $page['name'];
67
        $this->alias = $page['alias'];
68
        $this->author = $page['author'];
69
        $this->home = $page['home'];
70
        $this->status = $page['status'];
71
    }
72
73
    /**
74
     * {@inheritdoc}