Test Failed
Push — master ( 9096f6...1e0e0d )
by Adam
04:49
created
src/IPub/DoctrineBlameable/DI/DoctrineBlameableExtension.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Nette;
20 20
 use Nette\DI;
21 21
 use Nette\Utils;
22
-
23 22
 use IPub\DoctrineBlameable;
24 23
 use IPub\DoctrineBlameable\Events;
25 24
 use IPub\DoctrineBlameable\Mapping;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           01.01.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\DI;
18 18
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
 		$builder->addDefinition($this->prefix('subscriber'))
94 94
 			->setType(Events\BlameableSubscriber::class)
95
-			->setArguments([$userCallable instanceof DI\ServiceDefinition ? '@' . $userCallable->getType() : NULL]);
95
+			->setArguments([$userCallable instanceof DI\ServiceDefinition ? '@'.$userCallable->getType() : NULL]);
96 96
 	}
97 97
 
98 98
 	/**
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Mapping/Driver/Blameable.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -17,10 +17,8 @@
 block discarded – undo
17 17
 namespace IPub\DoctrineBlameable\Mapping\Driver;
18 18
 
19 19
 use Nette;
20
-
21 20
 use Doctrine\Common;
22 21
 use Doctrine\ORM;
23
-
24 22
 use IPub\DoctrineBlameable;
25 23
 use IPub\DoctrineBlameable\Exceptions;
26 24
 use IPub\DoctrineBlameable\Mapping;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           05.01.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Mapping\Driver;
18 18
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 	 */
341 341
 	private static function getCacheId(string $className) : string
342 342
 	{
343
-		return $className . '\\$' . strtoupper(str_replace('\\', '_', __NAMESPACE__)) . '_CLASSMETADATA';
343
+		return $className.'\\$'.strtoupper(str_replace('\\', '_', __NAMESPACE__)).'_CLASSMETADATA';
344 344
 	}
345 345
 
346 346
 }
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           02.01.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable;
18 18
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Events/BlameableSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           01.01.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Events;
18 18
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 		$classMetadata = $em->getClassMetadata(get_class($entity));
234 234
 
235 235
 		if ($config = $this->driver->getObjectConfigurations($em, $classMetadata->getName())) {
236
-			foreach(['update', 'create'] as $event) {
236
+			foreach (['update', 'create'] as $event) {
237 237
 				if (isset($config[$event])) {
238 238
 					$this->updateFields($config[$event], $uow, $entity, $classMetadata);
239 239
 				}
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 		$user = $this->getUser();
381 381
 
382 382
 		if ($classMetadata->hasAssociation($field)) {
383
-			if ($user !== NULL && ! is_object($user)) {
383
+			if ($user !== NULL && !is_object($user)) {
384 384
 				throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object");
385 385
 			}
386 386
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/TEntityRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           29.01.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Entities;
18 18
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityCreator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           10.11.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Entities;
18 18
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           07.01.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Entities;
18 18
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityEditor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           11.11.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Entities;
18 18
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Security/UserCallable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           05.01.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\DoctrineBlameable\Security;
18 18
 
Please login to merge, or discard this patch.