Passed
Push — master ( a47bdd...07a295 )
by Adam
02:26
created
src/IPub/DoctrineBlameable/Events/BlameableSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 		$classMetadata = $em->getClassMetadata(get_class($entity));
235 235
 
236 236
 		if ($config = $this->driver->getObjectConfigurations($em, $classMetadata->getName())) {
237
-			foreach(['update', 'create'] as $event) {
237
+			foreach (['update', 'create'] as $event) {
238 238
 				if (isset($config[$event])) {
239 239
 					$this->updateFields($config[$event], $uow, $entity, $classMetadata);
240 240
 				}
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 		$user = $this->getUser();
378 378
 
379 379
 		if ($classMetadata->hasAssociation($field)) {
380
-			if ($user !== NULL && ! is_object($user)) {
380
+			if ($user !== NULL && !is_object($user)) {
381 381
 				throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object");
382 382
 			}
383 383
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Mapping/Driver/Blameable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@
 block discarded – undo
334 334
 	 */
335 335
 	private static function getCacheId(string $className) : string
336 336
 	{
337
-		return $className . '\\$' . strtoupper(str_replace('\\', '_', __NAMESPACE__)) . '_CLASSMETADATA';
337
+		return $className.'\\$'.strtoupper(str_replace('\\', '_', __NAMESPACE__)).'_CLASSMETADATA';
338 338
 	}
339 339
 
340 340
 }
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/DI/DoctrineBlameableExtension.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
 		$builder->addDefinition($this->prefix('subscriber'))
93 93
 			->setType(Events\BlameableSubscriber::class)
94
-			->setArguments([$userCallable instanceof DI\ServiceDefinition ? '@' . $userCallable->getType() : NULL]);
94
+			->setArguments([$userCallable instanceof DI\ServiceDefinition ? '@'.$userCallable->getType() : NULL]);
95 95
 	}
96 96
 
97 97
 	/**
Please login to merge, or discard this patch.
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.