Completed
Pull Request — master (#139)
by
unknown
05:01
created
src/Variations/Model/EventVariation.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     private function guardNotDeleted()
123 123
     {
124 124
         if ($this->isDeleted()) {
125
-            throw new AggregateDeletedException((string) $this->id);
125
+            throw new AggregateDeletedException((string)$this->id);
126 126
         }
127 127
     }
128 128
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function getAggregateRootId()
150 150
     {
151
-        return (string) $this->id;
151
+        return (string)$this->id;
152 152
     }
153 153
 
154 154
     /**
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Variations/Model/Events/DescriptionEdited.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function serialize()
40 40
     {
41 41
         return parent::serialize() + array(
42
-            'description' => (string) $this->description,
42
+            'description' => (string)$this->description,
43 43
         );
44 44
     }
45 45
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Variations/Model/Events/EventVariationCreated.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,10 +93,10 @@
 block discarded – undo
93 93
     public function serialize()
94 94
     {
95 95
         return parent::serialize() + array(
96
-            'event_url' => (string) $this->getEventUrl(),
97
-            'owner_id' => (string) $this->getOwnerId(),
98
-            'purpose' => (string) $this->getPurpose(),
99
-            'description' => (string) $this->getDescription()
96
+            'event_url' => (string)$this->getEventUrl(),
97
+            'owner_id' => (string)$this->getOwnerId(),
98
+            'purpose' => (string)$this->getPurpose(),
99
+            'description' => (string)$this->getDescription()
100 100
         );
101 101
     }
102 102
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Variations/Model/Events/EventVariationEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function serialize()
38 38
     {
39 39
         return array(
40
-            'id' => (string) $this->getId(),
40
+            'id' => (string)$this->getId(),
41 41
         );
42 42
     }
43 43
 
Please login to merge, or discard this patch.
src/Variations/ReadModel/JSONLD/Projector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $variationLD = $variation->getBody();
63 63
         $language = 'nl';
64 64
 
65
-        $variationLD->description->$language = (string) $descriptionEdited->getDescription();
65
+        $variationLD->description->$language = (string)$descriptionEdited->getDescription();
66 66
         $this->repository->save($variation->withBody($variationLD));
67 67
 
68 68
     }
Please login to merge, or discard this patch.
src/Variations/ReadModel/Search/Doctrine/DBALRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@
 block discarded – undo
48 48
         $this->connection->insert(
49 49
             $this->connection->quoteIdentifier($this->tableName),
50 50
             [
51
-                'id' => (string) $variationId,
52
-                'event' => (string) $eventUrl,
53
-                'owner' => (string) $ownerId,
54
-                'purpose' => (string) $purpose,
51
+                'id' => (string)$variationId,
52
+                'event' => (string)$eventUrl,
53
+                'owner' => (string)$ownerId,
54
+                'purpose' => (string)$purpose,
55 55
                 'inserted' => time(),
56 56
             ]
57 57
         );
Please login to merge, or discard this patch.
src/Variations/VariationDecoratedEventService.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/XMLSyntaxException.php 1 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
- * Created by PhpStorm.
4
- * User: nicolas
5
- * Date: 06/10/15
6
- * Time: 10:19
7
- */
3
+     * Created by PhpStorm.
4
+     * User: nicolas
5
+     * Date: 06/10/15
6
+     * Time: 10:19
7
+     */
8 8
 
9 9
 namespace CultuurNet\UDB3;
10 10
 
Please login to merge, or discard this patch.
src/Event/EventEditingServiceInterface.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param Title $title
23 23
      * @param EventType $eventType
24 24
      * @param Address $address
25
-     * @param CalendarBase $calendar
25
+     * @param CalendarInterface $calendar
26 26
      * @param Theme|null $theme
27 27
      *
28 28
      * @return string $eventId
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param Title $title
44 44
      * @param EventType $eventType
45 45
      * @param Address $address
46
-     * @param CalendarBase $calendar
46
+     * @param CalendarInterface $calendar
47 47
      * @param Theme/null $theme
48 48
      */
49 49
     public function updateMajorInfo($id, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, $theme = null);
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -7,12 +7,8 @@
 block discarded – undo
7 7
 
8 8
 use CultuurNet\UDB3\CalendarInterface;
9 9
 use CultuurNet\UDB3\ContactPoint;
10
-use CultuurNet\UDB3\EventNotFoundException;
11
-use CultuurNet\UDB3\Label;
12
-use CultuurNet\UDB3\Language;
13 10
 use CultuurNet\UDB3\Location;
14 11
 use CultuurNet\UDB3\Media\Image;
15
-use CultuurNet\UDB3\Media\MediaObject;
16 12
 use CultuurNet\UDB3\Title;
17 13
 use ValueObjects\String\String;
18 14
 
Please login to merge, or discard this patch.