@@ -80,7 +80,7 @@ |
||
| 80 | 80 | /** |
| 81 | 81 | * Factory method to create a new event. |
| 82 | 82 | * |
| 83 | - * @param $eventId |
|
| 83 | + * @param string $eventId |
|
| 84 | 84 | * @param Title $title |
| 85 | 85 | * @param EventType $eventType |
| 86 | 86 | * @param Location $location |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | */ |
| 272 | 272 | public function applyAudienceUpdated(AudienceUpdated $audienceUpdated) |
| 273 | 273 | { |
| 274 | - $this->audience= $audienceUpdated->getAudience(); |
|
| 274 | + $this->audience = $audienceUpdated->getAudience(); |
|
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | /** |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | if (!is_string($itemId)) { |
| 21 | 21 | throw new \InvalidArgumentException( |
| 22 | - 'Expected itemId to be a string, received ' . gettype($itemId) |
|
| 22 | + 'Expected itemId to be a string, received '.gettype($itemId) |
|
| 23 | 23 | ); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | if (!is_string($originalEventId)) { |
| 35 | 35 | throw new \InvalidArgumentException( |
| 36 | - 'Expected originalEventId to be a string, received ' . gettype($originalEventId) |
|
| 36 | + 'Expected originalEventId to be a string, received '.gettype($originalEventId) |
|
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | { |
| 112 | 112 | if (!is_string($originalEventId)) { |
| 113 | 113 | throw new \InvalidArgumentException( |
| 114 | - 'Expected originalEventId to be a string, received ' . gettype($originalEventId) |
|
| 114 | + 'Expected originalEventId to be a string, received '.gettype($originalEventId) |
|
| 115 | 115 | ); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | $this->writeRepository->load($originalEventId); |
| 120 | 120 | } catch (AggregateNotFoundException $exception) { |
| 121 | 121 | throw new \InvalidArgumentException( |
| 122 | - 'No original event found to copy with id ' . $originalEventId |
|
| 122 | + 'No original event found to copy with id '.$originalEventId |
|
| 123 | 123 | ); |
| 124 | 124 | } |
| 125 | 125 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $method = $this->getApplyMethod($event); |
| 82 | 82 | |
| 83 | - if (! method_exists($this, $method)) { |
|
| 83 | + if (!method_exists($this, $method)) { |
|
| 84 | 84 | return; |
| 85 | 85 | } |
| 86 | 86 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | { |
| 117 | 117 | $classParts = explode('\\', get_class($event)); |
| 118 | 118 | |
| 119 | - return 'apply' . end($classParts); |
|
| 119 | + return 'apply'.end($classParts); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |