for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jacobemerick\Web\Domain\Stream\YouTube;
use Aura\Sql\ConnectionLocator;
class MysqlYouTubeRepository implements YouTubeRepositoryInterface
{
/** @var ConnectionLocator */
protected $connections;
/**
* @param ConnectonLocator $connections
*/
public function __construct(ConnectionLocator $connections)
$this->connections = $connections;
}
* @param integer $id
*
* @return array|false
public function getYouTubeById($id)
$query = "
SELECT *
FROM `jpemeric_stream`.`youtube`
WHERE `id` = :id
LIMIT 1";
$bindings = [
'id' => $id,
];
return $this
->connections
->getRead()
->fetchOne($query, $bindings);
* @param string $title
$title
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
public function getYouTubeByVideoId($videoId)
WHERE `video_id` = :video_id
'video_id' => $videoId,
public function getUnmappedYouTubes()
SELECT `id`, `date`
LEFT JOIN `jpemeric_stream`.`post`
ON `post`.`type_id` = `youtube`.`id` AND `post`.`id` IS NULL";
->fetchAll($query);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.