@@ -46,15 +46,15 @@ public function getRootCategoryWithChildren(CategoryInterface $category): Catego
4646 {
4747 $ context = $ category ->getContext ();
4848 if (null === $ context ) {
49- throw new \InvalidArgumentException (sprintf (
49+ throw new \InvalidArgumentException (\ sprintf (
5050 'Context of category "%s" cannot be null. ' ,
5151 $ category ->getId () ?? ''
5252 ));
5353 }
5454
5555 $ contextId = $ context ->getId ();
5656 if (null === $ contextId ) {
57- throw new \InvalidArgumentException (sprintf (
57+ throw new \InvalidArgumentException (\ sprintf (
5858 'Context of category "%s" must have an not null identifier. ' ,
5959 $ category ->getId () ?? ''
6060 ));
@@ -72,7 +72,7 @@ public function getRootCategoryWithChildren(CategoryInterface $category): Catego
7272 }
7373 }
7474
75- throw new \InvalidArgumentException (sprintf ('Category "%s" does not exist. ' , $ category ->getId () ?? '' ));
75+ throw new \InvalidArgumentException (\ sprintf ('Category "%s" does not exist. ' , $ category ->getId () ?? '' ));
7676 }
7777
7878 public function getRootCategoriesForContext (?ContextInterface $ context = null ): array
@@ -81,7 +81,7 @@ public function getRootCategoriesForContext(?ContextInterface $context = null):
8181
8282 $ contextId = $ context ->getId ();
8383 if (null === $ contextId ) {
84- throw new \InvalidArgumentException (sprintf (
84+ throw new \InvalidArgumentException (\ sprintf (
8585 'Context "%s" must have an not null identifier. ' ,
8686 $ context ->getName () ?? ''
8787 ));
@@ -110,7 +110,7 @@ public function getAllRootCategories(bool $loadChildren = true): array
110110
111111 foreach ($ rootCategories as $ category ) {
112112 if (null === $ category ->getContext ()) {
113- throw new \LogicException (sprintf (
113+ throw new \LogicException (\ sprintf (
114114 'Context of category "%s" cannot be null. ' ,
115115 $ category ->getId () ?? ''
116116 ));
0 commit comments