for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Htsl\Embedment;
use Htsl\Embedment\Contracts\AEmbedment;
use Htsl\ReadingBuffer\Line;
////////////////////////////////////////////////////////////////
class CodeEmbedment extends AEmbedment
{
/**
* Parsing line.
*
* @access public
* @param \Htsl\ReadingBuffer\Line $line
* @return \Htsl\Embedment\Contracts
CodeEmbedment
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
*/
public function parseLine( Line$line ):parent
$content= '<code>'.htmlentities($line->fullContent).'</code>';
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
$a = "a"; $ab = "ab"; $abc = "abc";
will have no issues, while
will report issues in lines 1 and 2.
$indentation= $this->document->indentation;
false!==$indentation and $content= str_repeat($indentation,$this->document->indentLevel).$content."\n";
$this->content.= $content;
return $this;
}
This check marks files that end in a newline character, i.e. an empy line.
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.