Completed
Pull Request — master (#352)
by php-br
48:18
created
src/Oro/Bundle/SecurityBundle/ORM/Walker/OwnershipConditionDataBuilder.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     /**
258 258
      * @param OwnershipMetadataInterface $metadata
259 259
      *
260
-     * @return array|int|null
260
+     * @return integer|null
261 261
      */
262 262
     protected function getOrganizationId(OwnershipMetadataInterface $metadata = null)
263 263
     {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      * Adds all user ids within all business units the given user is associated
309 309
      *
310 310
      * @param int|string $userId
311
-     * @param int|string $organizationId
311
+     * @param integer|null $organizationId
312 312
      * @param array      $result [output]
313 313
      */
314 314
     protected function fillBusinessUnitUserIds($userId, $organizationId, array &$result)
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      * Adds all user ids within all subordinate business units the given user is associated
329 329
      *
330 330
      * @param int|string $userId
331
-     * @param int|string $organizationId
331
+     * @param integer|null $organizationId
332 332
      * @param array      $result [output]
333 333
      */
334 334
     protected function fillSubordinateBusinessUnitUserIds($userId, $organizationId, array &$result)
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
      *
482 482
      * @param string $entityName
483 483
      * @param string $entityAlias
484
-     * @param mixed $permissions
484
+     * @param string $permissions
485 485
      *
486 486
      * @return array
487 487
      */
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.
Oro/Bundle/SecurityBundle/Owner/AbstractEntityOwnershipDecisionMaker.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @return ContainerInterface
126
+     * @return ContainerAwareInterface
127 127
      */
128 128
     protected function getContainer()
129 129
     {
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/SecurityBundle/Owner/OwnerTree.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     /**
136 136
      * Gets the owning organization id for the given user id
137 137
      *
138
-     * @param  int|string $userId
138
+     * @param  string $userId
139 139
      * @return int|string|null
140 140
      */
141 141
     public function getUserOrganizationId($userId)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * Gets the owning business unit id for the given user id
163 163
      *
164
-     * @param  int|string $userId
164
+     * @param  string $userId
165 165
      * @return int|string|null
166 166
      */
167 167
     public function getUserBusinessUnitId($userId)
@@ -310,8 +310,8 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * Add the given business unit to the tree
312 312
      *
313
-     * @param int|string      $businessUnitId
314
-     * @param int|string|null $owningOrganizationId
313
+     * @param string      $businessUnitId
314
+     * @param null|string $owningOrganizationId
315 315
      *
316 316
      * @deprecated 1.8.0:2.1.0 use OwnerTree::addLocalEntity method
317 317
      */
Please login to merge, or discard this patch.
src/Oro/Bundle/SecurityBundle/Search/AclHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
     /**
112 112
      * @param Query $query
113
-     * @param $expr
113
+     * @param \Oro\Bundle\SearchBundle\Query\Criteria\ExpressionBuilder $expr
114 114
      */
115 115
     protected function addOrganizationLimits(Query $query, $expr)
116 116
     {
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/SecurityBundle/SecurityFacade.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     /**
301 301
      * Determines if object is shared with logged user.
302 302
      *
303
-     * @param $object
303
+     * @param \stdClass $object
304 304
      *
305 305
      * @return bool
306 306
      */
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      * Determines if object is shared with given user exactly. If no UserInterface entity is passed
314 314
      * then user will be taken from current context.
315 315
      *
316
-     * @param $object
316
+     * @param \stdClass $object
317 317
      * @param UserInterface|null $user
318 318
      *
319 319
      * @return bool
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -4,17 +4,13 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\HttpFoundation\JsonResponse;
6 6
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
-
8 7
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
9 8
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
10
-
11 9
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
12 10
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
13 11
 use Oro\Bundle\SecurityBundle\Authentication\Token\UsernamePasswordOrganizationToken;
14
-
15 12
 use Oro\Bundle\UserBundle\Entity\User;
16 13
 use Oro\Bundle\UserBundle\Entity\UserApi;
17
-
18 14
 use Oro\Bundle\OrganizationBundle\Entity\Manager\BusinessUnitManager;
19 15
 use Oro\Bundle\OrganizationBundle\Entity\Organization;
20 16
 
Please login to merge, or discard this patch.
SecurityBundle/Tests/Unit/Acl/Domain/PermissionGrantingStrategyTest.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -346,6 +346,9 @@  discard block
 block discarded – undo
346 346
         );
347 347
     }
348 348
 
349
+    /**
350
+     * @param ObjectIdentity $oid
351
+     */
349 352
     protected function getAcl($oid = null, $entriesInheriting = true)
350 353
     {
351 354
         static $id = 1;
@@ -385,7 +388,7 @@  discard block
 block discarded – undo
385 388
 
386 389
     /**
387 390
      * @param  string     $permission
388
-     * @param  object     $object
391
+     * @param  TestEntity     $object
389 392
      * @return array|null may return null if permission/object combination is not supported
390 393
      */
391 394
     private function getMasks($permission, $object)
@@ -395,7 +398,7 @@  discard block
 block discarded – undo
395 398
 
396 399
     /**
397 400
      * @param  string      $permission
398
-     * @param  mixed       $object
401
+     * @param  TestEntity       $object
399 402
      * @return MaskBuilder
400 403
      */
401 404
     private function getMaskBuilder($permission, $object)
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.
Bundle/SecurityBundle/Tests/Unit/Acl/Group/ChainAclGroupProviderTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * @param bool $isSupports
67 67
      * @param string $group
68
-     * @return \PHPUnit_Framework_MockObject_MockObject|AclGroupProviderInterface
68
+     * @return AclGroupProviderInterface
69 69
      */
70 70
     protected function getAclGroupProviderMock($isSupports = true, $group = '')
71 71
     {
Please login to merge, or discard this patch.
SecurityBundle/Tests/Unit/Acl/Persistence/AceManipulationHelperTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -436,6 +436,11 @@
 block discarded – undo
436 436
         );
437 437
     }
438 438
 
439
+    /**
440
+     * @param boolean $granting
441
+     * @param integer $mask
442
+     * @param string $strategy
443
+     */
439 444
     private function getAce(
440 445
         $sid,
441 446
         $granting = null,
Please login to merge, or discard this patch.
SecurityBundle/Tests/Unit/Acl/Persistence/AclPrivilegeRepositoryTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -352,6 +352,10 @@  discard block
 block discarded – undo
352 352
         $this->assertFalse($p->containsKey('EDIT'));
353 353
     }
354 354
 
355
+    /**
356
+     * @param string $extensionKey
357
+     * @param ObjectIdentity $rootOid
358
+     */
355 359
     private function initSavePrivileges($extensionKey, $rootOid)
356 360
     {
357 361
         $this->extension->expects($this->any())
@@ -364,6 +368,11 @@  discard block
 block discarded – undo
364 368
             ->method('adaptRootMask')
365 369
             ->will(
366 370
                 $this->returnCallback(
371
+
372
+                    /**
373
+                     * @param string $mask
374
+                     * @param ObjectIdentity $object
375
+                     */
367 376
                     function ($mask, $object) {
368 377
                         return $mask;
369 378
                     }
Please login to merge, or discard this patch.