Explorar o código

[HttpKernel] fixed CS

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
8cc37eaa23

+ 2 - 2
src/Symfony/Component/HttpKernel/Profiler/MysqlProfilerStorage.php

@@ -3,7 +3,7 @@
 /*
  * This file is part of the Symfony package.
  *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ * (c) Fabien Potencier <fabien@symfony.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
@@ -28,7 +28,7 @@ class MysqlProfilerStorage extends PdoProfilerStorage
                 throw new \RuntimeException('Please check your configuration. You are trying to use Mysql with a wrong dsn. "' . $this->dsn . '"');
             }
 
-            if ( ! class_exists('PDO') ||  ! in_array('mysql', \PDO::getAvailableDrivers(), true)) {
+            if (!class_exists('PDO') || !in_array('mysql', \PDO::getAvailableDrivers(), true)) {
                 throw new \RuntimeException('You need to enable PDO_Mysql extension for the profiler to run properly.');
             }
 

+ 1 - 1
tests/Symfony/Tests/Component/HttpKernel/Profiler/ProfilerTest.php

@@ -30,7 +30,7 @@ class ProfilerTest extends \PHPUnit_Framework_TestCase
         if (file_exists($tmp)) {
             @unlink($tmp);
         }
-        $storage = new SqliteProfilerStorage('sqlite:' . $tmp);
+        $storage = new SqliteProfilerStorage('sqlite:'.$tmp);
         $storage->purge();
 
         $profiler = new Profiler($storage);

+ 1 - 1
tests/Symfony/Tests/Component/HttpKernel/Profiler/SqliteProfilerStorageTest.php

@@ -24,7 +24,7 @@ class SqliteProfilerStorageTest extends \PHPUnit_Framework_TestCase
         if (file_exists(self::$dbFile)) {
             @unlink(self::$dbFile);
         }
-        self::$storage = new SqliteProfilerStorage('sqlite:' . self::$dbFile);
+        self::$storage = new SqliteProfilerStorage('sqlite:'.self::$dbFile);
     }
 
     public static function tearDownAfterClass()