Completed
Pull Request — master (#3)
by Guilh
02:22
created
src/Contact.php 1 patch
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
 use phootwork\collection\CollectionUtils;
7 7
 use phootwork\lang\Arrayable;
8 8
 
9
-class Contact extends AbstractModel implements Arrayable
10
-{
9
+class Contact extends AbstractModel implements Arrayable {
11 10
     use ExtensionPart;
12 11
 
13 12
     /** @var string */
@@ -19,13 +18,11 @@  discard block
 block discarded – undo
19 18
     /** @var string */
20 19
     private $email;
21 20
 
22
-    public function __construct($contents = [])
23
-    {
21
+    public function __construct($contents = []) {
24 22
         $this->parse($contents);
25 23
     }
26 24
 
27
-    private function parse($contents = [])
28
-    {
25
+    private function parse($contents = []) {
29 26
         $data = CollectionUtils::toMap($contents);
30 27
 
31 28
         $this->name = $data->get('name');
@@ -36,16 +33,14 @@  discard block
 block discarded – undo
36 33
         $this->parseExtensions($data);
37 34
     }
38 35
 
39
-    public function toArray()
40
-    {
36
+    public function toArray() {
41 37
         return $this->export('name', 'url', 'email');
42 38
     }
43 39
 
44 40
     /**
45 41
      * @return string
46 42
      */
47
-    public function getName()
48
-    {
43
+    public function getName() {
49 44
         return $this->name;
50 45
     }
51 46
 
@@ -54,8 +49,7 @@  discard block
 block discarded – undo
54 49
      *
55 50
      * @return $this
56 51
      */
57
-    public function setName($name)
58
-    {
52
+    public function setName($name) {
59 53
         $this->name = $name;
60 54
 
61 55
         return $this;
@@ -64,8 +58,7 @@  discard block
 block discarded – undo
64 58
     /**
65 59
      * @return string
66 60
      */
67
-    public function getUrl()
68
-    {
61
+    public function getUrl() {
69 62
         return $this->url;
70 63
     }
71 64
 
@@ -74,8 +67,7 @@  discard block
 block discarded – undo
74 67
      *
75 68
      * @return $this
76 69
      */
77
-    public function setUrl($url)
78
-    {
70
+    public function setUrl($url) {
79 71
         $this->url = $url;
80 72
 
81 73
         return $this;
@@ -84,8 +76,7 @@  discard block
 block discarded – undo
84 76
     /**
85 77
      * @return string
86 78
      */
87
-    public function getEmail()
88
-    {
79
+    public function getEmail() {
89 80
         return $this->email;
90 81
     }
91 82
 
@@ -94,8 +85,7 @@  discard block
 block discarded – undo
94 85
      *
95 86
      * @return $this
96 87
      */
97
-    public function setEmail($email)
98
-    {
88
+    public function setEmail($email) {
99 89
         $this->email = $email;
100 90
 
101 91
         return $this;
Please login to merge, or discard this patch.
src/Response.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 use phootwork\lang\Arrayable;
12 12
 use gossi\swagger\collections\Headers;
13 13
 
14
-class Response extends AbstractModel implements Arrayable
15
-{
14
+class Response extends AbstractModel implements Arrayable {
16 15
     use RefPart;
17 16
     use DescriptionPart;
18 17
     use SchemaPart;
@@ -27,14 +26,12 @@  discard block
 block discarded – undo
27 26
     /** @var Headers */
28 27
     private $headers;
29 28
 
30
-    public function __construct($code, $contents = [])
31
-    {
29
+    public function __construct($code, $contents = []) {
32 30
         $this->code = $code;
33 31
         $this->parse($contents);
34 32
     }
35 33
 
36
-    private function parse($contents)
37
-    {
34
+    private function parse($contents) {
38 35
         $data = CollectionUtils::toMap($contents);
39 36
 
40 37
         $this->examples = $data->get('examples', new Map());
@@ -47,8 +44,7 @@  discard block
 block discarded – undo
47 44
         $this->parseExtensions($data);
48 45
     }
49 46
 
50
-    public function toArray()
51
-    {
47
+    public function toArray() {
52 48
         return $this->export('description', 'schema', 'headers', 'examples');
53 49
     }
54 50
 
@@ -57,16 +53,14 @@  discard block
 block discarded – undo
57 53
      * 
58 54
      * @return string
59 55
      */
60
-    public function getCode()
61
-    {
56
+    public function getCode() {
62 57
         return $this->code;
63 58
     }
64 59
 
65 60
     /**
66 61
      * @return Map
67 62
      */
68
-    public function getExamples()
69
-    {
63
+    public function getExamples() {
70 64
         return $this->examples;
71 65
     }
72 66
 
@@ -75,8 +69,7 @@  discard block
 block discarded – undo
75 69
      * 
76 70
      * @return Headers
77 71
      */
78
-    public function getHeaders()
79
-    {
72
+    public function getHeaders() {
80 73
         return $this->headers;
81 74
     }
82 75
 }
Please login to merge, or discard this patch.
src/Info.php 1 patch
Braces   +12 added lines, -24 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
8 8
 use phootwork\lang\Arrayable;
9 9
 use gossi\swagger\parts\DescriptionPart;
10 10
 
11
-class Info extends AbstractModel implements Arrayable
12
-{
11
+class Info extends AbstractModel implements Arrayable {
13 12
     use DescriptionPart;
14 13
     use ExtensionPart;
15 14
 
@@ -28,13 +27,11 @@  discard block
 block discarded – undo
28 27
     /** @var string */
29 28
     private $version;
30 29
 
31
-    public function __construct($contents = [])
32
-    {
30
+    public function __construct($contents = []) {
33 31
         $this->parse($contents);
34 32
     }
35 33
 
36
-    private function parse($contents = [])
37
-    {
34
+    private function parse($contents = []) {
38 35
         $data = CollectionUtils::toMap($contents);
39 36
 
40 37
         $this->title = $data->get('title');
@@ -48,16 +45,14 @@  discard block
 block discarded – undo
48 45
         $this->parseExtensions($data);
49 46
     }
50 47
 
51
-    public function toArray()
52
-    {
48
+    public function toArray() {
53 49
         return $this->export('version', 'title', 'description', 'termsOfService', 'contact', 'license');
54 50
     }
55 51
 
56 52
     /**
57 53
      * @return string
58 54
      */
59
-    public function getTitle()
60
-    {
55
+    public function getTitle() {
61 56
         return $this->title;
62 57
     }
63 58
 
@@ -66,8 +61,7 @@  discard block
 block discarded – undo
66 61
      *
67 62
      * @return $this
68 63
      */
69
-    public function setTitle($title)
70
-    {
64
+    public function setTitle($title) {
71 65
         $this->title = $title;
72 66
 
73 67
         return $this;
@@ -76,8 +70,7 @@  discard block
 block discarded – undo
76 70
     /**
77 71
      * @return string
78 72
      */
79
-    public function getTerms()
80
-    {
73
+    public function getTerms() {
81 74
         return $this->termsOfService;
82 75
     }
83 76
 
@@ -86,8 +79,7 @@  discard block
 block discarded – undo
86 79
      *
87 80
      * @return $this
88 81
      */
89
-    public function setTerms($terms)
90
-    {
82
+    public function setTerms($terms) {
91 83
         $this->termsOfService = $terms;
92 84
 
93 85
         return $this;
@@ -96,24 +88,21 @@  discard block
 block discarded – undo
96 88
     /**
97 89
      * @return Contact
98 90
      */
99
-    public function getContact()
100
-    {
91
+    public function getContact() {
101 92
         return $this->contact;
102 93
     }
103 94
 
104 95
     /**
105 96
      * @return License
106 97
      */
107
-    public function getLicense()
108
-    {
98
+    public function getLicense() {
109 99
         return $this->license;
110 100
     }
111 101
 
112 102
     /**
113 103
      * @return string
114 104
      */
115
-    public function getVersion()
116
-    {
105
+    public function getVersion() {
117 106
         return $this->version;
118 107
     }
119 108
 
@@ -122,8 +111,7 @@  discard block
 block discarded – undo
122 111
      *
123 112
      * @return $this
124 113
      */
125
-    public function setVersion($version)
126
-    {
114
+    public function setVersion($version) {
127 115
         $this->version = $version;
128 116
 
129 117
         return $this;
Please login to merge, or discard this patch.
src/Header.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
 use phootwork\lang\Arrayable;
11 11
 use phootwork\collection\Map;
12 12
 
13
-class Header extends AbstractModel implements Arrayable
14
-{
13
+class Header extends AbstractModel implements Arrayable {
15 14
     use DescriptionPart;
16 15
     use TypePart;
17 16
     use ItemsPart;
@@ -20,14 +19,12 @@  discard block
 block discarded – undo
20 19
     /** @var string */
21 20
     private $header;
22 21
 
23
-    public function __construct($header, $contents = null)
24
-    {
22
+    public function __construct($header, $contents = null) {
25 23
         $this->header = $header;
26 24
         $this->parse($contents === null ? new Map() : $contents);
27 25
     }
28 26
 
29
-    private function parse($contents = [])
30
-    {
27
+    private function parse($contents = []) {
31 28
         $data = CollectionUtils::toMap($contents);
32 29
 
33 30
         // parts
@@ -37,8 +34,7 @@  discard block
 block discarded – undo
37 34
         $this->parseExtensions($data);
38 35
     }
39 36
 
40
-    public function toArray()
41
-    {
37
+    public function toArray() {
42 38
         return $this->export('description', $this->getTypeExportFields(), 'items');
43 39
     }
44 40
 
@@ -47,8 +43,7 @@  discard block
 block discarded – undo
47 43
      * 
48 44
      * @return string
49 45
      */
50
-    public function getHeader()
51
-    {
46
+    public function getHeader() {
52 47
         return $this->header;
53 48
     }
54 49
 }
Please login to merge, or discard this patch.
src/parts/RequiredPart.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,21 +4,18 @@  discard block
 block discarded – undo
4 4
 
5 5
 use phootwork\collection\Map;
6 6
 
7
-trait RequiredPart
8
-{
7
+trait RequiredPart {
9 8
     /** @var bool */
10 9
     private $required = false;
11 10
 
12
-    private function parseRequired(Map $data)
13
-    {
11
+    private function parseRequired(Map $data) {
14 12
         $this->required = $data->has('required') && $data->get('required');
15 13
     }
16 14
 
17 15
     /**
18 16
      * @return bool
19 17
      */
20
-    public function getRequired()
21
-    {
18
+    public function getRequired() {
22 19
         return $this->required;
23 20
     }
24 21
 
@@ -27,8 +24,7 @@  discard block
 block discarded – undo
27 24
      *
28 25
      * @return $this
29 26
      */
30
-    public function setRequired($required)
31
-    {
27
+    public function setRequired($required) {
32 28
         $this->required = $required;
33 29
 
34 30
         return $this;
Please login to merge, or discard this patch.
src/parts/ProducesPart.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,12 +5,10 @@  discard block
 block discarded – undo
5 5
 use phootwork\collection\Map;
6 6
 use phootwork\collection\Set;
7 7
 
8
-trait ProducesPart
9
-{
8
+trait ProducesPart {
10 9
     private $produces;
11 10
 
12
-    private function parseProduces(Map $data)
13
-    {
11
+    private function parseProduces(Map $data) {
14 12
         $this->produces = $data->get('produces', new Set());
15 13
     }
16 14
 
@@ -19,8 +17,7 @@  discard block
 block discarded – undo
19 17
      *
20 18
      * @return Set
21 19
      */
22
-    public function getProduces()
23
-    {
20
+    public function getProduces() {
24 21
         return $this->produces;
25 22
     }
26 23
 }
Please login to merge, or discard this patch.
src/parts/SchemesPart.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,12 +5,10 @@  discard block
 block discarded – undo
5 5
 use phootwork\collection\Map;
6 6
 use phootwork\collection\ArrayList;
7 7
 
8
-trait SchemesPart
9
-{
8
+trait SchemesPart {
10 9
     private $schemes;
11 10
 
12
-    private function parseSchemes(Map $data)
13
-    {
11
+    private function parseSchemes(Map $data) {
14 12
         $this->schemes = $data->get('schemes', new ArrayList());
15 13
     }
16 14
 
@@ -19,8 +17,7 @@  discard block
 block discarded – undo
19 17
      *
20 18
      * @return ArrayList
21 19
      */
22
-    public function getSchemes()
23
-    {
20
+    public function getSchemes() {
24 21
         return $this->schemes;
25 22
     }
26 23
 }
Please login to merge, or discard this patch.
src/parts/UrlPart.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,21 +4,18 @@  discard block
 block discarded – undo
4 4
 
5 5
 use phootwork\collection\Map;
6 6
 
7
-trait UrlPart
8
-{
7
+trait UrlPart {
9 8
     /** @var string */
10 9
     private $url = false;
11 10
 
12
-    private function parseUrl(Map $data)
13
-    {
11
+    private function parseUrl(Map $data) {
14 12
         $this->url = $data->get('url');
15 13
     }
16 14
 
17 15
     /**
18 16
      * @return string
19 17
      */
20
-    public function getUrl()
21
-    {
18
+    public function getUrl() {
22 19
         return $this->url;
23 20
     }
24 21
 
@@ -27,8 +24,7 @@  discard block
 block discarded – undo
27 24
      *
28 25
      * @return $this
29 26
      */
30
-    public function setUrl($url)
31
-    {
27
+    public function setUrl($url) {
32 28
         $this->url = $url;
33 29
 
34 30
         return $this;
Please login to merge, or discard this patch.
src/parts/TypePart.php 1 patch
Braces   +35 added lines, -70 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use phootwork\collection\Map;
6 6
 
7
-trait TypePart
8
-{
7
+trait TypePart {
9 8
     /** @var string */
10 9
     private $type;
11 10
 
@@ -54,8 +53,7 @@  discard block
 block discarded – undo
54 53
     /** @var float */
55 54
     private $multipleOf;
56 55
 
57
-    private function parseType(Map $data)
58
-    {
56
+    private function parseType(Map $data) {
59 57
         $this->type = $data->get('type');
60 58
         $this->format = $data->get('format');
61 59
         $this->collectionFormat = $data->get('collectionFormat');
@@ -74,8 +72,7 @@  discard block
 block discarded – undo
74 72
         $this->multipleOf = $data->get('multipleOf');
75 73
     }
76 74
 
77
-    private function getTypeExportFields()
78
-    {
75
+    private function getTypeExportFields() {
79 76
         return ['type', 'format', 'collectionFormat', 'default', 'maximum', 'exclusiveMaximum',
80 77
             'minimum', 'exclusiveMinimum', 'maxLength', 'minLength', 'pattern', 'maxItems',
81 78
             'minItems', 'uniqueItems', 'enum', 'multipleOf',
@@ -85,8 +82,7 @@  discard block
 block discarded – undo
85 82
     /**
86 83
      * @return string
87 84
      */
88
-    public function getType()
89
-    {
85
+    public function getType() {
90 86
         return $this->type;
91 87
     }
92 88
 
@@ -95,8 +91,7 @@  discard block
 block discarded – undo
95 91
      *
96 92
      * @return $this
97 93
      */
98
-    public function setType($type)
99
-    {
94
+    public function setType($type) {
100 95
         $this->type = $type;
101 96
 
102 97
         return $this;
@@ -105,8 +100,7 @@  discard block
 block discarded – undo
105 100
     /**
106 101
      * @return string
107 102
      */
108
-    public function getFormat()
109
-    {
103
+    public function getFormat() {
110 104
         return $this->format;
111 105
     }
112 106
 
@@ -117,8 +111,7 @@  discard block
 block discarded – undo
117 111
      *
118 112
      * @return $this
119 113
      */
120
-    public function setFormat($format)
121
-    {
114
+    public function setFormat($format) {
122 115
         $this->format = $format;
123 116
 
124 117
         return $this;
@@ -127,8 +120,7 @@  discard block
 block discarded – undo
127 120
     /**
128 121
      * @return string
129 122
      */
130
-    public function getCollectionFormat()
131
-    {
123
+    public function getCollectionFormat() {
132 124
         return $this->collectionFormat;
133 125
     }
134 126
 
@@ -149,8 +141,7 @@  discard block
 block discarded – undo
149 141
      *
150 142
      * @return $this
151 143
      */
152
-    public function setCollectionFormat($collectionFormat)
153
-    {
144
+    public function setCollectionFormat($collectionFormat) {
154 145
         $this->collectionFormat = $collectionFormat;
155 146
 
156 147
         return $this;
@@ -159,8 +150,7 @@  discard block
 block discarded – undo
159 150
     /**
160 151
      * @return mixed
161 152
      */
162
-    public function getDefault()
163
-    {
153
+    public function getDefault() {
164 154
         return $this->default;
165 155
     }
166 156
 
@@ -169,8 +159,7 @@  discard block
 block discarded – undo
169 159
      *
170 160
      * @return $this
171 161
      */
172
-    public function setDefault($default)
173
-    {
162
+    public function setDefault($default) {
174 163
         $this->default = $default;
175 164
 
176 165
         return $this;
@@ -179,8 +168,7 @@  discard block
 block discarded – undo
179 168
     /**
180 169
      * @return float
181 170
      */
182
-    public function getMaximum()
183
-    {
171
+    public function getMaximum() {
184 172
         return $this->maximum;
185 173
     }
186 174
 
@@ -189,8 +177,7 @@  discard block
 block discarded – undo
189 177
      *
190 178
      * @return $this
191 179
      */
192
-    public function setMaximum($maximum)
193
-    {
180
+    public function setMaximum($maximum) {
194 181
         $this->maximum = $maximum;
195 182
 
196 183
         return $this;
@@ -199,8 +186,7 @@  discard block
 block discarded – undo
199 186
     /**
200 187
      * @return bool
201 188
      */
202
-    public function isExclusiveMaximum()
203
-    {
189
+    public function isExclusiveMaximum() {
204 190
         return $this->exclusiveMaximum;
205 191
     }
206 192
 
@@ -209,8 +195,7 @@  discard block
 block discarded – undo
209 195
      *
210 196
      * @return $this
211 197
      */
212
-    public function setExclusiveMaximum($exclusiveMaximum)
213
-    {
198
+    public function setExclusiveMaximum($exclusiveMaximum) {
214 199
         $this->exclusiveMaximum = $exclusiveMaximum;
215 200
 
216 201
         return $this;
@@ -219,8 +204,7 @@  discard block
 block discarded – undo
219 204
     /**
220 205
      * @return float
221 206
      */
222
-    public function getMinimum()
223
-    {
207
+    public function getMinimum() {
224 208
         return $this->minimum;
225 209
     }
226 210
 
@@ -229,8 +213,7 @@  discard block
 block discarded – undo
229 213
      *
230 214
      * @return $this
231 215
      */
232
-    public function setMinimum($minimum)
233
-    {
216
+    public function setMinimum($minimum) {
234 217
         $this->minimum = $minimum;
235 218
 
236 219
         return $this;
@@ -239,8 +222,7 @@  discard block
 block discarded – undo
239 222
     /**
240 223
      * @return bool
241 224
      */
242
-    public function isExclusiveMinimum()
243
-    {
225
+    public function isExclusiveMinimum() {
244 226
         return $this->exclusiveMinimum;
245 227
     }
246 228
 
@@ -249,8 +231,7 @@  discard block
 block discarded – undo
249 231
      *
250 232
      * @return $this
251 233
      */
252
-    public function setExclusiveMinimum($exclusiveMinimum)
253
-    {
234
+    public function setExclusiveMinimum($exclusiveMinimum) {
254 235
         $this->exclusiveMinimum = $exclusiveMinimum;
255 236
 
256 237
         return $this;
@@ -259,8 +240,7 @@  discard block
 block discarded – undo
259 240
     /**
260 241
      * @return int
261 242
      */
262
-    public function getMaxLength()
263
-    {
243
+    public function getMaxLength() {
264 244
         return $this->maxLength;
265 245
     }
266 246
 
@@ -269,8 +249,7 @@  discard block
 block discarded – undo
269 249
      *
270 250
      * @return $this
271 251
      */
272
-    public function setMaxLength($maxLength)
273
-    {
252
+    public function setMaxLength($maxLength) {
274 253
         $this->maxLength = $maxLength;
275 254
 
276 255
         return $this;
@@ -279,8 +258,7 @@  discard block
 block discarded – undo
279 258
     /**
280 259
      * @return int
281 260
      */
282
-    public function getMinLength()
283
-    {
261
+    public function getMinLength() {
284 262
         return $this->minLength;
285 263
     }
286 264
 
@@ -289,8 +267,7 @@  discard block
 block discarded – undo
289 267
      *
290 268
      * @return $this
291 269
      */
292
-    public function setMinLength($minLength)
293
-    {
270
+    public function setMinLength($minLength) {
294 271
         $this->minLength = $minLength;
295 272
 
296 273
         return $this;
@@ -299,8 +276,7 @@  discard block
 block discarded – undo
299 276
     /**
300 277
      * @return string
301 278
      */
302
-    public function getPattern()
303
-    {
279
+    public function getPattern() {
304 280
         return $this->pattern;
305 281
     }
306 282
 
@@ -309,8 +285,7 @@  discard block
 block discarded – undo
309 285
      *
310 286
      * @return $thi
311 287
      */
312
-    public function setPattern($pattern)
313
-    {
288
+    public function setPattern($pattern) {
314 289
         $this->pattern = $pattern;
315 290
 
316 291
         return $this;
@@ -319,8 +294,7 @@  discard block
 block discarded – undo
319 294
     /**
320 295
      * @return int
321 296
      */
322
-    public function getMaxItems()
323
-    {
297
+    public function getMaxItems() {
324 298
         return $this->maxItems;
325 299
     }
326 300
 
@@ -329,8 +303,7 @@  discard block
 block discarded – undo
329 303
      *
330 304
      * @return $this
331 305
      */
332
-    public function setMaxItems($maxItems)
333
-    {
306
+    public function setMaxItems($maxItems) {
334 307
         $this->maxItems = $maxItems;
335 308
 
336 309
         return $this;
@@ -339,8 +312,7 @@  discard block
 block discarded – undo
339 312
     /**
340 313
      * @return int
341 314
      */
342
-    public function getMinItems()
343
-    {
315
+    public function getMinItems() {
344 316
         return $this->minItems;
345 317
     }
346 318
 
@@ -349,8 +321,7 @@  discard block
 block discarded – undo
349 321
      *
350 322
      * @return $this
351 323
      */
352
-    public function setMinItems($minItems)
353
-    {
324
+    public function setMinItems($minItems) {
354 325
         $this->minItems = $minItems;
355 326
 
356 327
         return $this;
@@ -359,8 +330,7 @@  discard block
 block discarded – undo
359 330
     /**
360 331
      * @return bool
361 332
      */
362
-    public function hasUniqueItems()
363
-    {
333
+    public function hasUniqueItems() {
364 334
         return $this->uniqueItems;
365 335
     }
366 336
 
@@ -369,8 +339,7 @@  discard block
 block discarded – undo
369 339
      *
370 340
      * @return $this
371 341
      */
372
-    public function setUniqueItems($uniqueItems)
373
-    {
342
+    public function setUniqueItems($uniqueItems) {
374 343
         $this->uniqueItems = $uniqueItems;
375 344
 
376 345
         return $this;
@@ -379,8 +348,7 @@  discard block
 block discarded – undo
379 348
     /**
380 349
      * @return mixed
381 350
      */
382
-    public function getEnum()
383
-    {
351
+    public function getEnum() {
384 352
         return $this->enum;
385 353
     }
386 354
 
@@ -389,8 +357,7 @@  discard block
 block discarded – undo
389 357
      *
390 358
      * @return $this
391 359
      */
392
-    public function setEnum($enum)
393
-    {
360
+    public function setEnum($enum) {
394 361
         $this->enum = $enum;
395 362
 
396 363
         return $this;
@@ -399,8 +366,7 @@  discard block
 block discarded – undo
399 366
     /**
400 367
      * @return float
401 368
      */
402
-    public function getMultipleOf()
403
-    {
369
+    public function getMultipleOf() {
404 370
         return $this->multipleOf;
405 371
     }
406 372
 
@@ -409,8 +375,7 @@  discard block
 block discarded – undo
409 375
      *
410 376
      * @return $this
411 377
      */
412
-    public function setMultipleOf($multipleOf)
413
-    {
378
+    public function setMultipleOf($multipleOf) {
414 379
         $this->multipleOf = $multipleOf;
415 380
 
416 381
         return $this;
Please login to merge, or discard this patch.