for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @property BadgeActivator $model
*/
class BadgeComponent extends CApplicationComponent
{
private $model;
public function getModel()
return $this->model;
}
public function init()
$this->model = new CommonBadgeActivator();
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$this->model->uid = Yii::app()->player->uid;
This check marks files that end in a newline character, i.e. an empy line.
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.