Passed
Pull Request — master (#125)
by Damien
04:05
created
src/DoctrineAuditBundle/Manager/AuditTransaction.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,27 +27,27 @@
 block discarded – undo
27 27
     /**
28 28
      * @var array
29 29
      */
30
-    private $inserted = [];     // [$source, $changeset]
30
+    private $inserted = []; // [$source, $changeset]
31 31
 
32 32
     /**
33 33
      * @var array
34 34
      */
35
-    private $updated = [];      // [$source, $changeset]
35
+    private $updated = []; // [$source, $changeset]
36 36
 
37 37
     /**
38 38
      * @var array
39 39
      */
40
-    private $removed = [];      // [$source, $id]
40
+    private $removed = []; // [$source, $id]
41 41
 
42 42
     /**
43 43
      * @var array
44 44
      */
45
-    private $associated = [];   // [$source, $target, $mapping]
45
+    private $associated = []; // [$source, $target, $mapping]
46 46
 
47 47
     /**
48 48
      * @var array
49 49
      */
50
-    private $dissociated = [];  // [$source, $target, $id, $mapping]
50
+    private $dissociated = []; // [$source, $target, $id, $mapping]
51 51
 
52 52
     /**
53 53
      * @var EntityManagerInterface
Please login to merge, or discard this patch.
src/DoctrineAuditBundle/Event/DoctrineSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
         // extend the SQL logger
48 48
         $this->loggerBackup = $em->getConnection()->getConfiguration()->getSQLLogger();
49
-        $auditLogger = new AuditLogger(function () use ($em, $transaction): void {
49
+        $auditLogger = new AuditLogger(function() use ($em, $transaction): void {
50 50
             // flushes pending data
51 51
             $em->getConnection()->getConfiguration()->setSQLLogger($this->loggerBackup);
52 52
             $this->manager->process($transaction);
Please login to merge, or discard this patch.
src/DoctrineAuditBundle/Command/UpdateSchemaCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             $progressBar = new ProgressBar($output, \count($sqls));
101 101
             $progressBar->start();
102 102
 
103
-            $updater->updateAuditSchema($sqls, static function (array $progress) use ($progressBar): void {
103
+            $updater->updateAuditSchema($sqls, static function(array $progress) use ($progressBar): void {
104 104
                 $progressBar->advance();
105 105
             });
106 106
 
Please login to merge, or discard this patch.
src/DoctrineAuditBundle/Helper/AuditHelper.php 1 patch
Spacing   +3 added lines, -9 removed lines patch added patch discarded remove patch
@@ -363,19 +363,13 @@
 block discarded – undo
363 363
         $platform = $em->getConnection()->getDatabasePlatform();
364 364
 
365 365
         switch ($type->getName()) {
366
-            case class_exists('DoctrineDBALTypesTypes', false) ? Types::BIGINT : Type::BIGINT:
367
-                $convertedValue = (string) $value;
366
+            case class_exists('DoctrineDBALTypesTypes', false) ? Types::BIGINT : Type::BIGINT : $convertedValue = (string) $value;
368 367
 
369 368
                 break;
370
-            case class_exists('DoctrineDBALTypesTypes', false) ? Types::INTEGER : Type::INTEGER:
371
-            case class_exists('DoctrineDBALTypesTypes', false) ? Types::SMALLINT : Type::SMALLINT:
372
-                $convertedValue = (int) $value;
369
+            case class_exists('DoctrineDBALTypesTypes', false) ? Types::INTEGER : Type::INTEGER : case class_exists('DoctrineDBALTypesTypes', false) ? Types::SMALLINT : Type::SMALLINT : $convertedValue = (int) $value;
373 370
 
374 371
                 break;
375
-            case class_exists('DoctrineDBALTypesTypes', false) ? Types::DECIMAL : Type::DECIMAL:
376
-            case class_exists('DoctrineDBALTypesTypes', false) ? Types::FLOAT : Type::FLOAT:
377
-            case class_exists('DoctrineDBALTypesTypes', false) ? Types::BOOLEAN : Type::BOOLEAN:
378
-                $convertedValue = $type->convertToPHPValue($value, $platform);
372
+            case class_exists('DoctrineDBALTypesTypes', false) ? Types::DECIMAL : Type::DECIMAL : case class_exists('DoctrineDBALTypesTypes', false) ? Types::FLOAT : Type::FLOAT : case class_exists('DoctrineDBALTypesTypes', false) ? Types::BOOLEAN : Type::BOOLEAN : $convertedValue = $type->convertToPHPValue($value, $platform);
379 373
 
380 374
                 break;
381 375
             default:
Please login to merge, or discard this patch.