for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Htsl\Parser\Node;
use Htsl\Htsl;
use Htsl\ReadingBuffer\Line;
use Htsl\Parser\Node\Contracts\ANode;
use Htsl\Parser\Section;
////////////////////////////////////////////////////////////////
class NamelessSectionNode extends SectionNode
{
/**
* Real constructor.
*
* @access protected
* @return \Htsl\Parser\Node\Contracts\ANode
NamelessSectionNode
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
*/
protected function construct():ANode
$this->name= null;
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.
return $this;
}
This check marks files that end in a newline character, i.e. an empy line.
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.