<NME> transformer.stub
<BEF> <?php

$NAMESPACE$

use League\Fractal\TransformerAbstract;
use $MODEL$;

/**
 * Class $CLASS$Transformer.
 *
 * @package $NAMESPACE$
 */
class $CLASS$Transformer extends TransformerAbstract
{
    /**
     * Transform the $CLASS$ entity.
     *
     *
     * @return array
     */
    public function transform($CLASS$ $model) {
        return [
            'id'         => (int)$model->id,


            /* place your other model properties here */

            'created_at' => $model->created_at,
            'updated_at' => $model->updated_at
        ];
    }
}

<MSG> Make transformer stub PSR-2 compliant

Make transformer stub's transform() method definition PSR-2 compliant.

<DFF> @@ -18,7 +18,8 @@ class $CLASS$Transformer extends TransformerAbstract
      *
      * @return array
      */
-    public function transform($CLASS$ $model) {
+    public function transform($CLASS$ $model)
+    {
         return [
             'id'         => (int)$model->id,
 

Make transformer stub PSR-2 compliant