* use php-cs-fixer instead of phpcodesniffer * updated scrutinizer config * adjusted code yules to all files * updated CONTRIBUTING guidelines
This commit is contained in:
@@ -16,7 +16,6 @@ use App\Entity\Timesheet;
|
||||
use App\Entity\User;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Validator\ConstraintViolationInterface;
|
||||
use Symfony\Component\Validator\ConstraintViolationListInterface;
|
||||
use Symfony\Component\Validator\Validation;
|
||||
|
||||
/**
|
||||
@@ -24,7 +23,6 @@ use Symfony\Component\Validator\Validation;
|
||||
*/
|
||||
class TimesheetTest extends TestCase
|
||||
{
|
||||
|
||||
protected function getEntity()
|
||||
{
|
||||
$customer = new Customer();
|
||||
@@ -103,12 +101,11 @@ class TimesheetTest extends TestCase
|
||||
|
||||
$violatedFields = [];
|
||||
/** @var ConstraintViolationInterface $validation */
|
||||
foreach($validations as $validation) {
|
||||
foreach ($validations as $validation) {
|
||||
$violatedFields[] = $validation->getPropertyPath();
|
||||
}
|
||||
|
||||
|
||||
foreach($fieldNames as $id => $propertyPath) {
|
||||
foreach ($fieldNames as $id => $propertyPath) {
|
||||
$foundField = false;
|
||||
if (in_array($propertyPath, $violatedFields)) {
|
||||
$foundField = true;
|
||||
|
||||
Reference in New Issue
Block a user