@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * @param array $item |
| 101 | 101 | * |
| 102 | - * @return array |
|
| 102 | + * @return string[] |
|
| 103 | 103 | */ |
| 104 | 104 | protected function buildLinks($item) |
| 105 | 105 | { |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | |
| 475 | 475 | /** |
| 476 | 476 | * @param \Generated\Shared\Transfer\CmsPageTransfer $cmsPageTransfer |
| 477 | - * @param \Generated\Shared\Transfer\CmsPageTransfer $persistedCmsPageTransfer |
|
| 477 | + * @param CmsPageTransfer|null $persistedCmsPageTransfer |
|
| 478 | 478 | * |
| 479 | 479 | * @return void |
| 480 | 480 | */ |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | |
| 496 | 496 | /** |
| 497 | 497 | * @param \Generated\Shared\Transfer\CmsPageTransfer $cmsPageTransfer |
| 498 | - * @param \Generated\Shared\Transfer\CmsPageTransfer $persistedCmsPageTransfer |
|
| 498 | + * @param CmsPageTransfer|null $persistedCmsPageTransfer |
|
| 499 | 499 | * |
| 500 | 500 | * @return void |
| 501 | 501 | */ |
@@ -191,12 +191,12 @@ |
||
| 191 | 191 | */ |
| 192 | 192 | public function testGetPageUrlPrefixShouldBuildUrlPrefixFromGivenLocalName() |
| 193 | 193 | { |
| 194 | - $cmsPageAttributeTransfer = new CmsPageAttributesTransfer(); |
|
| 195 | - $cmsPageAttributeTransfer->setLocaleName('en_US'); |
|
| 194 | + $cmsPageAttributeTransfer = new CmsPageAttributesTransfer(); |
|
| 195 | + $cmsPageAttributeTransfer->setLocaleName('en_US'); |
|
| 196 | 196 | |
| 197 | - $urlPrefix = $this->cmsFacade->getPageUrlPrefix($cmsPageAttributeTransfer); |
|
| 197 | + $urlPrefix = $this->cmsFacade->getPageUrlPrefix($cmsPageAttributeTransfer); |
|
| 198 | 198 | |
| 199 | - $this->assertSame('', $urlPrefix); |
|
| 199 | + $this->assertSame('', $urlPrefix); |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | /** |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * @return array |
|
| 171 | + * @return string[] |
|
| 172 | 172 | */ |
| 173 | 173 | protected function getAvailableLocales() |
| 174 | 174 | { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @param \Silex\Application $application |
| 34 | 34 | * |
| 35 | - * @return \Twig_SimpleFunction[] |
|
| 35 | + * @return Twig_SimpleFunction[] |
|
| 36 | 36 | */ |
| 37 | 37 | public function getFunctions(Application $application) |
| 38 | 38 | { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * @param string $blockName |
| 128 | 128 | * @param array $availableBlockNames |
| 129 | 129 | * |
| 130 | - * @return array |
|
| 130 | + * @return string[] |
|
| 131 | 131 | */ |
| 132 | 132 | protected function filterAvailableBlockNames($blockName, array $availableBlockNames) |
| 133 | 133 | { |
@@ -216,7 +216,7 @@ |
||
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | /** |
| 219 | - * @param array $glossaryKeyEntityMap |
|
| 219 | + * @param SpyCmsBlockGlossaryKeyMapping[] $glossaryKeyEntityMap |
|
| 220 | 220 | * @param string $placeholder |
| 221 | 221 | * @param \Generated\Shared\Transfer\CmsBlockGlossaryPlaceholderTransfer $glossaryPlaceholderTransfer |
| 222 | 222 | * |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Spryker\Zed\CmsContentWidget\Dependency\Plugin\CmsContentWidgetParameterMapperPluginInterface |
|
| 204 | + * @return CmsContentWidgetParameterMapperPluginInterface |
|
| 205 | 205 | */ |
| 206 | 206 | protected function createMockedCmsContentWidgetFunction() |
| 207 | 207 | { |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Spryker\Zed\CmsContentWidget\CmsContentWidgetConfig |
|
| 237 | + * @return \Spryker\Zed\Kernel\AbstractBundleConfig |
|
| 238 | 238 | */ |
| 239 | 239 | protected function createCmsConfigMock() |
| 240 | 240 | { |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | /** |
| 245 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Spryker\Shared\CmsContentWidget\Dependency\CmsContentWidgetConfigurationProviderInterface |
|
| 245 | + * @return CmsContentWidgetConfigurationProviderInterface |
|
| 246 | 246 | */ |
| 247 | 247 | protected function createCmsContentWidgetConfigurationProviderMock() |
| 248 | 248 | { |
@@ -131,11 +131,11 @@ discard block |
||
| 131 | 131 | { |
| 132 | 132 | return [ |
| 133 | 133 | [ |
| 134 | - 'getFunctionName' => 'functionName', |
|
| 135 | - 'getAvailableTemplates' => [ |
|
| 136 | - 'identifier' => '@module/path/to/template.twig', |
|
| 137 | - ], |
|
| 138 | - 'getUsageInformation' => 'how to..', |
|
| 134 | + 'getFunctionName' => 'functionName', |
|
| 135 | + 'getAvailableTemplates' => [ |
|
| 136 | + 'identifier' => '@module/path/to/template.twig', |
|
| 137 | + ], |
|
| 138 | + 'getUsageInformation' => 'how to..', |
|
| 139 | 139 | ], |
| 140 | 140 | [ |
| 141 | 141 | 'getFunctionName' => 'functionName1', |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | $container = $this->createZedContainer(); |
| 186 | 186 | $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function (Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
| 187 | 187 | return [ |
| 188 | - 'function' => $cmsContentWidgetParameterMapperPluginMock, |
|
| 188 | + 'function' => $cmsContentWidgetParameterMapperPluginMock, |
|
| 189 | 189 | ]; |
| 190 | 190 | }; |
| 191 | 191 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $parameterMap = $cmsFacade->mapContentWidgetParameters("cms content {{ function(['sku1', 'sku2']) }} twig functions."); |
| 72 | 72 | |
| 73 | 73 | $this->assertArrayHasKey('function', $parameterMap); |
| 74 | - $this->assertCount(2, $parameterMap['function']); |
|
| 74 | + $this->assertCount(2, $parameterMap['function']); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -183,13 +183,13 @@ discard block |
||
| 183 | 183 | $cmsBusinessFactory = $this->createBusinessFactory(); |
| 184 | 184 | |
| 185 | 185 | $container = $this->createZedContainer(); |
| 186 | - $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function (Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
|
| 186 | + $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function(Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
|
| 187 | 187 | return [ |
| 188 | 188 | 'function' => $cmsContentWidgetParameterMapperPluginMock, |
| 189 | 189 | ]; |
| 190 | 190 | }; |
| 191 | 191 | |
| 192 | - $container[CmsContentWidgetDependencyProvider::FACADE_GLOSSARY] = function (Container $container) { |
|
| 192 | + $container[CmsContentWidgetDependencyProvider::FACADE_GLOSSARY] = function(Container $container) { |
|
| 193 | 193 | return $this->createGlossaryFacadeMock(); |
| 194 | 194 | }; |
| 195 | 195 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return callable |
|
| 37 | + * @return \Closure |
|
| 38 | 38 | */ |
| 39 | 39 | public function getContentWidgetFunction() |
| 40 | 40 | { |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | */ |
| 156 | 156 | protected function mapProductStorageTransfer(array $productData) |
| 157 | 157 | { |
| 158 | - //implement, this method is overwritten and provided in demoshop |
|
| 158 | + //implement, this method is overwritten and provided in demoshop |
|
| 159 | 159 | return (new StorageProductTransfer())->fromArray($productData, true); |
| 160 | 160 | } |
| 161 | 161 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function getContentWidgetFunction() |
| 40 | 40 | { |
| 41 | - return function (Twig_Environment $twig, array $context, $productAbstractSkuList, $templateIdentifier = null) { |
|
| 41 | + return function(Twig_Environment $twig, array $context, $productAbstractSkuList, $templateIdentifier = null) { |
|
| 42 | 42 | return $twig->render( |
| 43 | 43 | $this->resolveTemplatePath($templateIdentifier), |
| 44 | 44 | $this->getContent($context, $productAbstractSkuList) |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @param \Generated\Shared\Transfer\CmsPageTransfer $cmsPageTransfer |
|
| 99 | + * @param CmsPageTransfer|null $cmsPageTransfer |
|
| 100 | 100 | * |
| 101 | 101 | * @return \Generated\Shared\Transfer\ButtonTransfer[] |
| 102 | 102 | */ |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @param array $configPaths |
|
| 72 | + * @param string[] $configPaths |
|
| 73 | 73 | * |
| 74 | 74 | * @return array |
| 75 | 75 | */ |