Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f69dd0f

Browse files
committed
review changes
1 parent 0d23271 commit f69dd0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Bridge/Doctrine/Middleware/Debug/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function prepare(string $sql): DriverStatement
4545
$this->debugDataHolder,
4646
$this->connectionName,
4747
$sql,
48-
$this->stopwatch
48+
$this->stopwatch,
4949
);
5050
}
5151

src/Symfony/Bridge/Doctrine/Middleware/Debug/Statement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function execute($params = null): ResultInterface
6262
// clone to prevent variables by reference to change
6363
$this->debugDataHolder->addQuery($this->connectionName, $query = clone $this->query);
6464

65-
if (null !== $this->stopwatch) {
65+
if ($this->stopwatch) {
6666
$this->stopwatch->start('doctrine', 'doctrine');
6767
}
6868

@@ -73,7 +73,7 @@ public function execute($params = null): ResultInterface
7373
} finally {
7474
$query->stop();
7575

76-
if (null !== $this->stopwatch) {
76+
if ($this->stopwatch) {
7777
$this->stopwatch->stop('doctrine');
7878
}
7979
}

0 commit comments

Comments
 (0)