Skip to content

Commit d425dfc

Browse files
CS and doc fixes (#1525)
* CS and doc fixes * Update static.yml
1 parent 26062d1 commit d425dfc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Definition/Shape.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private function __construct()
3535

3636
/**
3737
* @param \Closure(string, Member|null=, array<string, mixed>=): Shape $shapeLocator
38-
* @param \Closure(): ServiceDefinition $serviceLocator
38+
* @param \Closure(): ServiceDefinition $serviceLocator
3939
*/
4040
public static function create(string $name, array $data, \Closure $shapeLocator, \Closure $serviceLocator): Shape
4141
{

src/Definition/Waiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Waiter
2525
private $shapeLocator;
2626

2727
/**
28-
* @param \Closure(string): Operation $operationLocator
28+
* @param \Closure(string): Operation $operationLocator
2929
* @param \Closure(string, Member|null=, array<string, mixed>=): Shape $shapeLocator
3030
*/
3131
public function __construct(array $data, \Closure $operationLocator, \Closure $shapeLocator)

src/Generator/GeneratorHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public static function parseDocumentation(string $documentation): string
233233
}
234234

235235
$empty = false;
236-
foreach (explode("\n", wordwrap(trim($line), 117 - \strlen(implode('', $prefix)))) as $l) {
236+
foreach (explode("\n", wordwrap(trim(str_replace(' ', ' ', $line)), 117 - \strlen(implode('', $prefix)))) as $l) {
237237
$lines[] = implode('', $prefix) . $l;
238238
if ($spaceNext) {
239239
$last = array_pop($prefix);

0 commit comments

Comments
 (0)