<?php
namespace Phragile;

class StatusDispatcherFactory {
	private $workboardMode = false;

	public function __construct($workboardMode)
	{
		$this->workboardMode = $workboardMode;
	}

	/**
	 * @return StatusDispatcher
	 */
	public function createInstance()
	{
		if ($this->workboardMode) return new StatusByWorkboardDispatcher();
		else return new StatusByStatusFieldDispatcher();
	}
}

<?php
namespace Phragile;

class StatusDispatcherFactory {
	private $workboardMode = false;

	public function __construct($workboardMode)
	{
		$this->workboardMode = $workboardMode;
	}

	/**
	 * @return StatusDispatcher
	 */
	public function createInstance()
	{
		return $this->workboardMode
			? new StatusByWorkboardDispatcher()
			: new StatusByStatusFieldDispatcher();
	}
}

Use ternary instead of if-statement.
Use ternary instead of if-statement.
