log/Plugin.php
private function slackify($data)
    {
        $fields = array();

        foreach ($data as $key => $value) {
            $obj = new \stdClass();
            $obj->title = $key;
            $obj->value = $value;
            $obj->short = true;

            $fields[] = $obj;
        }

        return array('text' => sprintf('%s - %s (%s)', $data['projectname'], $data['task'], $data['step']), 'fields' => $fields);
    }
private function slackify($data)
    {
        $fields = array();

        foreach ($data as $key => $value) {
            $obj = new \stdClass();
            $obj->title = $key;
            $obj->value = $value;
            $obj->short = true;

            $fields[] = $obj;
        }

        return array('text' => sprintf('%s - %s (%s)', $data['projectname'], $data['task'], $data['step']), 'fields' => $fields);
    }
private function slackify ( $ data ) { $ fields = array ( ) ; foreach ( $ data as $ key => $ value ) { $ obj = new \ stdClass ( ) ; $ obj -> title = $ key ; $ obj -> value = $ value ; $ obj -> short = true ; $ fields [ ] = $ obj ; } return array ( 'text' => sprintf ( '%s - %s (%s)' , $ data [ 'projectname' ] , $ data [ 'task' ] , $ data [ 'step' ] ) , 'fields' => $ fields ) ; }
Format the data in slack format

@param $data
@return string
Format the data in slack format