Completed
Pull Request — master (#257)
by Tomáš
02:48
created
src/Kdyby/Doctrine/DI/OrmExtension.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -447,6 +447,9 @@
 block discarded – undo
447 447
 
448 448
 
449 449
 
450
+	/**
451
+	 * @param boolean $isDefault
452
+	 */
450 453
 	protected function processSecondLevelCache($name, array $config, $isDefault)
451 454
 	{
452 455
 		if (!$config['enabled']) {
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/Diagnostics/Panel.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@  discard block
 block discarded – undo
89 89
 
90 90
 
91 91
 
92
+	/**
93
+	 * @param \Exception $exception
94
+	 */
92 95
 	public function markExceptionOwner(Doctrine\ORM\EntityManager $em, $exception)
93 96
 	{
94 97
 		if ($this->em !== $em) {
@@ -387,7 +390,6 @@  discard block
 block discarded – undo
387 390
 
388 391
 	/**
389 392
 	 * @param \Exception|\Throwable $e
390
-	 * @param \Nette\DI\Container $dic
391 393
 	 * @return array
392 394
 	 */
393 395
 	public function renderEntityManagerException($e)
@@ -544,7 +546,7 @@  discard block
 block discarded – undo
544 546
 	 * @param array $types
545 547
 	 * @param string $source
546 548
 	 *
547
-	 * @return array
549
+	 * @return string
548 550
 	 */
549 551
 	protected function dumpQuery($query, $params, array $types = array(), $source = NULL)
550 552
 	{
@@ -750,7 +752,7 @@  discard block
 block discarded – undo
750 752
 
751 753
 	/**
752 754
 	 * @param \Reflector|\Nette\Reflection\ClassType|\Nette\Reflection\Method $refl
753
-	 * @param \Exception|\Throwable $e
755
+	 * @param AnnotationException $e
754 756
 	 * @param int $startLine
755 757
 	 *
756 758
 	 * @return int|string
@@ -806,6 +808,7 @@  discard block
 block discarded – undo
806 808
 	/**
807 809
 	 * @param \Reflector|Nette\Reflection\ClassType|Nette\Reflection\Method $refl
808 810
 	 * @param $annotation
811
+	 * @return string
809 812
 	 */
810 813
 	private static function findRenamed(\Reflector $refl, $annotation)
811 814
 	{
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/Entities/IdentifiedEntity.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,7 @@
 block discarded – undo
10 10
 
11 11
 namespace Kdyby\Doctrine\Entities;
12 12
 
13
-use Doctrine\ORM\Proxy\Proxy;
14 13
 use Doctrine\ORM\Mapping as ORM;
15
-use Nette;
16 14
 use Kdyby;
17 15
 
18 16
 
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/Entities/MagicAccessors.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * @param string $property property name
52 52
 	 * @param array $args
53
-	 * @return Collection|array
53
+	 * @return ReadOnlyCollectionWrapper
54 54
 	 */
55 55
 	protected function convertCollection($property, array $args = NULL)
56 56
 	{
@@ -246,7 +246,8 @@  discard block
 block discarded – undo
246 246
 	 *
247 247
 	 * @param  string  method name
248 248
 	 * @param  callable
249
-	 * @return mixed
249
+	 * @param string $name
250
+	 * @return callable
250 251
 	 */
251 252
 	public static function extensionMethod($name, $callback = NULL)
252 253
 	{
@@ -410,7 +411,7 @@  discard block
 block discarded – undo
410 411
 	/**
411 412
 	 * Should return only public or protected properties of class
412 413
 	 *
413
-	 * @return array
414
+	 * @return string
414 415
 	 */
415 416
 	private function listObjectProperties()
416 417
 	{
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 use Doctrine;
12 12
 use Doctrine\Common\Collections\Collection;
13
-use Doctrine\ORM\Mapping as ORM;
14 13
 use Kdyby;
15 14
 use Kdyby\Doctrine\Collections\ReadOnlyCollectionWrapper;
16 15
 use Kdyby\Doctrine\MemberAccessException;
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/EntityManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
 	/**
108 108
 	 * {@inheritdoc}
109
-	 * @param string|array $entity
109
+	 * @param string|array $entityName
110 110
 	 * @return EntityManager
111 111
 	 */
112 112
 	public function clear($entityName = null)
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/exceptions.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	/**
280 280
 	 * This is just a paranoia, hopes no one actually serializes exceptions.
281 281
 	 *
282
-	 * @return array
282
+	 * @return string[]
283 283
 	 */
284 284
 	public function __sleep()
285 285
 	{
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
 
322 322
 	/**
323
-	 * @return array
323
+	 * @return string[]
324 324
 	 */
325 325
 	public function __sleep()
326 326
 	{
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
 
363 363
 	/**
364
-	 * @return array
364
+	 * @return string[]
365 365
 	 */
366 366
 	public function __sleep()
367 367
 	{
@@ -417,6 +417,7 @@  discard block
 block discarded – undo
417 417
 {
418 418
 	/**
419 419
 	 * @throws ReadOnlyCollectionException
420
+	 * @param string $what
420 421
 	 */
421 422
 	public static function invalidAccess($what)
422 423
 	{
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/Mapping/ResultSetMappingBuilder.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
 
46 46
 
47 47
 
48
+	/**
49
+	 * @param integer $defaultRenameMode
50
+	 */
48 51
 	public function __construct(EntityManager $em, $defaultRenameMode = Doctrine\ORM\Query\ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT)
49 52
 	{
50 53
 		parent::__construct($em, $defaultRenameMode);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use Doctrine\DBAL\Statement;
14 14
 use Kdyby;
15
-use Nette;
16 15
 
17 16
 
18 17
 
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/PDOStatement.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use Doctrine\DBAL\Statement;
14 14
 use Kdyby;
15
-use Nette;
16 15
 
17 16
 
18 17
 
Please login to merge, or discard this patch.
src/Kdyby/Doctrine/Tools/CacheCleaner.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 namespace Kdyby\Doctrine\Tools;
12 12
 
13 13
 use Doctrine;
14
-use Doctrine\Common\Cache\CacheProvider;
15 14
 use Doctrine\Common\Cache\ClearableCache;
16 15
 use Kdyby;
17 16
 use Nette;
Please login to merge, or discard this patch.