Skip to content

Commit cc853e2

Browse files
An unnecessary parameter from test function is removed
1 parent 3c46858 commit cc853e2

10 files changed

+38
-42
lines changed

docs/snippets/advanced-directive-array.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
<array_directive>
33

44
<user>
5-
<name>Mr. Nathanael Davis</name>
6-
<avatar>https://via.placeholder.com/640x480.png/0055ff?text=in</avatar>
7-
<avatar>https://via.placeholder.com/640x480.png/001155?text=aperiam</avatar>
8-
<images name="amet sint dolor">https://via.placeholder.com/640x480.png/00cc66?text=excepturi</images>
9-
<images name="recusandae natus iure">https://via.placeholder.com/640x480.png/00cc99?text=velit</images>
5+
<name>Dr. Clair Jacobs</name>
6+
<avatar>https://via.placeholder.com/640x480.png/00cc55?text=aut</avatar>
7+
<avatar>https://via.placeholder.com/640x480.png/00ee77?text=perferendis</avatar>
8+
<images name="et consectetur quasi">https://via.placeholder.com/640x480.png/0055bb?text=ipsum</images>
9+
<images name="explicabo error sint">https://via.placeholder.com/640x480.png/00ccaa?text=repudiandae</images>
1010
</user>
1111
<user>
12-
<name>Ms. Elouise Deckow</name>
13-
<avatar>https://via.placeholder.com/640x480.png/00bb66?text=voluptas</avatar>
14-
<avatar>https://via.placeholder.com/640x480.png/00cc99?text=pariatur</avatar>
15-
<images name="non autem reprehenderit">https://via.placeholder.com/640x480.png/009922?text=dolores</images>
16-
<images name="voluptas corrupti fugiat">https://via.placeholder.com/640x480.png/005533?text=quae</images>
12+
<name>Elena Purdy</name>
13+
<avatar>https://via.placeholder.com/640x480.png/001100?text=rem</avatar>
14+
<avatar>https://via.placeholder.com/640x480.png/0099dd?text=qui</avatar>
15+
<images name="cumque quas architecto">https://via.placeholder.com/640x480.png/003355?text=aut</images>
16+
<images name="ex modi consectetur">https://via.placeholder.com/640x480.png/007799?text=laboriosam</images>
1717
</user>
1818

1919
</array_directive>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<attributes_directive>
33

4-
<company since="2013"/>
4+
<company since="1981"/>
55
<url>https://example.com</url>
66

77
<user>
8-
<name>Loren Shields</name>
9-
<contact email="friesen.lewis@example.com" phone="555-000-1"/>
8+
<name>Martina Beahan</name>
9+
<contact email="kelsi.huel@example.org" phone="555-000-1"/>
1010
</user>
1111
<user>
12-
<name>Matilde Kohler DVM</name>
13-
<contact email="casey.koch@example.net" phone="555-000-2"/>
12+
<name>Mr. Rex Bergnaum DDS</name>
13+
<contact email="melyssa.ziemann@example.net" phone="555-000-2"/>
1414
</user>
1515

1616
</attributes_directive>

docs/snippets/advanced-directive-cdata.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<cdata_directive>
33

44
<user>
5-
<name><![CDATA[<h1>Haley Purdy</h1>]]></name>
6-
<email>elmo56@example.com</email>
5+
<name><![CDATA[<h1>Brannon Beatty</h1>]]></name>
6+
<email>phoebe.morar@example.net</email>
77
</user>
88
<user>
9-
<name><![CDATA[<h1>Pearl Kozey</h1>]]></name>
10-
<email>eusebio04@example.com</email>
9+
<name><![CDATA[<h1>Myrtle Berge</h1>]]></name>
10+
<email>heather.koelpin@example.org</email>
1111
</user>
1212

1313
</cdata_directive>

docs/snippets/advanced-directive-mixed.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
<mixed_directive>
33

44
<user>
5-
<name>Luis Beer DVM</name>
5+
<name>Delores Aufderhar</name>
66
<some>
77
<first>Foo</first>
8-
<second>kane.nader@example.com</second>
8+
<second>gregg68@example.org</second>
99
</some>
1010
</user>
1111
<user>
12-
<name>Claud Quigley IV</name>
12+
<name>Ervin Pouros</name>
1313
<some>
1414
<first>Foo</first>
15-
<second>talon09@example.net</second>
15+
<second>anderson.orn@example.com</second>
1616
</some>
1717
</user>
1818

docs/snippets/advanced-directive-value.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<value_directive>
33

44
<user>
5-
<name>Isac Hamill</name>
6-
<contact type="email">mathias01@example.org</contact>
5+
<name>Vesta Heaney</name>
6+
<contact type="email">carolanne.skiles@example.net</contact>
77
</user>
88
<user>
9-
<name>Letha Lubowitz</name>
10-
<contact type="email">runolfsson.claude@example.org</contact>
9+
<name>Prof. Lillie Harris</name>
10+
<contact type="email">torey.herzog@example.com</contact>
1111
</user>
1212

1313
</value_directive>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<attribute>
33

4-
<user created_at="2025-09-04 20:11:33">
4+
<user created_at="2025-09-04 20:18:16">
55
<id>1</id>
6-
<name>Dr. Timmothy Howell MD</name>
6+
<name>Reina Dickinson IV</name>
77
</user>
8-
<user created_at="2025-09-04 20:11:33">
8+
<user created_at="2025-09-04 20:18:16">
99
<id>2</id>
10-
<name>Marcel Cummerata</name>
10+
<name>Ayden Sporer DVM</name>
1111
</user>
1212

1313
</attribute>

docs/snippets/advanced-element-header-footer.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
<user>
55
<id>1</id>
6-
<name>Prof. Alberta Koch I</name>
6+
<name>Fredy Hodkiewicz</name>
77
</user>
88
<user>
99
<id>2</id>
10-
<name>Judy Dietrich IV</name>
10+
<name>Lia Weissnat</name>
1111
</user>
1212

1313
</header_footer>

docs/snippets/advanced-element-info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<user>
88
<id>1</id>
9-
<name>Miss Lina Nicolas</name>
9+
<name>Jordi Crooks</name>
1010
</user>
1111
<user>
1212
<id>2</id>
13-
<name>Dr. Jack Hagenes MD</name>
13+
<name>Alford Schmitt MD</name>
1414
</user>
1515

1616
</info_method>

docs/snippets/advanced-element-root.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
<user>
55
<id>1</id>
6-
<name>Samantha Wilkinson</name>
6+
<name>Marcelina Durgan</name>
77
</user>
88
<user>
99
<id>2</id>
10-
<name>Keyshawn Davis</name>
10+
<name>Mr. Oda Langworth</name>
1111
</user>
1212

1313
</foo>

tests/Helpers/docs.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use function Orchestra\Testbench\workbench_path;
66

7-
function copyFeedFileToDoc(string $source, string $target, bool $removeFilename = true): void
7+
function copyFeedFileToDoc(string $source, string $target): void
88
{
99
$sourceFile = workbench_path('app/Feeds/Docs/' . $source . '.php');
1010
$targetFile = __DIR__ . '/../../docs/snippets/' . $target;
@@ -19,9 +19,5 @@ function copyFeedFileToDoc(string $source, string $target, bool $removeFilename
1919
'App\Feeds',
2020
], $content);
2121

22-
if ($removeFilename) {
23-
$content = preg_replace('/(\n\s+public\sfunction\sfilename\(\):\sstring\n\s+{\n\s+.*\n\s+})/', '', $content);
24-
}
25-
2622
file_put_contents($targetFile, $content);
2723
}

0 commit comments

Comments
 (0)