8000 [HttpKernel] renamed a method · symfony/symfony@5ac20ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ac20ed

Browse files
committed
[HttpKernel] renamed a method
1 parent 148372b commit 5ac20ed

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\Profiler;
1313

14-
1514
/**
1615
* Base PDO storage for profiling information in a PDO database.
1716
*
@@ -92,7 +91,7 @@ public function write(Profile $profile)
9291
);
9392

9493
try {
95-
if ($this->tokenDataExists($profile->getToken())) {
94+
if ($this->has($profile->getToken())) {
9695
$this->exec($db, 'UPDATE sf_profiler_data SET parent = :parent, data = :data, ip = :ip, method = :method, url = :url, time = :time, created_at = :created_at WHERE token = :token', $args);
9796
} else {
9897
$this->exec($db, 'INSERT INTO sf_profiler_data (token, parent, data, ip, method, url, time, created_at) VALUES (:token, :parent, :data, :ip, :method, :url, :time, :created_at)', $args);
@@ -240,10 +239,11 @@ protected function readChildren($token, $parent)
240239
/**
241240
* Returns whether data for the given token already exists in storage.
242241
*
243-
* @param string $token
244-
* @return boolean
242+
* @param string $token The profile token
243+
*
244+
* @return Boolean
245245
*/
246-
protected function tokenDataExists($token)
246+
protected function has($token)
247247
{
248248
$db = $this->initDb();
249249
$tokenExists = $this->fetch($db, 'SELECT 1 FROM sf_profiler_data WHERE token = :token LIMIT 1', array(':token' => $token));
@@ -252,4 +252,3 @@ protected function tokenDataExists($token)
252252
return !empty($tokenExists);
253253
}
254254
}
255-

0 commit comments

Comments
 (0)
0