Completed
Push — master ( 110758...75ad9d )
by Adam
21:29
created
src/IPub/DoctrineBlameable/Events/BlameableListener.php 2 patches
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.
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.