<commit_before><?php namespace Atrakeur\Forum\Controllers;

use \Atrakeur\Forum\Models\ForumCategory;
use \Atrakeur\Forum\Models\ForumTopic;
use \Atrakeur\Forum\Models\ForumMessage;

abstract class AbstractForumController extends \Controller {

	protected $layout = 'forum::layouts.master';

	protected function setupLayout()
	{
		if (!is_null($this->layout))
		{
			$this->layout = \View::make($this->layout);
		}
	}

	public function getIndex()
	{
		$categories = ForumCategory::whereTopLevel()->with('subcategories')->get();

		$this->layout->content = \View::make('forum::index', compact('categories'));
	}<commit_msg>Fixed codestyle<commit_after><?php namespace Atrakeur\Forum\Controllers;

use \Atrakeur\Forum\Models\ForumCategory;
use \Atrakeur\Forum\Models\ForumTopic;
use \Atrakeur\Forum\Models\ForumMessage;

abstract class AbstractForumController extends \Controller {

	protected $layout = 'forum::layouts.master';

	protected function setupLayout()
	{
		if ($this->layout != NULL)
		{
			$this->layout = \View::make($this->layout);
		}
	}

	public function getIndex()
	{
		$categories = ForumCategory::whereTopLevel()->with('subcategories')->get();

		$this->layout->content = \View::make('forum::index', compact('categories'));
	}
{'fraction_non_alphanumeric': 0.16318327974276528, 'fraction_numerical': 0.0, 'mean_word_length': 5.552631578947368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7247228', 'n_tokens_mistral': 427, 'n_tokens_neox': 395, 'n_words': 66}