@@ -53,7 +53,7 @@ |
||
| 53 | 53 | public function generate( |
| 54 | 54 | EntityManager $em, $entity) |
| 55 | 55 | { |
| 56 | - return (int)$em->getConnection()->lastInsertId($this->sequenceName); |
|
| 56 | + return (int) $em->getConnection()->lastInsertId($this->sequenceName); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | public function generate(EntityManager $em, $entity) |
| 36 | 36 | { |
| 37 | 37 | $conn = $em->getConnection(); |
| 38 | - $sql = 'SELECT ' . $conn->getDatabasePlatform()->getGuidExpression(); |
|
| 38 | + $sql = 'SELECT '.$conn->getDatabasePlatform()->getGuidExpression(); |
|
| 39 | 39 | return $conn->query($sql)->fetchColumn(0); |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -44,14 +44,14 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public static function registerAutoloadDirectory($directory) |
| 46 | 46 | { |
| 47 | - if (!class_exists('Doctrine\Common\ClassLoader', false)) { |
|
| 48 | - require_once $directory . "/Doctrine/Common/ClassLoader.php"; |
|
| 47 | + if ( ! class_exists('Doctrine\Common\ClassLoader', false)) { |
|
| 48 | + require_once $directory."/Doctrine/Common/ClassLoader.php"; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $loader = new ClassLoader("Doctrine", $directory); |
| 52 | 52 | $loader->register(); |
| 53 | 53 | |
| 54 | - $loader = new ClassLoader("Symfony\Component", $directory . "/Doctrine"); |
|
| 54 | + $loader = new ClassLoader("Symfony\Component", $directory."/Doctrine"); |
|
| 55 | 55 | $loader->register(); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $namespace .= ':'; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $cache->setNamespace($namespace . 'dc2_' . md5($proxyDir) . '_'); // to avoid collisions |
|
| 153 | + $cache->setNamespace($namespace.'dc2_'.md5($proxyDir).'_'); // to avoid collisions |
|
| 154 | 154 | |
| 155 | 155 | return $cache; |
| 156 | 156 | } |