for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\CLImate\Util;
class Cursor
{
/**
* Move the cursor up in the terminal x number of lines.
*
* @param int $lines
* @return string
*/
public function up($lines = 1)
return "\e[{$lines}A";
}
* Move the cursor down in the terminal x number of lines.
public function down($lines = 1)
return "\e[{$lines}B";
* Move the cursor right in the terminal x number of columns.
* @param int $cols
$cols
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 right($columns = 1)
return "\e[{$columns}C";
* Move the cursor left in the terminal x number of columns.
public function left($cols = 1)
return "\e[{$cols}D";
* Move cursor to the beginning of the current line.
public function startOfCurrentLine()
return "\r";
* Delete the current line to the end.
public function deleteCurrentLine()
return "\e[K";
* Get the style for hiding the cursor
public function hide()
return "\e[?25l";
* Get the style for returning the cursor to its default
public function defaultStyle()
return "\e[?25h";
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.