Skip to content

Commit b253470

Browse files
taylorotwellStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 6078547 commit b253470

File tree

2 files changed

+56
-54
lines changed

2 files changed

+56
-54
lines changed

src/Illuminate/Testing/TestComponent.php

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
class TestComponent
1010
{
1111
/**
12-
* The original component.
13-
*
14-
* @var \Illuminate\View\Component
15-
*/
12+
* The original component.
13+
*
14+
* @var \Illuminate\View\Component
15+
*/
1616
public $component;
1717

1818
/**
19-
* The rendered component contents.
20-
*
21-
* @var string
22-
*/
19+
* The rendered component contents.
20+
*
21+
* @var string
22+
*/
2323
protected $rendered;
2424

2525
/**
26-
* Create a new test component instance.
27-
*
28-
* @param \Illuminate\View\Component $component
29-
* @param \Illuminate\View\View $view
30-
* @return void
31-
*/
26+
* Create a new test component instance.
27+
*
28+
* @param \Illuminate\View\Component $component
29+
* @param \Illuminate\View\View $view
30+
* @return void
31+
*/
3232
public function __construct($component, $view)
3333
{
3434
$this->component = $component;
@@ -37,12 +37,12 @@ public function __construct($component, $view)
3737
}
3838

3939
/**
40-
* Assert that the given string is contained within the rendered component.
41-
*
42-
* @param string $value
43-
* @param bool $escape
44-
* @return $this
45-
*/
40+
* Assert that the given string is contained within the rendered component.
41+
*
42+
* @param string $value
43+
* @param bool $escape
44+
* @return $this
45+
*/
4646
public function assertSee($value, $escape = true)
4747
{
4848
$value = $escape ? e($value) : $value;
@@ -53,12 +53,12 @@ public function assertSee($value, $escape = true)
5353
}
5454

5555
/**
56-
* Assert that the given strings are contained in order within the rendered component.
57-
*
58-
* @param array $values
59-
* @param bool $escape
60-
* @return $this
61-
*/
56+
* Assert that the given strings are contained in order within the rendered component.
57+
*
58+
* @param array $values
59+
* @param bool $escape
60+
* @return $this
61+
*/
6262
public function assertSeeInOrder(array $values, $escape = true)
6363
{
6464
$values = $escape ? array_map('e', ($values)) : $values;
@@ -69,12 +69,12 @@ public function assertSeeInOrder(array $values, $escape = true)
6969
}
7070

7171
/**
72-
* Assert that the given string is contained within the rendered component text.
73-
*
74-
* @param string $value
75-
* @param bool $escape
76-
* @return $this
77-
*/
72+
* Assert that the given string is contained within the rendered component text.
73+
*
74+
* @param string $value
75+
* @param bool $escape
76+
* @return $this
77+
*/
7878
public function assertSeeText($value, $escape = true)
7979
{
8080
$value = $escape ? e($value) : $value;
@@ -85,12 +85,12 @@ public function assertSeeText($value, $escape = true)
8585
}
8686

8787
/**
88-
* Assert that the given strings are contained in order within the rendered component text.
89-
*
90-
* @param array $values
91-
* @param bool $escape
92-
* @return $this
93-
*/
88+
* Assert that the given strings are contained in order within the rendered component text.
89+
*
90+
* @param array $values
91+
* @param bool $escape
92+
* @return $this
93+
*/
9494
public function assertSeeTextInOrder(array $values, $escape = true)
9595
{
9696
$values = $escape ? array_map('e', ($values)) : $values;
@@ -101,12 +101,12 @@ public function assertSeeTextInOrder(array $values, $escape = true)
101101
}
102102

103103
/**
104-
* Assert that the given string is not contained within the rendered component.
105-
*
106-
* @param string $value
107-
* @param bool $escape
108-
* @return $this
109-
*/
104+
* Assert that the given string is not contained within the rendered component.
105+
*
106+
* @param string $value
107+
* @param bool $escape
108+
* @return $this
109+
*/
110110
public function assertDontSee($value, $escape = true)
111111
{
112112
$value = $escape ? e($value) : $value;
@@ -117,12 +117,12 @@ public function assertDontSee($value, $escape = true)
117117
}
118118

119119
/**
120-
* Assert that the given string is not contained within the rendered component text.
121-
*
122-
* @param string $value
123-
* @param bool $escape
124-
* @return $this
125-
*/
120+
* Assert that the given string is not contained within the rendered component text.
121+
*
122+
* @param string $value
123+
* @param bool $escape
124+
* @return $this
125+
*/
126126
public function assertDontSeeText($value, $escape = true)
127127
{
128128
$value = $escape ? e($value) : $value;
@@ -133,10 +133,10 @@ public function assertDontSeeText($value, $escape = true)
133133
}
134134

135135
/**
136-
* Get the string contents of the rendered component.
137-
*
138-
* @return string
139-
*/
136+
* Get the string contents of the rendered component.
137+
*
138+
* @return string
139+
*/
140140
public function __toString()
141141
{
142142
return $this->rendered;

tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ public function testComponentCanAccessPublicProperties()
2222
$exampleComponent = new class extends Component
2323
{
2424
public $foo = 'bar';
25+
2526
public function speak()
2627
{
2728
return 'hello';
2829
}
30+
2931
public function render()
3032
{
3133
return 'rendered content';

0 commit comments

Comments
 (0)