mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Remove double semicolons (#3345)
* Remove double semicolons * fix formatting * fix formatting 2
This commit is contained in:
committed by
GitHub
parent
e2800c7dbf
commit
a41374ef74
@@ -136,7 +136,7 @@ class AttributeFetcher
|
||||
$data = $emailAddressRepository->getEmailAddressData($entity);
|
||||
|
||||
$entity->set($attribute, $data);
|
||||
$entity->setFetched($attribute, $data);;
|
||||
$entity->setFetched($attribute, $data);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -155,7 +155,7 @@ class AttributeFetcher
|
||||
$data = $phoneNumberRepository->getPhoneNumberData($entity);
|
||||
|
||||
$entity->set($attribute, $data);
|
||||
$entity->setFetched($attribute, $data);;
|
||||
$entity->setFetched($attribute, $data);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ class MysqlDetailsProvider implements DetailsProvider
|
||||
|
||||
public function getParam(string $name): ?string
|
||||
{
|
||||
$sql = "SHOW VARIABLES LIKE :param";;
|
||||
$sql = "SHOW VARIABLES LIKE :param";
|
||||
|
||||
$sth = $this->pdo->prepare($sql);
|
||||
$sth->execute([':param' => $name]);
|
||||
|
||||
@@ -62,7 +62,7 @@ class PostgresqlDetailsProvider implements DetailsProvider
|
||||
|
||||
public function getParam(string $name): ?string
|
||||
{
|
||||
$name = preg_replace('/[^A-Za-z0-9_]+/', '', $name);;
|
||||
$name = preg_replace('/[^A-Za-z0-9_]+/', '', $name);
|
||||
|
||||
$sql = "SHOW {$name}";
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ class Formula implements BeforeSave
|
||||
$variables = (object) [];
|
||||
|
||||
foreach ($scriptList as $script) {
|
||||
$this->runScript($script, $entity, $variables);;
|
||||
$this->runScript($script, $entity, $variables);
|
||||
}
|
||||
|
||||
$customScript = $this->metadata->get(['formula', $entity->getEntityType(), 'beforeSaveCustomScript']);
|
||||
@@ -72,7 +72,7 @@ class Formula implements BeforeSave
|
||||
return;
|
||||
}
|
||||
|
||||
$this->runScript($customScript, $entity, $variables);;
|
||||
$this->runScript($customScript, $entity, $variables);
|
||||
}
|
||||
|
||||
private function runScript(string $script, Entity $entity, stdClass $variables): void
|
||||
|
||||
@@ -148,7 +148,7 @@ class SubmitPopupReminders implements JobDataLess
|
||||
$dateField . 'Date' => $entity->get($dateField . 'Date'),
|
||||
],
|
||||
],
|
||||
];;
|
||||
];
|
||||
|
||||
$reminder->set('isSubmitted', true);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class QueryTest extends \tests\integration\Core\BaseTestCase
|
||||
$entityManager = $app->getContainer()->get('entityManager');
|
||||
|
||||
$account = $entityManager->getEntity('Account');
|
||||
$account->set('name', 'Test');;
|
||||
$account->set('name', 'Test');
|
||||
$entityManager->saveEntity($account);
|
||||
|
||||
$query = $entityManager->getQueryBuilder()
|
||||
|
||||
@@ -77,7 +77,7 @@ class DefaultsPopulatorTest extends BaseTestCase
|
||||
], true);
|
||||
|
||||
$this->auth('tester', null, $portal->getId());
|
||||
$this->reCreateApplication();;
|
||||
$this->reCreateApplication();
|
||||
|
||||
$service = $this->getContainer()->getByClass(ServiceContainer::class)->getByClass(CaseObj::class);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class UtilityTest extends BaseTestCase
|
||||
|
||||
$configWriter = $this->getInjectableFactory()->create(ConfigWriter::class);
|
||||
$configWriter->set('workingTimeCalendarId', $calendar->getId());
|
||||
$configWriter->save();;
|
||||
$configWriter->save();
|
||||
|
||||
$utility = $this->getInjectableFactory()
|
||||
->create(CalendarUtilityFactory::class)
|
||||
|
||||
@@ -1368,7 +1368,7 @@ class EvaluatorTest extends TestCase
|
||||
|
||||
$this->evaluator->process($expression, null, $vars);
|
||||
|
||||
$this->assertEquals(2, $vars->a);;
|
||||
$this->assertEquals(2, $vars->a);
|
||||
}
|
||||
|
||||
public function testSemicolonAndParentheses1(): void
|
||||
|
||||
Reference in New Issue
Block a user