You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Map/src/Polygon.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
finalclass Polygon implements Element
22
22
{
23
23
/**
24
-
* @param array<Point>|array<array<Point>> $points A list of point representing the polygon, or a list of paths (each path is an array of points) representing a polygon with holes.
24
+
* @param array<Point>|array<array<Point>> $points a list of point representing the polygon, or a list of paths (each path is an array of points) representing a polygon with holes
25
25
* @param array<string, mixed> $extra Extra data, can be used by the developer to store additional information and use them later JavaScript side
26
26
*/
27
27
publicfunction__construct(
@@ -76,7 +76,7 @@ public static function fromArray(array $polygon): self
Copy file name to clipboardExpand all lines: src/Toolkit/src/Kit/KitSynchronizer.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,11 +75,11 @@ private function synchronizeComponents(Kit $kit): void
75
75
76
76
$meta = null;
77
77
if ($this->filesystem->exists($metaJsonFile = Path::join($file->getPath(), str_replace('.html.twig', '.meta.json', $file->getBasename())))) {
78
-
$metaJson = file_get_contents($metaJsonFile) ?: thrownew \RuntimeException(sprintf('Unable to get contents from file "%s".', $metaJsonFile));
78
+
$metaJson = file_get_contents($metaJsonFile) ?: thrownew \RuntimeException(\sprintf('Unable to get contents from file "%s".', $metaJsonFile));
79
79
try {
80
80
$meta = ComponentMeta::fromJson($metaJson);
81
81
} catch (\Throwable$e) {
82
-
thrownew \RuntimeException(sprintf('Unable to parse component "%s" meta from JSON file "%s".', $componentName, $metaJsonFile), previous: $e);
82
+
thrownew \RuntimeException(\sprintf('Unable to parse component "%s" meta from JSON file "%s".', $componentName, $metaJsonFile), previous: $e);
83
83
}
84
84
}
85
85
@@ -132,7 +132,7 @@ private function resolveComponentDependencies(Kit $kit, Component $component): v
132
132
if (!$component->hasDependency(newPhpPackageDependency($package))) {
133
133
thrownew \RuntimeException(\sprintf('Component "%s" uses "%s" UX Twig component, but the composer package "%s" is not listed as a dependency in meta file.', $component->name, $componentReferenceName, $package));
thrownew \RuntimeException(\sprintf('Component "%s" not found in component "%s" (file "%s")', $componentReferenceName, $component->name, $file->relativePathNameToKit));
0 commit comments