Completed
Push — master ( 258d90...7630d0 )
by David
04:59
created
src/Governor/Framework/Common/ReflectionUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      * @param string|mixed $object
71 71
      * @return \ReflectionClass
72 72
      */
73
-    public static function getClass ($object)
73
+    public static function getClass($object)
74 74
     {
75 75
         $reflectionClass = new \ReflectionClass($object);
76 76
         
Please login to merge, or discard this patch.
src/Governor/Framework/EventHandling/Amqp/AmqpTerminal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
  * @author    "David Kalosi" <[email protected]>
41 41
  * @license   <a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>
42 42
  */
43
-class AmqpTerminal implements TerminalInterface,  LoggerAwareInterface
43
+class AmqpTerminal implements TerminalInterface, LoggerAwareInterface
44 44
 {
45 45
 
46 46
     const DEFAULT_EXCHANGE_NAME = "Governor.EventBus";
Please login to merge, or discard this patch.
src/Governor/Framework/EventSourcing/AbstractSnapshotter.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -67,18 +67,18 @@
 block discarded – undo
67 67
         
68 68
     }
69 69
     
70
-     /**
71
-     * Creates a snapshot event for an aggregate of the given <code>typeIdentifier</code> of which passed events are
72
-     * available in the given <code>eventStream</code>. May return <code>null</code> to indicate a snapshot event is
73
-     * not necessary or appropriate for the given event stream.
74
-     *
75
-     * @param string $typeIdentifier      The aggregate's type identifier
76
-     * @param mixed $aggregateIdentifier The identifier of the aggregate to create a snapshot for
77
-     * @param DomainEventStreamInterface $eventStream         The event stream containing the aggregate's past events
78
-     * @return DomainEventMessageInterface the snapshot event for the given events, or <code>null</code> if none should be stored.
79
-     */
70
+        /**
71
+         * Creates a snapshot event for an aggregate of the given <code>typeIdentifier</code> of which passed events are
72
+         * available in the given <code>eventStream</code>. May return <code>null</code> to indicate a snapshot event is
73
+         * not necessary or appropriate for the given event stream.
74
+         *
75
+         * @param string $typeIdentifier      The aggregate's type identifier
76
+         * @param mixed $aggregateIdentifier The identifier of the aggregate to create a snapshot for
77
+         * @param DomainEventStreamInterface $eventStream         The event stream containing the aggregate's past events
78
+         * @return DomainEventMessageInterface the snapshot event for the given events, or <code>null</code> if none should be stored.
79
+         */
80 80
     protected abstract function createSnapshot($typeIdentifier, $aggregateIdentifier,
81
-                                                         DomainEventStreamInterface $eventStream);
81
+                                                            DomainEventStreamInterface $eventStream);
82 82
 
83 83
 
84 84
     /**
Please login to merge, or discard this patch.
src/Governor/Framework/EventSourcing/EventSourcedEntityInterface.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,15 +34,15 @@
 block discarded – undo
34 34
  */
35 35
 interface EventSourcedEntityInterface
36 36
 {
37
-     /**
38
-     * Register the aggregate root with this entity. The entity must use this aggregate root to apply Domain Events.
39
-     * The aggregate root is responsible for tracking all applied events.
40
-     * <p/>
41
-     * A parent entity is responsible for invoking this method on its child entities prior to propagating events to it.
42
-     * Typically, this means all entities have their aggregate root set before any actions are taken on it.
43
-     *
44
-     * @param AbstractEventSourcedAggregateRoot $aggregateRootToRegister the root of the aggregate this entity is part of.
45
-     */
37
+        /**
38
+         * Register the aggregate root with this entity. The entity must use this aggregate root to apply Domain Events.
39
+         * The aggregate root is responsible for tracking all applied events.
40
+         * <p/>
41
+         * A parent entity is responsible for invoking this method on its child entities prior to propagating events to it.
42
+         * Typically, this means all entities have their aggregate root set before any actions are taken on it.
43
+         *
44
+         * @param AbstractEventSourcedAggregateRoot $aggregateRootToRegister the root of the aggregate this entity is part of.
45
+         */
46 46
     public function registerAggregateRoot(AbstractEventSourcedAggregateRoot $aggregateRootToRegister);
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Governor/Framework/EventSourcing/SnapshotterInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@
 block discarded – undo
33 33
  */
34 34
 interface SnapshotterInterface 
35 35
 {
36
-     /**
37
-     * Schedules snapshot taking for an aggregate with given <code>typeIdentifier</code> and
38
-     * <code>aggregateIdentifier</code>. 
39
-     *
40
-     * @param string $typeIdentifier      the type of the aggregate to take the snapshot for
41
-     * @param mixed $aggregateIdentifier The identifier of the aggregate to take the snapshot for
42
-     */
36
+        /**
37
+         * Schedules snapshot taking for an aggregate with given <code>typeIdentifier</code> and
38
+         * <code>aggregateIdentifier</code>. 
39
+         *
40
+         * @param string $typeIdentifier      the type of the aggregate to take the snapshot for
41
+         * @param mixed $aggregateIdentifier The identifier of the aggregate to take the snapshot for
42
+         */
43 43
     public function scheduleSnapshot($typeIdentifier, $aggregateIdentifier);
44 44
 }
Please login to merge, or discard this patch.
Governor/Framework/EventStore/Filesystem/FilesystemSnapshotEventReader.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
 class FilesystemSnapshotEventReader
38 38
 {
39 39
 
40
-     /**
41
-     * @var \SplFileObject
42
-     */
40
+        /**
41
+         * @var \SplFileObject
42
+         */
43 43
     private $eventFile;
44
-     /**
45
-     * @var \SplFileObject
46
-     */
44
+        /**
45
+         * @var \SplFileObject
46
+         */
47 47
     private $snapshotEventFile;
48 48
     
49 49
     /**     
Please login to merge, or discard this patch.
src/Governor/Framework/EventStore/Filesystem/SimpleEventFileResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $base = join(DIRECTORY_SEPARATOR, array($this->baseDirectory, $type));
80 80
         
81 81
         if (!file_exists($base) && !mkdir($base)) {
82
-            throw new \RuntimeException (sprintf("Could not create directory %s", $base));
82
+            throw new \RuntimeException(sprintf("Could not create directory %s", $base));
83 83
         }
84 84
 
85 85
         return join(DIRECTORY_SEPARATOR, array($base, $identifier)) . "." . $extension;
Please login to merge, or discard this patch.
Framework/EventStore/Filesystem/SnapshotFilesystemDomainEventStream.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 /**
15 15
  * Description of SnapshotFilesystemDomainEventStream
16
-
17 16
  */
18 17
 class SnapshotFilesystemDomainEventStream extends FilesystemDomainEventStream
19 18
 {
Please login to merge, or discard this patch.
src/Governor/Framework/EventStore/Mongo/Criteria/Equals.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function asMongoObject()
51 51
     {
52 52
         return [
53
-            $this->property->getName() => (string)$this->expression
53
+            $this->property->getName() => (string) $this->expression
54 54
         ];
55 55
 
56 56
     }
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the SmartGecko(c) business platform.
4
- *
5
- * For the full copyright and license information, please view the LICENSE
6
- * file that was distributed with this source code.
7
- */
3
+     * This file is part of the SmartGecko(c) business platform.
4
+     *
5
+     * For the full copyright and license information, please view the LICENSE
6
+     * file that was distributed with this source code.
7
+     */
8 8
 
9 9
 namespace Governor\Framework\EventStore\Mongo;
10 10
 
Please login to merge, or discard this patch.