@@ -12,10 +12,8 @@ |
||
| 12 | 12 | namespace spec\Sylius\Bundle\ThemeBundle\Context; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Bundle\ThemeBundle\Context\SettableThemeContext; |
| 17 | 16 | use Sylius\Bundle\ThemeBundle\Context\ThemeContextInterface; |
| 18 | -use Sylius\Bundle\ThemeBundle\HierarchyProvider\ThemeHierarchyProviderInterface; |
|
| 19 | 17 | use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
| 20 | 18 | |
| 21 | 19 | /** |
@@ -12,9 +12,8 @@ |
||
| 12 | 12 | namespace spec\Sylius\Bundle\ThemeBundle\Loader; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | -use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
|
| 17 | 15 | use Sylius\Bundle\ThemeBundle\Loader\CircularDependencyFoundException; |
| 16 | +use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * @mixin CircularDependencyFoundException |
@@ -11,14 +11,13 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Bundle\ThemeBundle\Settings; |
| 13 | 13 | |
| 14 | -use org\bovigo\vfs\vfsStream as VfsStream; |
|
| 15 | -use org\bovigo\vfs\vfsStreamDirectory as VfsStreamDirectory; |
|
| 16 | 14 | use PhpSpec\ObjectBehavior; |
| 17 | -use Prophecy\Argument; |
|
| 18 | 15 | use Sylius\Bundle\SettingsBundle\Schema\SchemaInterface; |
| 19 | 16 | use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
| 20 | 17 | use Sylius\Bundle\ThemeBundle\Settings\ThemeSettingsSchemaProvider; |
| 21 | 18 | use Sylius\Bundle\ThemeBundle\Settings\ThemeSettingsSchemaProviderInterface; |
| 19 | +use org\bovigo\vfs\vfsStream as VfsStream; |
|
| 20 | +use org\bovigo\vfs\vfsStreamDirectory as VfsStreamDirectory; |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * @mixin ThemeSettingsSchemaProvider |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | } |
| 67 | 67 | ); |
| 68 | -PHP |
|
| 68 | +php |
|
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | 71 | $theme->getPath()->willReturn(dirname($settingsPath)); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | <?php |
| 81 | 81 | |
| 82 | 82 | return new \stdClass(); |
| 83 | -PHP |
|
| 83 | +php |
|
| 84 | 84 | ); |
| 85 | 85 | |
| 86 | 86 | $theme->getPath()->willReturn(dirname($settingsPath)); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * @param string $path |
| 55 | 55 | * |
| 56 | - * @return array |
|
| 56 | + * @return \Symfony\Component\Finder\Finder |
|
| 57 | 57 | */ |
| 58 | 58 | private function getFiles($path) |
| 59 | 59 | { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | * @param string $email |
| 134 | 134 | * @param string $password |
| 135 | 135 | * @param bool $enabled |
| 136 | - * @param array $securityRoles |
|
| 136 | + * @param string[] $securityRoles |
|
| 137 | 137 | * |
| 138 | 138 | * @return UserInterface |
| 139 | 139 | */ |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
| 31 | 31 | ->setHelp(<<<EOT |
| 32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
| 33 | -EOT |
|
| 33 | +eot |
|
| 34 | 34 | ) |
| 35 | 35 | ; |
| 36 | 36 | } |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 15 | 15 | use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
| 16 | +use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
|
| 16 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 18 | use Sylius\Bundle\UserBundle\Controller\CustomerController; |
| 18 | 19 | use Sylius\Bundle\UserBundle\Controller\UserController; |
| 19 | 20 | use Sylius\Bundle\UserBundle\Form\Type\CustomerGuestType; |
| 20 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
|
| 21 | 21 | use Sylius\Bundle\UserBundle\Form\Type\CustomerProfileType; |
| 22 | 22 | use Sylius\Bundle\UserBundle\Form\Type\CustomerRegistrationType; |
| 23 | 23 | use Sylius\Bundle\UserBundle\Form\Type\CustomerSimpleRegistrationType; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Gets the value of currentPassword. |
| 30 | 30 | * |
| 31 | - * @return mixed |
|
| 31 | + * @return string |
|
| 32 | 32 | */ |
| 33 | 33 | public function getCurrentPassword() |
| 34 | 34 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Gets the value of newPassword. |
| 54 | 54 | * |
| 55 | - * @return mixed |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public function getNewPassword() |
| 58 | 58 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | 15 | use Sylius\Bundle\UserBundle\Authentication\AuthenticationFailureHandler; |
| 16 | 16 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 17 | -use Symfony\Component\HttpFoundation\RedirectResponse; |
|
| 18 | 17 | use Symfony\Component\HttpFoundation\Request; |
| 19 | 18 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
| 20 | 19 | use Symfony\Component\Security\Core\Exception\AuthenticationException; |
@@ -15,9 +15,8 @@ |
||
| 15 | 15 | use Doctrine\ORM\EntityManager; |
| 16 | 16 | use Doctrine\ORM\Mapping\ClassMetadata; |
| 17 | 17 | use Doctrine\ORM\Query; |
| 18 | -use Doctrine\ORM\Query\Expr; |
|
| 19 | -use Doctrine\ORM\Query\FilterCollection; |
|
| 20 | 18 | use Doctrine\ORM\QueryBuilder; |
| 19 | +use Doctrine\ORM\Query\Expr; |
|
| 21 | 20 | use Pagerfanta\Pagerfanta; |
| 22 | 21 | use PhpSpec\ObjectBehavior; |
| 23 | 22 | use Prophecy\Argument; |