Completed
Pull Request — master (#322)
by Luc
04:11
created
src/Organizer/OrganizerProjectedToJSONLD.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct($id, $iri)
20 20
     {
21
-        $this->id = (string) $id;
22
-        $this->iri = (string) $iri;
21
+        $this->id = (string)$id;
22
+        $this->iri = (string)$iri;
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
src/Cdb/PriceDescriptionParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
             throw new RuntimeException();
109 109
         }
110 110
 
111
-        return [ $priceName => floatval($priceValue) ];
111
+        return [$priceName => floatval($priceValue)];
112 112
     }
113 113
 
114 114
     private function getCurrencyFormatter()
Please login to merge, or discard this patch.
src/Language.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         if (!preg_match('/^[a-z]{2}$/', $code)) {
14 14
             throw new \InvalidArgumentException(
15
-                'Invalid language code: ' . $code
15
+                'Invalid language code: '.$code
16 16
             );
17 17
         }
18 18
         $this->code = $code;
Please login to merge, or discard this patch.
src/SavedSearches/FixedSavedSearchRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     protected $user;
17 17
 
18 18
     /**
19
-     * @param StringLiteral $userId
19
+     * @param StringLiteral $user
20 20
      */
21 21
     public function __construct(\CultureFeed_User $user)
22 22
     {
Please login to merge, or discard this patch.
src/SavedSearches/UiTIDSavedSearchRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $name = new StringLiteral($savedSearch->name);
78 78
         $query = QueryString::fromURLQueryString($savedSearch->query);
79
-        $id = new StringLiteral((string) $savedSearch->id);
79
+        $id = new StringLiteral((string)$savedSearch->id);
80 80
 
81 81
         return new SavedSearch($name, $query, $id);
82 82
     }
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function write(StringLiteral $userId, StringLiteral $name, QueryString $queryString)
88 88
     {
89
-        $userId = (string) $userId;
90
-        $name = (string) $name;
89
+        $userId = (string)$userId;
90
+        $name = (string)$name;
91 91
         $query = $queryString->toURLQueryString();
92 92
 
93 93
         $savedSearch = new \CultureFeed_SavedSearches_SavedSearch(
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                         'error' => $exception->getMessage(),
108 108
                         'userId' => $userId,
109 109
                         'name' => $name,
110
-                        'query' => (string) $queryString,
110
+                        'query' => (string)$queryString,
111 111
                     ]
112 112
                 );
113 113
             }
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function delete(StringLiteral $userId, StringLiteral $searchId)
121 121
     {
122
-        $userId = (string) $userId;
123
-        $searchId = (string) $searchId;
122
+        $userId = (string)$userId;
123
+        $searchId = (string)$searchId;
124 124
 
125 125
         try {
126 126
             $this->savedSearches->unsubscribe($searchId, $userId);
Please login to merge, or discard this patch.
src/Event/ReadModel/History/HistoryProjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                 $this->domainMessageDateToNativeDate(
77 77
                     $domainMessage->getRecordedOn()
78 78
                 ),
79
-                new StringLiteral('Event gekopieerd van ' . $eventCopied->getOriginalEventId()),
79
+                new StringLiteral('Event gekopieerd van '.$eventCopied->getOriginalEventId()),
80 80
                 $this->getAuthorFromMetadata($domainMessage->getMetadata())
81 81
             )
82 82
         );
Please login to merge, or discard this patch.
src/Event/Commands/Conclude.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/EventLDProjector.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -597,6 +597,9 @@
 block discarded – undo
597 597
         }
598 598
     }
599 599
 
600
+    /**
601
+     * @param string $eventId
602
+     */
600 603
     private function generateSameAs($eventId, $name)
601 604
     {
602 605
         $eventSlug = $this->slugger->slug($name);
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 
560 560
         $jsonLD->name->nl = $majorInfoUpdated->getTitle();
561 561
         $jsonLD->location = array(
562
-          '@type' => 'Place',
562
+            '@type' => 'Place',
563 563
         ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid());
564 564
 
565 565
         $availableTo = AvailableTo::createFromCalendar($majorInfoUpdated->getCalendar());
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 
596 596
         $jsonLD->location = [
597 597
             '@type' => 'Place',
598
-         ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
598
+            ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
599 599
 
600 600
         return $document->withBody($jsonLD);
601 601
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -512,8 +512,8 @@  discard block
 block discarded – undo
512 512
         $eventJsonLD->{'@id'} = $this->iriGenerator->iri($eventCopied->getItemId());
513 513
 
514 514
         // Set the new calendar.
515
-        $eventJsonLD = (object) array_merge(
516
-            (array) $eventJsonLD,
515
+        $eventJsonLD = (object)array_merge(
516
+            (array)$eventJsonLD,
517 517
             $eventCopied->getCalendar()->toJsonLd()
518 518
         );
519 519
 
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 
527 527
         // Set available to and from.
528 528
         $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar());
529
-        $eventJsonLD->availableTo = (string) $availableTo;
529
+        $eventJsonLD->availableTo = (string)$availableTo;
530 530
         unset($eventJsonLD->availableFrom);
531 531
 
532 532
         $newDocument = new JsonDocument($eventCopied->getItemId());
@@ -566,8 +566,8 @@  discard block
 block discarded – undo
566 566
         $jsonLD->availableTo = (string)$availableTo;
567 567
 
568 568
         // Remove old theme and event type.
569
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
570
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
569
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
570
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
571 571
         });
572 572
         $jsonLD->terms = array_values($jsonLD->terms);
573 573
 
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 
596 596
         $jsonLD->location = [
597 597
             '@type' => 'Place',
598
-         ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative());
598
+         ] + (array)$this->placeJSONLD($locationUpdated->getLocationId()->toNative());
599 599
 
600 600
         return $document->withBody($jsonLD);
601 601
     }
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     {
647 647
         $eventSlug = $this->slugger->slug($name);
648 648
         return array(
649
-            'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId,
649
+            'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId,
650 650
         );
651 651
     }
652 652
 
Please login to merge, or discard this patch.
src/Label/Label.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     private $parentUuid;
43 43
 
44 44
     /**
45
-     * @return string
45
+     * @return UUID
46 46
      */
47 47
     public function getAggregateRootId()
48 48
     {
Please login to merge, or discard this patch.