Completed
Branch master (901ac8)
by Rémi
11:17
created
src/Plugins/Timestamps/TimestampsPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->manager->registerGlobalEvent('initialized', function ($event, $payload) {
23
+        $this->manager->registerGlobalEvent('initialized', function($event, $payload) {
24 24
             $mapper = $payload[0];
25 25
             $entityMap = $mapper->getEntityMap();
26 26
 
27 27
             if ($entityMap->usesTimestamps()) {
28
-                $mapper->registerEvent('creating', function ($entity) use ($entityMap) {
28
+                $mapper->registerEvent('creating', function($entity) use ($entityMap) {
29 29
                     $factory = new Factory();
30 30
                     $wrappedEntity = $factory->make($entity);
31 31
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                     $wrappedEntity->setEntityAttribute($updatedAtField, $time);
39 39
                 });
40 40
 
41
-                $mapper->registerEvent('updating', function ($entity) use ($entityMap) {
41
+                $mapper->registerEvent('updating', function($entity) use ($entityMap) {
42 42
                     $factory = new Factory();
43 43
                     $wrappedEntity = $factory->make($entity);
44 44
 
Please login to merge, or discard this patch.
src/Plugins/SoftDeletes/SoftDeletesPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         $host = $this;
26 26
 
27 27
         // Hook any mapper init and check the mapping include soft deletes.
28
-        $this->manager->registerGlobalEvent('initialized', function ($event, $payload) use ($host) {
28
+        $this->manager->registerGlobalEvent('initialized', function($event, $payload) use ($host) {
29 29
             $mapper = $payload[0];
30 30
             $entityMap = $mapper->getEntityMap();
31 31
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $host = $this;
56 56
 
57 57
         // Register 'deleting' events
58
-        $mapper->registerEvent('deleting', function ($entity) use ($entityMap, $host) {
58
+        $mapper->registerEvent('deleting', function($entity) use ($entityMap, $host) {
59 59
 
60 60
             // Convert Entity into an EntityWrapper
61 61
             $factory = new Factory();
Please login to merge, or discard this patch.