for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Gitamin.
*
* Copyright (C) 2015-2016 The Gitamin Team
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gitamin\Commands\ProjectNamespace;
final class AddProjectNamespaceCommand
{
/**
* The project team name.
* @var string
public $name;
* The project team slug.
public $path;
* The project team order.
public $type;
* The validation rules.
* @var string[]
public $rules = [
'name' => 'required|string',
'path' => 'required|string',
'type' => 'string',
];
* Create a add project team command instance.
* @param string $name
* @param int $order
$order
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.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($name, $path, $type)
$this->name = $name;
$this->path = $path;
$this->type = $type;
}
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.