Exemplo n.º 1
0
 public function onDefect(Defect $event)
 {
     if (!isset($this->defects[$this->currentFile])) {
         $this->defects[$this->currentFile] = array();
     }
     $event->formattedMessage = $this->formatMessage($event->getMessage());
     $this->defects[$this->currentFile][] = $event;
 }
 public function __construct(Node $node, $parameterTypeName, $parameterType, $method)
 {
     parent::__construct($node);
     $this->parameterTypeName = $parameterTypeName;
     $this->parameterType = $parameterType;
     $this->method = $method;
 }
Exemplo n.º 3
0
 public function __construct($propertyName, Property $node)
 {
     parent::__construct($node);
     $this->propertyName = $propertyName;
 }
Exemplo n.º 4
0
 public function __construct(ObjectType $objectType, ClassMethod $node)
 {
     parent::__construct($node);
     $this->objectType = $objectType;
 }
Exemplo n.º 5
0
 public function __construct(ObjectType $objectType, $property, Property $node)
 {
     parent::__construct($node);
     $this->objectType = $objectType;
     $this->property = $property;
 }
Exemplo n.º 6
0
 public function __construct(ObjectType $objectType, New_ $node)
 {
     parent::__construct($node);
     $this->objectType = $objectType;
 }
Exemplo n.º 7
0
 public function onDefect(Defect $event)
 {
     $this->output->writeln(sprintf("<fg=white;options=bold>%s @ l%d</fg=white;options=bold> : %s", $this->currentFile, $event->getLine(), $this->formatMessage($event->getMessage())));
     $this->counter++;
 }