Skip to content

Commit 48fb7b9

Browse files
joetannenbaumgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 47427a1 commit 48fb7b9

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

src/ResponseFactory.php

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function setRootView(string $name): void
4040
$this->rootView = $name;
4141
}
4242

43-
4443
/**
4544
* @param string|array|Arrayable $key
4645
* @param mixed $value
@@ -57,7 +56,6 @@ public function share($key, $value = null): void
5756
}
5857

5958
/**
60-
* @param string|null $key
6159
* @param mixed $default
6260
* @return mixed
6361
*/
@@ -70,7 +68,6 @@ public function getShared(?string $key = null, $default = null)
7068
return $this->sharedProps;
7169
}
7270

73-
7471
/**
7572
* @return void
7673
*/
@@ -81,16 +78,12 @@ public function flushShared()
8178

8279
/**
8380
* @param Closure|string|null $version
84-
* @return void
8581
*/
8682
public function version($version): void
8783
{
8884
$this->version = $version;
8985
}
9086

91-
/**
92-
* @return string
93-
*/
9487
public function getVersion(): string
9588
{
9689
$version = $this->version instanceof Closure
@@ -100,17 +93,13 @@ public function getVersion(): string
10093
return (string) $version;
10194
}
10295

103-
/**
104-
* @return void
105-
*/
10696
public function clearHistory(): void
10797
{
10898
session(['inertia.clear_history' => true]);
10999
}
110100

111101
/**
112-
* @param bool $encrypt
113-
* @return void
102+
* @param bool $encrypt
114103
*/
115104
public function encryptHistory($encrypt = true): void
116105
{
@@ -125,38 +114,26 @@ public function lazy(callable $callback): LazyProp
125114
return new LazyProp($callback);
126115
}
127116

128-
/**
129-
* @param callable $callback
130-
* @return OptionalProp
131-
*/
132117
public function optional(callable $callback): OptionalProp
133118
{
134119
return new OptionalProp($callback);
135120
}
136121

137-
/**
138-
*
139-
* @param callable $callback
140-
* @param string $group
141-
* @return DeferProp
142-
*/
143122
public function defer(callable $callback, string $group = 'default'): DeferProp
144123
{
145124
return new DeferProp($callback, $group);
146125
}
147126

148127
/**
149128
* @param mixed $value
150-
* @return MergeProp
151129
*/
152130
public function merge($value): MergeProp
153131
{
154132
return new MergeProp($value);
155133
}
156134

157135
/**
158-
* @param mixed $value
159-
* @return MergeProp
136+
* @param mixed $value
160137
*/
161138
public function deepMerge($value): MergeProp
162139
{
@@ -165,17 +142,14 @@ public function deepMerge($value): MergeProp
165142

166143
/**
167144
* @param mixed $value
168-
* @return AlwaysProp
169145
*/
170146
public function always($value): AlwaysProp
171147
{
172148
return new AlwaysProp($value);
173149
}
174150

175151
/**
176-
* @param string $component
177-
* @param array|Arrayable $props
178-
* @return Response
152+
* @param array|Arrayable $props
179153
*/
180154
public function render(string $component, $props = []): Response
181155
{
@@ -194,7 +168,6 @@ public function render(string $component, $props = []): Response
194168

195169
/**
196170
* @param string|SymfonyRedirect $url
197-
* @return SymfonyResponse
198171
*/
199172
public function location($url): SymfonyResponse
200173
{

0 commit comments

Comments
 (0)