for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the zibios/sharep.
*
* (c) Zbigniew Ślązak
*/
namespace App\Slack\InteractiveComponent;
use App\Slack\MessageBuilder\Layout;
use App\Slack\PredefinedMessage\SharepHelpMessage;
use JMS\Serializer\SerializerInterface;
class ComponentHelper
{
/** @var SerializerInterface */
private $serializer;
/** @var SharepHelpMessage */
private $sharepHelpMessage;
public function __construct(SerializerInterface $serializer, SharepHelpMessage $sharepHelpMessage)
$this->serializer = $serializer;
$this->sharepHelpMessage = $sharepHelpMessage;
}
public function handleWebhook(array $data): Layout
$data
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $this->sharepHelpMessage->generate();
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.