@@ -137,7 +137,7 @@ |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | - * @param null $query |
|
| 140 | + * @param string $query |
|
| 141 | 141 | * |
| 142 | 142 | * @return mixed |
| 143 | 143 | */ |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | 99 | * @param string $itemName The property name |
| 100 | - * @param mixed $itemValue A constant the property value is compared |
|
| 100 | + * @param string $itemValue A constant the property value is compared |
|
| 101 | 101 | * @param int $match The match type. One of SearchQueryMatch::* values |
| 102 | 102 | * @return string |
| 103 | 103 | * @throws \InvalidArgumentException |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | /** |
| 157 | 157 | * Returns a string represents the given date in format required for search query criterion. |
| 158 | 158 | * |
| 159 | - * @param mixed $value |
|
| 159 | + * @param \DateTime $value |
|
| 160 | 160 | * @return string |
| 161 | 161 | */ |
| 162 | 162 | abstract protected function formatDate($value); |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | /** |
| 130 | 130 | * @param int|null $id |
| 131 | 131 | * |
| 132 | - * @return Organization|null |
|
| 132 | + * @return null|\Oro\Bundle\OrganizationBundle\Entity\OrganizationInterface |
|
| 133 | 133 | */ |
| 134 | 134 | protected function getOrganization($id) |
| 135 | 135 | { |
@@ -4,16 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
| 6 | 6 | use Symfony\Component\Form\Test\FormIntegrationTestCase; |
| 7 | - |
|
| 8 | 7 | use Oro\Bundle\WorkflowBundle\Form\EventListener\DefaultValuesListener; |
| 9 | 8 | use Oro\Bundle\WorkflowBundle\Form\EventListener\InitActionsListener; |
| 10 | 9 | use Oro\Bundle\WorkflowBundle\Form\EventListener\RequiredAttributesListener; |
| 11 | 10 | use Oro\Bundle\WorkflowBundle\Form\Type\WorkflowAttributesType; |
| 12 | - |
|
| 13 | 11 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowItem; |
| 14 | 12 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowStep; |
| 15 | 13 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition; |
| 16 | - |
|
| 17 | 14 | use Oro\Bundle\WorkflowBundle\Model\Step; |
| 18 | 15 | use Oro\Bundle\WorkflowBundle\Model\Attribute; |
| 19 | 16 | use Oro\Bundle\WorkflowBundle\Model\WorkflowData; |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | /** |
| 136 | 136 | * Gets the port of SMTP server |
| 137 | 137 | * |
| 138 | - * @return int |
|
| 138 | + * @return string |
|
| 139 | 139 | */ |
| 140 | 140 | public function getSmtpPort() |
| 141 | 141 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | /** |
| 160 | 160 | * Gets the port of IMAP server |
| 161 | 161 | * |
| 162 | - * @return int |
|
| 162 | + * @return string |
|
| 163 | 163 | */ |
| 164 | 164 | public function getImapPort() |
| 165 | 165 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
| 6 | - |
|
| 7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
| 8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
| 9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * @param ArrayCollection|EmailFolder[] $folders |
|
| 63 | + * @param ArrayCollection $folders |
|
| 64 | 64 | * @param ImapEmailFolderManager $manager |
| 65 | 65 | */ |
| 66 | 66 | protected function createImapEmailFolders($folders, ImapEmailFolderManager $manager) |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
| 6 | - |
|
| 7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
| 8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
| 9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @return EmailFolder[] |
|
| 53 | + * @return ArrayCollection |
|
| 54 | 54 | */ |
| 55 | 55 | public function getFolders() |
| 56 | 56 | { |
@@ -118,9 +118,9 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @param Folder[]|ArrayCollection $srcFolders |
|
| 121 | + * @param Folder[] $srcFolders |
|
| 122 | 122 | * |
| 123 | - * @return EmailFolderModel[] |
|
| 123 | + * @return ArrayCollection |
|
| 124 | 124 | */ |
| 125 | 125 | protected function processFolders(array $srcFolders) |
| 126 | 126 | { |
@@ -155,8 +155,8 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * @param EmailFolderModel[]|ArrayCollection $syncedFolderModels |
|
| 159 | - * @param ImapEmailFolder[]|ArrayCollection $existingImapFolders |
|
| 158 | + * @param ArrayCollection $syncedFolderModels |
|
| 159 | + * @param ArrayCollection $existingImapFolders |
|
| 160 | 160 | * |
| 161 | 161 | * @return EmailFolderModel[] |
| 162 | 162 | */ |
@@ -202,6 +202,7 @@ discard block |
||
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | 204 | * @param Folder $srcFolder |
| 205 | + * @param integer $uidValidity |
|
| 205 | 206 | * |
| 206 | 207 | * @return EmailFolderModel |
| 207 | 208 | */ |
@@ -243,7 +244,7 @@ discard block |
||
| 243 | 244 | /** |
| 244 | 245 | * @param EmailFolderModel[]|ArrayCollection $emailFolderModels |
| 245 | 246 | * |
| 246 | - * @return EmailFolder[]|ArrayCollection |
|
| 247 | + * @return ArrayCollection |
|
| 247 | 248 | */ |
| 248 | 249 | protected function extractEmailFolders($emailFolderModels) |
| 249 | 250 | { |
@@ -263,7 +264,7 @@ discard block |
||
| 263 | 264 | } |
| 264 | 265 | |
| 265 | 266 | /** |
| 266 | - * @return ImapEmailFolder[]|ArrayCollection |
|
| 267 | + * @return ArrayCollection |
|
| 267 | 268 | */ |
| 268 | 269 | protected function getExistingFolders() |
| 269 | 270 | { |
@@ -4,9 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
| 6 | 6 | use Doctrine\ORM\EntityManager; |
| 7 | - |
|
| 8 | -use Zend\Mail\Storage\Exception as MailException; |
|
| 9 | - |
|
| 10 | 7 | use Oro\Bundle\EmailBundle\Entity\EmailFolder; |
| 11 | 8 | use Oro\Bundle\EmailBundle\Entity\EmailOrigin; |
| 12 | 9 | use Oro\Bundle\ImapBundle\Connector\ImapConnector; |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | |
| 296 | 296 | /** |
| 297 | 297 | * @param Headers $headers |
| 298 | - * @param $name |
|
| 298 | + * @param string $name |
|
| 299 | 299 | * @return array|null |
| 300 | 300 | */ |
| 301 | 301 | protected function getMultiMessageId(Headers $headers, $name) |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\EventManager; |
| 6 | 6 | use Doctrine\DBAL\Driver\Connection; |
| 7 | - |
|
| 8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
| 9 | - |
|
| 10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
| 11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
| 12 | 10 | |
@@ -456,7 +456,7 @@ |
||
| 456 | 456 | * Check allowing to save email by uid |
| 457 | 457 | * |
| 458 | 458 | * @param Email $email |
| 459 | - * @param array $existingUids |
|
| 459 | + * @param integer[] $existingUids |
|
| 460 | 460 | * |
| 461 | 461 | * @return bool |
| 462 | 462 | */ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
| 6 | - |
|
| 7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
| 8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
| 9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * @param string $serviceId |
| 75 | 75 | * @param string $tagName |
| 76 | 76 | * @param array $tagAttributes |
| 77 | - * @param array $requiredAttributes |
|
| 77 | + * @param string[] $requiredAttributes |
|
| 78 | 78 | * @throws LogicException |
| 79 | 79 | */ |
| 80 | 80 | private function assertTagHasAttributes($serviceId, $tagName, array $tagAttributes, array $requiredAttributes) |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 6 | 6 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
| 7 | -use Symfony\Component\DependencyInjection\Definition; |
|
| 8 | 7 | use Symfony\Component\DependencyInjection\Reference; |
| 9 | 8 | use Symfony\Component\DependencyInjection\Exception\LogicException; |
| 10 | 9 | |