for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ownCloud - Mail
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
* @author Christoph Wurst <[email protected]>
* @copyright Christoph Wurst 2016
*/
namespace OCA\Mail\Controller;
use OCP\AppFramework\Controller;
use OCP\IRequest;
use OCA\Mail\Service\AutoCompletion\AutoCompleteService;
class AutoCompleteController extends Controller {
/** @var AutoCompleteService */
private $service;
* @param string $appName
* @param IRequest $request
* @param AutoCompleteService $service
* @param string $UserId
$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 $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 __construct($appName, IRequest $request,
AutoCompleteService $service) {
parent::__construct($appName, $request);
$this->service = $service;
}
* @NoAdminRequired
* @param string $term
* @return array
public function index($term) {
return $this->service->findMatches($term);
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.