for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OCA\Calendar\Service;
use Exception;
use OCP\AppFramework\Http;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\MultipleObjectsReturnedException;
use OCA\Calendar\Db\OtoLayer;
use OCA\Calendar\Db\OtoLayerMapper;
class OtoLayerService {
private $mapper;
/**
* @param string $appName
$appName
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 IRequest $request an instance of the request
$request
* @param OtoLayerMapper $mapper the dbo mapper
*/
public function __construct(OtoLayerMapper $mapper){
$this->mapper = $mapper;
}
* @NoCSRFRequired
*
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
* @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result
* @param integer $otoLayerId
* @param string $password
public function passwordCheck($otoLayerId, $password){
$isVerified = $this->mapper->passwordCheck($otoLayerId, $password);
return $isVerified;
public function deleteLayer($otoLayerId){
$this->mapper->deleteLayer($otoLayerId);
public function deleteBySourceId($sourceId,$userId){
$this->mapper->deleteBySourceId($sourceId,$userId);
public function findUserLayers($userId){
$this->mapper->findUserLayers($userId);
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.