public function isTrelloWebhook(Request $request)
    {
        if (!$request->getMethod() === 'POST') {
            return false;
        }

        if (!$request->headers->has('X-Trello-Webhook')) {
            return false;
        }

        return true;
    }
public function isTrelloWebhook(Request $request)
    {
        if (!$request->getMethod() === 'POST') {
            return false;
        }

        if (!$request->headers->has('X-Trello-Webhook')) {
            return false;
        }

        return true;
    }
public function isTrelloWebhook ( Request $ request ) { if ( ! $ request -> getMethod ( ) === 'POST' ) { return false ; } if ( ! $ request -> headers -> has ( 'X-Trello-Webhook' ) ) { return false ; } return true ; }
Checks whether a given request is a Trello webhook

@param Request $request

@return bool
Checks whether a given request is a Trello webhook