Skip to content

Commit

Permalink
phpcs & prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Feb 9, 2024
1 parent 8d989c1 commit 8b742fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/src/ComponentRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let componentMapByComponent = new Map<Component, string>();
export const resetRegistry = function () {
componentMapByElement = new WeakMap<HTMLElement, Component>();
componentMapByComponent = new Map<Component, string>();
}
};

export const registerComponent = function (component: Component) {
componentMapByElement.set(component.element, component);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function attributesForRendering(MountedComponent $mounted, ComponentMetad
$liveMetadata = $this->metadataFactory->getMetadata($mounted->getName());
$requestMethod = $liveMetadata->getComponentMetadata()?->get('method') ?? 'post';
// set attribute if needed
if ($requestMethod !== 'post') {
if ('post' !== $requestMethod) {
$attributesCollection->setRequestMethod($requestMethod);
}

Expand Down

0 comments on commit 8b742fc

Please sign in to comment.