Completed
Pull Request — master (#253)
by Kristof
04:43
created
src/Organizer/Events/OrganizerEvent.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function serialize()
34 34
     {
35 35
         return array(
36
-          'organizer_id' => $this->organizerId,
36
+            'organizer_id' => $this->organizerId,
37 37
         );
38 38
     }
39 39
 
Please login to merge, or discard this patch.
src/Place/Events/PlaceCreated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
             $theme = $this->getTheme()->serialize();
114 114
         }
115 115
         return parent::serialize() + array(
116
-            'title' => (string) $this->getTitle(),
116
+            'title' => (string)$this->getTitle(),
117 117
             'event_type' => $this->getEventType()->serialize(),
118 118
             'theme' => $theme,
119 119
             'address' => $this->getAddress()->serialize(),
Please login to merge, or discard this patch.
src/SavedSearches/ReadModel/SavedSearch.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         ];
49 49
 
50 50
         if ($this->id) {
51
-            $serializedSavedSearch['id'] = (string) $this->id;
51
+            $serializedSavedSearch['id'] = (string)$this->id;
52 52
         }
53 53
 
54 54
         return $serializedSavedSearch;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * @param String $name
30 30
      * @param QueryString $query
31
-     * @param String $id
31
+     * @param string $id
32 32
      */
33 33
     public function __construct(String $name, QueryString $query, String $id = null)
34 34
     {
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 String($savedSearch->name);
78 78
         $query = QueryString::fromURLQueryString($savedSearch->query);
79
-        $id = new String((string) $savedSearch->id);
79
+        $id = new String((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(String $userId, String $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(String $userId, String $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/SluggerInterface.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 interface SluggerInterface
14 14
 {
15 15
     /**
16
-    * Returns the slug for a given string
17
-    *
18
-    * @param string $string
19
-    *
20
-    * @return string
21
-    **/
16
+     * Returns the slug for a given string
17
+     *
18
+     * @param string $string
19
+     *
20
+     * @return string
21
+     **/
22 22
     public function slug($string);
23 23
 }
Please login to merge, or discard this patch.
src/Variations/Command/EditDescriptionJSONDeserializer.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     private function getErrorMessages($validationErrors)
97 97
     {
98 98
         $errorMessages = array_map(
99
-            function ($error) {
99
+            function($error) {
100 100
                 return $error['message'];
101 101
             },
102 102
             $validationErrors
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use CultuurNet\UDB3\Variations\Model\Properties\Description;
10 10
 use CultuurNet\UDB3\Variations\Model\Properties\Id;
11 11
 use JsonSchema\Validator;
12
-use ValueObjects\String\String;
13 12
 use stdClass;
14 13
 
15 14
 class EditDescriptionJSONDeserializer extends JSONDeserializer
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @param mixed $json
73
+     * @param stdClass $json
74 74
      *
75 75
      * @throws ValidationException
76 76
      */
Please login to merge, or discard this patch.
src/Variations/Model/Events/DescriptionEdited.php 1 patch
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.
src/EventExport/Format/HTML/PDF/PDFWebArchiveFileFormat.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
     /**
17 17
      * @param string $brand
18 18
      * @param string $title
19
-     * @param string|null $subtitle
19
+     * @param string|null $subTitle
20 20
      * @param string|null $footer
21 21
      * @param string|null $publisher
22 22
      * @param EventInfoServiceInterface|null $uitpas
Please login to merge, or discard this patch.
src/Event/Events/TranslationApplied.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
      * TranslationApplied constructor.
44 44
      * @param String $eventId
45 45
      * @param Language $language
46
-     * @param String|null $title
47
-     * @param String|null $shortDescription
48
-     * @param String|null $longDescription
46
+     * @param null|string $title
47
+     * @param null|string $shortDescription
48
+     * @param null|string $longDescription
49 49
      */
50 50
     public function __construct(
51 51
         String $eventId,
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-     * @return mixed The object instance
71
+     * @return TranslationApplied The object instance
72 72
      */
73 73
     public static function deserialize(array $data)
74 74
     {
Please login to merge, or discard this patch.