Code Duplication    Length = 8-8 lines in 2 locations

app/modules/blog/controllers/PostController.php 2 locations

@@ 62-69 (lines=8) @@
59
        return $v;
60
    }
61
62
    public function actionView()
63
    {
64
        $blog = Blog::findByPk($this->container->request->query('id'), $this->container);
65
        $v = new View($this->container);
66
        $v->addParameter('model', $blog);
67
68
        return $v;
69
    }
70
71
    public function actionCreate()
72
    {
@@ 91-98 (lines=8) @@
88
        return $v;
89
    }
90
91
    public function actionUpdate()
92
    {
93
        $blog = Blog::findByPk($this->container->request->query('id'), $this->container);
94
95
        $blog->name = 'setup-er';
96
97
        return $blog->save();
98
    }
99
100
    public function actionDelete()
101
    {