Passed
Pull Request — master (#71)
by Maxime
03:22
created
src/DoctrineAuditBundle/EventSubscriber/AuditSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         // extend the SQL logger
49 49
         $this->loggerBackup = $em->getConnection()->getConfiguration()->getSQLLogger();
50 50
         $loggerChain = new LoggerChain();
51
-        $loggerChain->addLogger(new AuditLogger(function () use ($em) {
51
+        $loggerChain->addLogger(new AuditLogger(function() use ($em) {
52 52
             // flushes pending data
53 53
             $em->getConnection()->getConfiguration()->setSQLLogger($this->loggerBackup);
54 54
             $uow = $em->getUnitOfWork();
Please login to merge, or discard this patch.
src/DoctrineAuditBundle/AuditManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
      */
13 13
     private $configuration;
14 14
 
15
-    private $inserted = [];     // [$source, $changeset]
16
-    private $updated = [];      // [$source, $changeset]
17
-    private $removed = [];      // [$source, $id]
18
-    private $associated = [];   // [$source, $target, $mapping]
19
-    private $dissociated = [];  // [$source, $target, $id, $mapping]
15
+    private $inserted = []; // [$source, $changeset]
16
+    private $updated = []; // [$source, $changeset]
17
+    private $removed = []; // [$source, $id]
18
+    private $associated = []; // [$source, $target, $mapping]
19
+    private $dissociated = []; // [$source, $target, $id, $mapping]
20 20
 
21 21
     /**
22 22
      * @var AuditHelper
Please login to merge, or discard this patch.
src/DoctrineAuditBundle/Reader/AuditReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
     public function getEntityAuditTableName($entity): string
295 295
     {
296 296
         $entityName = \is_string($entity) ? $entity : \get_class($entity);
297
-        $schema = $this->getClassMetadata($entityName)->getSchemaName() ? $this->getClassMetadata($entityName)->getSchemaName() . '.' : '';
297
+        $schema = $this->getClassMetadata($entityName)->getSchemaName() ? $this->getClassMetadata($entityName)->getSchemaName().'.' : '';
298 298
 
299 299
         return sprintf('%s%s%s%s', $schema, $this->configuration->getTablePrefix(), $this->getEntityTableName($entityName), $this->configuration->getTableSuffix());
300 300
     }
Please login to merge, or discard this patch.