<?php
/**
 * Created by PhpStorm.
 * User: kayladnls
 * Date: 10/16/14
 * Time: 10:54 PM
 */

namespace OpenCFP\Controller;

use Silex\Application;;


trait FlashableTrait
{
    public function getFlash(Application $app)
    {
        $flasg = $app['session']->get('flash');
        $this->clearFlash($app);

        return $flash;
    }

    public function clearFlash(Application $app)
    {
        $app['session']->set('flash', null);
    }
} 
<?php
/**
 * Created by PhpStorm.
 * User: kayladnls
 * Date: 10/16/14
 * Time: 10:54 PM
 */

namespace OpenCFP\Controller;

use Silex\Application;

trait FlashableTrait
{
    /**
     * Get Session Flash Message
     *
     * @param  Application $app OpenCFP Application
     * @return array
     */
    public function getFlash(Application $app)
    {
        $flash = $app['session']->get('flash');
        $this->clearFlash($app);

        return $flash;
    }

    /**
     * Clear Session Flash Message
     *
     * @param  Application $app OpenCFP Application
     */
    public function clearFlash(Application $app)
    {
        $app['session']->set('flash', null);
    }
}
Fix typo and add docblocks flashable trait
Fix typo and add docblocks flashable trait
