@@ -19,7 +19,6 @@ |
||
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; |
@@ -12,7 +12,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -17,10 +17,8 @@ |
||
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; |
@@ -12,7 +12,7 @@ discard block |
||
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 |
||
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 | } |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -12,7 +12,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -12,7 +12,7 @@ |
||
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 |