<commit_before><?php namespace CoandaCMS\Coanda\Core\Presenters;

/**
 * Class Presenter
 * @package CoandaCMS\Coanda\Core\Presenters
 */
abstract class Presenter {

    /**
     * @var string
     */
    protected $date_format = 'd/m/Y H:i';

	/**
	 * @var mixed
	 */
	protected $model;

	/**
	 * @param $model
	 */
	function __construct($model)
	{
		$this->model = $model;
	}

	/**
	 * Allow for property-style retrieval
	 *
	 * @param $property
	 * @return mixed
	 */
	public function __get($property)
	{
		if (method_exists($this, $property))
		{
			return $this->{$property}();
		}

		return $this->model->{$property};
	}

    /**
     * @return string
     */
    public function updated_at()
	{
		return $this->format_date('updated_at');
	}

    /**
     * @return string
     */
    public function created_at()
	{
		return $this->format_date('created_at');
	}

    /**
     * @param $property
     * @return string
     */
    public function format_date($property, $format = false)
	{
		if ($this->model->$property && method_exists($this->model->$property, 'format'))
		{
			if (!$format)
			{
				$format = $this->date_format;
			}
			
			return $this->model->$property->format($format);
		}
		
		return '';
	}
} <commit_msg>Fixed missing method visibility<commit_after><?php namespace CoandaCMS\Coanda\Core\Presenters;

/**
 * Class Presenter
 * @package CoandaCMS\Coanda\Core\Presenters
 */
abstract class Presenter {

    /**
     * @var string
     */
    protected $date_format = 'd/m/Y H:i';

	/**
	 * @var mixed
	 */
	protected $model;

	/**
	 * @param $model
	 */
	public function __construct($model)
	{
		$this->model = $model;
	}

	/**
	 * Allow for property-style retrieval
	 *
	 * @param $property
	 * @return mixed
	 */
	public function __get($property)
	{
		if (method_exists($this, $property))
		{
			return $this->{$property}();
		}

		return $this->model->{$property};
	}

    /**
     * @return string
     */
    public function updated_at()
	{
		return $this->format_date('updated_at');
	}

    /**
     * @return string
     */
    public function created_at()
	{
		return $this->format_date('created_at');
	}

    /**
     * @param $property
     * @return string
     */
    public function format_date($property, $format = false)
	{
		if ($this->model->$property && method_exists($this->model->$property, 'format'))
		{
			if (!$format)
			{
				$format = $this->date_format;
			}
			
			return $this->model->$property->format($format);
		}
		
		return '';
	}
} 
{'fraction_non_alphanumeric': 0.17300760913095714, 'fraction_numerical': 0.0, 'mean_word_length': 2.636098981077147, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '6809888', 'n_tokens_mistral': 930, 'n_tokens_neox': 833, 'n_words': 160}