@@ -53,10 +53,10 @@ public function it_generates_method_without_doc_block_if_typed(): void
5353 $ method ->setReturnType ('void ' );
5454
5555 $ expectedOutput = <<<'EOF'
56- <?php
57-
58- public function setType(?string $type) : void;
59- EOF;
56+ <?php
57+
58+ public function setType(?string $type) : void;
59+ EOF;
6060
6161 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
6262 }
@@ -71,13 +71,13 @@ public function it_generates_method_with_doc_block_if_typed(): void
7171 $ method ->setReturnType ('array ' );
7272
7373 $ expectedOutput = <<<'EOF'
74- <?php
75-
76- /**
77- * @return Items[]
78- */
79- public function getItems() : array;
80- EOF;
74+ <?php
75+
76+ /**
77+ * @return Items[]
78+ */
79+ public function getItems() : array;
80+ EOF;
8181
8282 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
8383 }
@@ -93,13 +93,13 @@ public function it_generates_method_with_overridden_doc_block(): void
9393 $ method ->overrideDocBlock (new DocBlock ('Awesome ' ));
9494
9595 $ expectedOutput = <<<'EOF'
96- <?php
97-
98- /**
99- * Awesome
100- */
101- public function getItems() : array;
102- EOF;
96+ <?php
97+
98+ /**
99+ * Awesome
100+ */
101+ public function getItems() : array;
102+ EOF;
103103
104104 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
105105 }
@@ -119,15 +119,15 @@ public function it_generates_method_with_doc_block_comment_if_typed(): void
119119 $ method ->setDocBlockComment ('Sets an awesome type ' );
120120
121121 $ expectedOutput = <<<'EOF'
122- <?php
123-
124- /**
125- * Sets an awesome type
126- *
127- * @param string|null $type
128- */
129- public function setType(?string $type);
130- EOF;
122+ <?php
123+
124+ /**
125+ * Sets an awesome type
126+ *
127+ * @param string|null $type
128+ */
129+ public function setType(?string $type);
130+ EOF;
131131
132132 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
133133 }
@@ -149,16 +149,16 @@ public function it_generates_method_with_doc_block_comment(): void
149149 $ method ->setTyped (true );
150150
151151 $ expectedOutput = <<<'EOF'
152- <?php
153-
154- /**
155- * Sets an awesome type
156- *
157- * @param string|null $type
158- * @return void
159- */
160- public function setType(?string $type) : void;
161- EOF;
152+ <?php
153+
154+ /**
155+ * Sets an awesome type
156+ *
157+ * @param string|null $type
158+ * @return void
159+ */
160+ public function setType(?string $type) : void;
161+ EOF;
162162
163163 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
164164 }
@@ -177,14 +177,14 @@ public function it_generates_method_with_mixed_type_doc_block(): void
177177 $ method ->setReturnTypeDocBlockHint ('mixed ' );
178178
179179 $ expectedOutput = <<<'EOF'
180- <?php
181-
182- /**
183- * @param mixed $type
184- * @return mixed
185- */
186- public function setType($type);
187- EOF;
180+ <?php
181+
182+ /**
183+ * @param mixed $type
184+ * @return mixed
185+ */
186+ public function setType($type);
187+ EOF;
188188
189189 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
190190 }
@@ -208,16 +208,16 @@ public function it_generates_method_with_array_type_doc_block(): void
208208 $ method ->setDocBlockComment ('Sets awesome items ' );
209209
210210 $ expectedOutput = <<<'EOF'
211- <?php
212-
213- /**
214- * Sets awesome items
215- *
216- * @param array<string, \stdClass> $items
217- * @return void
218- */
219- public function setItems(array $items) : void;
220- EOF;
211+ <?php
212+
213+ /**
214+ * Sets awesome items
215+ *
216+ * @param array<string, \stdClass> $items
217+ * @return void
218+ */
219+ public function setItems(array $items) : void;
220+ EOF;
221221
222222 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
223223 }
@@ -228,14 +228,14 @@ public function setItems(array $items) : void;
228228 public function it_generates_method_with_long_doc_block (): void
229229 {
230230 $ docBlockComment = <<<'EOF'
231- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
232- standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
233- type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
234- remaining essentially unchanged.
235-
236- It is a long established fact that a reader will be distracted by the readable content of a page when looking at
237- its layout.
238- EOF;
231+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
232+ standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
233+ type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
234+ remaining essentially unchanged.
235+
236+ It is a long established fact that a reader will be distracted by the readable content of a page when looking at
237+ its layout.
238+ EOF;
239239
240240 $ method = new MethodGenerator (
241241 'setType ' ,
@@ -247,22 +247,22 @@ public function it_generates_method_with_long_doc_block(): void
247247 $ method ->setDocBlockComment ($ docBlockComment );
248248
249249 $ expectedOutput = <<<'EOF'
250- <?php
251-
252- /**
253- * Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
254- * standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
255- * type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
256- * remaining essentially unchanged.
257- *
258- * It is a long established fact that a reader will be distracted by the readable content of a page when looking at
259- * its layout.
260- *
261- * @param string $type
262- * @param int|null $value
263- */
264- public function setType(string $type, ?int $value);
265- EOF;
250+ <?php
251+
252+ /**
253+ * Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
254+ * standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
255+ * type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
256+ * remaining essentially unchanged.
257+ *
258+ * It is a long established fact that a reader will be distracted by the readable content of a page when looking at
259+ * its layout.
260+ *
261+ * @param string $type
262+ * @param int|null $value
263+ */
264+ public function setType(string $type, ?int $value);
265+ EOF;
266266
267267 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ method ->generate ()]));
268268 }
0 commit comments