for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Vultr PHP library.
*
* (c) Albert Leitato <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Vultr\Api;
use Vultr\Entity\Backup as BackupEntity;
/**
* @author Albert Leitato <[email protected]>
class Backup extends AbstractApi
{
* List all backups on the current account.
* @param int $sub_id Filter result set to only contain backups of this subscription object
$sub_id
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.
* @param string $backup_id filter result set to only contain this backup
$backup_id
* @return BackupEntity
public function list($subId = null, $backupId = null)
$backups = $this->adapter->get(\sprintf('%s/backup/list?SUBID=%d&BACKUPID=%s', $this->endpoint, $subId, $backupId));
return $this->handleResponse($backups, BackupEntity::class, true);
$this->handleResponse($b...y\Backup::class, true);
array|object
array
Vultr\Api\Backup::list
Vultr\Entity\Backup
}
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.