Completed
Pull Request — 1.8 (#365)
by Sufijen
506:56 queued 431:47
created
src/Oro/Bundle/DistributionBundle/OroKernel.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     /**
82 82
      * Finds all .../Resource/config/oro/bundles.yml in given root folders
83 83
      *
84
-     * @param array $roots
84
+     * @param string[] $roots
85 85
      *
86 86
      * @return array
87 87
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/DistributionBundle/Script/Runner.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@
 block discarded – undo
319 319
      * @param string $commandPrefix
320 320
      * @param int $commandSize - windows shell-command is limited by 8kb
321 321
      *
322
-     * @return array of commands to be executed
322
+     * @return string[] of commands to be executed
323 323
      */
324 324
     protected function makeCommands(array $paths, $commandPrefix, $commandSize = 8000)
325 325
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Oro/Bundle/DistributionBundle/Test/PhpUnit/Helper/MockHelperTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 {
6 6
     /**
7 7
      * @param string $className
8
-     * @return \PHPUnit_Framework_MockObject_MockObject
8
+     * @return \Symfony\Component\Form\FormBuilderInterface
9 9
      */
10 10
     protected function createConstructorLessMock($className)
11 11
     {
Please login to merge, or discard this patch.
Oro/Bundle/DistributionBundle/Test/PhpUnit/Helper/ReflectionHelperTrait.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 trait ReflectionHelperTrait
6 6
 {
7 7
     /**
8
-     * @param mixed $class
9
-     * @param mixed $subclass
8
+     * @param string $class
9
+     * @param string $subclass
10 10
      */
11 11
     public function assertSubclassOf($class, $subclass)
12 12
     {
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
     }
16 16
 
17 17
     /**
18
-     * @param mixed $interface
19
-     * @param mixed $class
18
+     * @param string $interface
19
+     * @param string $class
20 20
      */
21 21
     public function assertImplementsInterface($interface, $class)
22 22
     {
Please login to merge, or discard this patch.
src/Oro/Bundle/DistributionBundle/Tests/Functional/Script/RunnerTest.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * @param \Composer\Package\PackageInterface $package
284 284
      * @param string $targetDir
285 285
      *
286
-     * @return \PHPUnit_Framework_MockObject_MockObject|InstallationManager
286
+     * @return InstallationManager
287 287
      */
288 288
     protected function createInstallationManagerMock(PackageInterface $package = null, $targetDir = null)
289 289
     {
@@ -299,9 +299,9 @@  discard block
 block discarded – undo
299 299
     }
300 300
 
301 301
     /**
302
-     * @param $annotationLabel
303
-     * @param $pathToFile
304
-     * @param $scriptOutput
302
+     * @param string $annotationLabel
303
+     * @param string $pathToFile
304
+     * @param string $scriptOutput
305 305
      *
306 306
      * @return string
307 307
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
DistributionBundle/Tests/Unit/Manager/Helper/ChangeSetBuilderTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Composer\Package\PackageInterface;
5 5
 use Oro\Bundle\DistributionBundle\Manager\Helper\ChangeSetBuilder;
6
-use Oro\Bundle\DistributionBundle\Test\PhpUnit\Helper\MockHelperTrait;
7 6
 
8 7
 class ChangeSetBuilderTest extends \PHPUnit_Framework_TestCase
9 8
 {
Please login to merge, or discard this patch.
src/Oro/Bundle/DistributionBundle/Tests/Unit/Manager/PackageManagerTest.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1317,7 +1317,7 @@  discard block
 block discarded – undo
1317 1317
     }
1318 1318
 
1319 1319
     /**
1320
-     * @return \PHPUnit_Framework_MockObject_MockObject|BufferIO
1320
+     * @return BufferIO
1321 1321
      */
1322 1322
     protected function createComposerIO()
1323 1323
     {
@@ -1347,7 +1347,7 @@  discard block
 block discarded – undo
1347 1347
      * @param Runner $scriptRunner
1348 1348
      * @param MaintenanceMode $maintenance
1349 1349
      * @param LoggerInterface $logger
1350
-     * @param null $pathToComposerJson
1350
+     * @param string $pathToComposerJson
1351 1351
      *
1352 1352
      * @return PackageManager
1353 1353
      */
@@ -1437,7 +1437,7 @@  discard block
 block discarded – undo
1437 1437
     }
1438 1438
 
1439 1439
     /**
1440
-     * @param $name
1440
+     * @param string $name
1441 1441
      * @return PackageInterface|\PHPUnit_Framework_MockObject_MockObject
1442 1442
      */
1443 1443
     protected function createPackageMock($name)
@@ -1472,7 +1472,7 @@  discard block
 block discarded – undo
1472 1472
     }
1473 1473
 
1474 1474
     /**
1475
-     * @param $bufferOutput
1475
+     * @param string $bufferOutput
1476 1476
      * @return BufferIO|\PHPUnit_Framework_MockObject_MockObject
1477 1477
      */
1478 1478
     protected function createBufferIoMock($bufferOutput)
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Acl/Voter/EmailVoter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 
104 104
     /**
105 105
      * @param $object
106
-     * @param $objectClass
106
+     * @param string $objectClass
107 107
      *
108 108
      * @return mixed
109 109
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Builder/Helper/EmailModelBuilderHelper.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
     /**
217 217
      * @param EmailEntity $emailEntity
218
-     * @param             $templatePath
218
+     * @param             string|null $templatePath
219 219
      *
220 220
      * @return null|string
221 221
      */
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
     }
233 233
 
234 234
     /**
235
-     * @param $prefix
236
-     * @param $subject
235
+     * @param string $prefix
236
+     * @param string $subject
237 237
      *
238 238
      * @return string
239 239
      */
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     /**
249 249
      * @param string $entityClass
250 250
      * @param string $entityId
251
-     * @return object
251
+     * @return \Oro\Bundle\EmailBundle\Model\EmailTemplateInterface
252 252
      */
253 253
     public function getTargetEntity($entityClass, $entityId)
254 254
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.