Code Duplication    Length = 10-10 lines in 2 locations

src/Blog/BlogController.php 1 location

@@ 50-59 (lines=10) @@
47
	 *
48
	 * @return void
49
	 */
50
	public function listAction()
51
	{
52
		$all = $this->blog->findAll();
53
	 
54
		$this->theme->setTitle("List all posts");
55
		$this->views->add('blog/list', [
56
			'posts' => $all,
57
			'title' => "All blogposts",
58
		]);
59
	}
60
	
61
	/**
62
	 * View blogpost with slug.

src/Page/PageController.php 1 location

@@ 45-54 (lines=10) @@
42
	 *
43
	 * @return void
44
	 */
45
	public function listAction()
46
	{
47
		$all = $this->page->findAll();
48
	 
49
		$this->theme->setTitle("List all pages");
50
		$this->views->add('page/list', [
51
			'pages' => $all,
52
			'title' => "Editable pages",
53
		]);
54
	}
55
	
56
	/**
57
	 * Views page with with slug.