Test Failed
Branch master (c02f72)
by Adam
07:19
created
src/IPub/DoctrineBlameable/Configuration.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 namespace IPub\DoctrineBlameable;
16 16
 
17 17
 use Nette;
18
-use Nette\Http;
19 18
 
20 19
 /**
21 20
  * Doctrine blameable extension configuration storage. Store basic extension settings
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Events/BlameableListener.php 4 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	/**
92 92
 	 * Register events
93 93
 	 *
94
-	 * @return array
94
+	 * @return string[]
95 95
 	 */
96 96
 	public function getSubscribedEvents()
97 97
 	{
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	/**
318 318
 	 * Create default annotation reader for extensions
319 319
 	 *
320
-	 * @return Common\Annotations\AnnotationReader
320
+	 * @return Common\Annotations\CachedReader
321 321
 	 */
322 322
 	private function getDefaultAnnotationReader()
323 323
 	{
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 	/**
336 336
 	 * Checks if $field type is valid
337 337
 	 *
338
-	 * @param object $meta
338
+	 * @param ORM\Mapping\ClassMetadata $meta
339 339
 	 * @param string $field
340 340
 	 *
341 341
 	 * @return boolean
Please login to merge, or discard this patch.
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -15,16 +15,10 @@
 block discarded – undo
15 15
 namespace IPub\DoctrineBlameable\Events;
16 16
 
17 17
 use Nette;
18
-use Nette\Utils;
19
-use Nette\Security as NS;
20
-
21 18
 use Doctrine;
22 19
 use Doctrine\Common;
23 20
 use Doctrine\ORM;
24
-
25
-use Kdyby;
26 21
 use Kdyby\Events;
27
-
28 22
 use IPub;
29 23
 use IPub\DoctrineBlameable;
30 24
 use IPub\DoctrineBlameable\Exceptions;
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * BlameableListener.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Events
10
- * @since          1.0.0
11
- *
12
- * @date           01.01.16
13
- */
3
+	 * BlameableListener.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Events
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           01.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Events;
16 16
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
 
511 511
 				} else if ($metadata->hasAssociation($field)) {
512 512
 					// association
513
-					if ($metadata->isSingleValuedAssociation($field)  === FALSE && $this->configuration->useLazyAssociation() === FALSE) {
513
+					if ($metadata->isSingleValuedAssociation($field) === FALSE && $this->configuration->useLazyAssociation() === FALSE) {
514 514
 						throw new Exceptions\InvalidMappingException("Association - [{$field}] is not valid, it must be a one-to-many relation or a string field - {$metadata->getName()}");
515 515
 					}
516 516
 				}
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
 		$user = $this->getUser();
631 631
 
632 632
 		if ($classMetadata->hasAssociation($field)) {
633
-			if ($user !== NULL && ! is_object($user)) {
633
+			if ($user !== NULL && !is_object($user)) {
634 634
 				throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object");
635 635
 			}
636 636
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/DI/DoctrineBlameableExtension.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * DoctrineBlameableExtension.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec <[email protected]>
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     DI
10
- * @since          1.0.0
11
- *
12
- * @date           01.01.16
13
- */
3
+	 * DoctrineBlameableExtension.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec <[email protected]>
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     DI
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           01.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\DI;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityAuthor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IEntityAuthor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           10.11.15
13
- */
3
+	 * IEntityAuthor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           10.11.15
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityEditor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IEntityEditor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           11.11.15
13
- */
3
+	 * IEntityEditor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           11.11.15
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/TEntityAuthor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TEntityAuthor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           29.01.14
13
- */
3
+	 * TEntityAuthor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           29.01.14
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/TEntityEditor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TEntityEditor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           29.01.14
13
- */
3
+	 * TEntityEditor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           29.01.14
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Exceptions/IException.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IException.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Exceptions
10
- * @since          1.0.0
11
- *
12
- * @date           01.01.16
13
- */
3
+	 * IException.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Exceptions
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           01.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Exceptions;
16 16
 
Please login to merge, or discard this patch.