@@ -141,7 +141,7 @@ public function create(AbstractContent $content): AbstractContent
141141 ];
142142
143143 /* attach content to content */
144- if (null !== $ content ->getContainerId ()) {
144+ if (null !== $ content ->getContainerId ()) {
145145 $ data ['container ' ] = [
146146 'id ' => $ content ->getContainerId (),
147147 'type ' => $ content ->getContainerType (),
@@ -209,7 +209,7 @@ public function descendants(AbstractContent $content, ?string $contentType = nul
209209 public function findOneBy (array $ searchParameter ): ?AbstractContent
210210 {
211211 $ allowedSearchParameter = ['title ' , 'spaceKey ' , 'type ' , 'id ' ];
212- $ queryParameter = array_filter ($ searchParameter , static function (string $ searchKey ) use ($ allowedSearchParameter ) {
212+ $ queryParameter = array_filter ($ searchParameter , static function (string $ searchKey ) use ($ allowedSearchParameter ) {
213213 return in_array ($ searchKey , $ allowedSearchParameter , true );
214214 }, ARRAY_FILTER_USE_KEY );
215215
@@ -306,7 +306,7 @@ private function deserializeContent(array $decodedData): AbstractContent
306306 if (isset ($ decodedData ['version ' ]['number ' ])) {
307307 $ content ->setVersion ((int )$ decodedData ['version ' ]['number ' ]);
308308 }
309- if (isset ($ decodedData ['body ' ]['storage ' ]['value ' ]) ) {
309+ if (isset ($ decodedData ['body ' ]['storage ' ]['value ' ])) {
310310 assert (is_array ($ decodedData ['body ' ]['storage ' ]));
311311 $ content ->setContent ((string )$ decodedData ['body ' ]['storage ' ]['value ' ]);
312312 }
0 commit comments