Completed
Pull Request — master (#3)
by Adam
05:05 queued 03:10
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\Schema;
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   +5 added lines, -5 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
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
 		$builder->addDefinition($this->prefix('subscriber'))
91 91
 			->setType(Events\BlameableSubscriber::class)
92
-			->setArguments([$userCallable instanceof DI\Definitions\ServiceDefinition ? '@' . $userCallable->getType() : NULL]);
92
+			->setArguments([$userCallable instanceof DI\Definitions\ServiceDefinition ? '@'.$userCallable->getType() : NULL]);
93 93
 	}
94 94
 
95 95
 	/**
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
 			is_array($entity)
143 143
 			&& $entity[0] instanceof DI\Definitions\ServiceDefinition
144 144
 		) { // [ServiceDefinition, ...] -> [@serviceName, ...]
145
-			$entity[0] = '@' . current(array_keys($builder->getDefinitions(), $entity[0], TRUE));
145
+			$entity[0] = '@'.current(array_keys($builder->getDefinitions(), $entity[0], TRUE));
146 146
 
147 147
 		} elseif (
148 148
 			$entity instanceof DI\Definitions\ServiceDefinition
149 149
 		) { // ServiceDefinition -> @serviceName
150
-			$entity = '@' . current(array_keys($builder->getDefinitions(), $entity, TRUE));
150
+			$entity = '@'.current(array_keys($builder->getDefinitions(), $entity, TRUE));
151 151
 
152 152
 		} elseif (
153 153
 			is_array($entity)
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		) { // [$builder, ...] -> [@container, ...]
156 156
 			trigger_error("Replace object ContainerBuilder in Statement entity with '@container'.", E_USER_DEPRECATED);
157 157
 
158
-			$entity[0] = '@' . md5($entity);
158
+			$entity[0] = '@'.md5($entity);
159 159
 		}
160 160
 
161 161
 		return $entity;
Please login to merge, or discard this patch.