Skip to content

Commit 06df934

Browse files
committed
Fix
1 parent c886e65 commit 06df934

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/LiveComponent/src/ComponentWithMultiStepFormTrait.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function previous(): void
188188
/**
189189
* Checks if the current step is the first step.
190190
*
191-
* @return bool True if the current step is the first; false otherwise.
191+
* @return bool true if the current step is the first; false otherwise
192192
*/
193193
#[ExposeInTemplate]
194194
public function isFirst(): bool
@@ -199,7 +199,7 @@ public function isFirst(): bool
199199
/**
200200
* Checks if the current step is the last step.
201201
*
202-
* @return bool True if the current step is the last; false otherwise.
202+
* @return bool true if the current step is the last; false otherwise
203203
*/
204204
#[ExposeInTemplate]
205205
public function isLast(): bool
@@ -232,7 +232,7 @@ abstract public function onSubmit();
232232
/**
233233
* Retrieves all data from all steps.
234234
*
235-
* @return array<string, mixed> An associative array of step names and their data.
235+
* @return array<string, mixed> an associative array of step names and their data
236236
*/
237237
public function getAllData(): array
238238
{
@@ -265,30 +265,30 @@ public function resetForm(): void
265265
/**
266266
* Abstract method to retrieve the storage implementation.
267267
*
268-
* @return StorageInterface The storage instance.
268+
* @return StorageInterface the storage instance
269269
*/
270270
abstract protected function getStorage(): StorageInterface;
271271

272272
/**
273273
* Abstract method to specify the form class for the component.
274274
*
275-
* @return class-string<FormInterface> The form class name.
275+
* @return class-string<FormInterface> the form class name
276276
*/
277277
abstract protected static function formClass(): string;
278278

279279
/**
280280
* Abstract method to retrieve the form factory instance.
281281
*
282-
* @return FormFactoryInterface The form factory.
282+
* @return FormFactoryInterface the form factory
283283
*/
284284
abstract protected function getFormFactory(): FormFactoryInterface;
285285

286286
/**
287287
* @internal
288288
*
289-
* Instantiates the form for the current step.
289+
* Instantiates the form for the current step
290290
*
291-
* @return FormInterface The form instance.
291+
* @return FormInterface the form instance
292292
*/
293293
protected function instantiateForm(): FormInterface
294294
{
@@ -304,9 +304,9 @@ protected function instantiateForm(): FormInterface
304304
/**
305305
* @internal
306306
*
307-
* Generates a unique prefix based on the component's class name.
307+
* Generates a unique prefix based on the component's class name
308308
*
309-
* @return string The generated prefix in snake case.
309+
* @return string the generated prefix in snake case
310310
*/
311311
private static function prefix(): string
312312
{

src/LiveComponent/src/Storage/StorageInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ interface StorageInterface
3333
* This method is used to save the state of a component or any other
3434
* relevant data that needs to persist across requests or interactions.
3535
*
36-
* @param string $key The unique identifier for the data to store.
37-
* @param mixed $values The value to be stored.
36+
* @param string $key the unique identifier for the data to store
37+
* @param mixed $values the value to be stored
3838
*/
3939
public function persist(string $key, mixed $values): void;
4040

@@ -44,7 +44,7 @@ public function persist(string $key, mixed $values): void;
4444
* This method is useful for cleaning up data that is no longer needed,
4545
* such as resetting a form or clearing cached values.
4646
*
47-
* @param string $key The unique identifier for the data to remove.
47+
* @param string $key the unique identifier for the data to remove
4848
*/
4949
public function remove(string $key): void;
5050

@@ -55,11 +55,11 @@ public function remove(string $key): void;
5555
* a default value instead. This is commonly used to fetch saved state or
5656
* configuration for a component.
5757
*
58-
* @param string $key The unique identifier for the data to retrieve.
58+
* @param string $key the unique identifier for the data to retrieve
5959
* @param mixed $default The default value to return if the key is not found.
6060
* Defaults to an empty array.
6161
*
62-
* @return mixed The value associated with the specified key or the default value.
62+
* @return mixed the value associated with the specified key or the default value
6363
*/
6464
public function get(string $key, mixed $default = []): mixed;
6565
}

0 commit comments

Comments
 (0)