for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Service\Dev;
use Psr\Log\LoggerInterface;
class Twilio extends \Services_Twilio
{
private $logger;
public $account;
public $messages;
public function __construct(LoggerInterface $logger)
$this->logger = $logger;
$this->account = $this;
$this->messages = $this;
}
public function sendMessage($from, $to, $message)
$from
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->logger->info('Message sent to '.$to.' with content: '.$message);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.