features/slack/lib/message_formatter.php

Summary

Maintainability
A
0 mins
Test Coverage

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class SlackMessageFormatter {

Expected 0 spaces between opening bracket and argument "$userId"; 1 found
Open

    public function messageDiv( $userId, $messageText, $messageDateTime) {

Opening brace of a class must be on the line after the definition
Open

class SlackMessageFormatter {

The closing brace for the class must go on the next line after the body
Open

}

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            $this->message);

Opening brace should be on a new line
Open

    public function code() {

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $this->message = preg_replace_callback('/<!(.*?)>/s',

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $this->message = preg_replace_callback('#```(.*?)```#s',

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            $this->message);

Opening brace should be on a new line
Open

    public function messageDiv( $userId, $messageText, $messageDateTime) {

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            $this->message);

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            $this->message);

Opening brace should be on a new line
Open

    public function getMessage() {

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $this->message);

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $this->message);

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $this->message = preg_replace_callback('/<#(.*?)>/s',

Opening brace should be on a new line
Open

    public function setMessage($message) {

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $this->message);

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $this->message = preg_replace_callback('#<http(.*?)>#s',

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $this->message);

Opening brace should be on a new line
Open

    public function anchorTag() {

Opening brace should be on a new line
Open

    public function userName() {

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $this->message);

Opening brace should be on a new line
Open

    public function teamName() {

Opening brace should be on a new line
Open

    public function __construct($userList) {

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $this->message = preg_replace_callback('#<@(.*?)>#s',

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            $this->message);

Opening brace should be on a new line
Open

    public function channelName() {

There are no issues that match your filters.

Category
Status