Passed
Push — master ( 607700...dcfc96 )
by Joas
14:30 queued 12s
created
lib/private/AppFramework/Utility/SimpleContainer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 			return $class->newInstance();
82 82
 		}
83 83
 
84
-		return $class->newInstanceArgs(array_map(function (ReflectionParameter $parameter) {
84
+		return $class->newInstanceArgs(array_map(function(ReflectionParameter $parameter) {
85 85
 			$parameterType = $parameter->getType();
86 86
 
87 87
 			$resolveName = $parameter->getName();
@@ -117,18 +117,18 @@  discard block
 block discarded – undo
117 117
 	}
118 118
 
119 119
 	public function resolve($name) {
120
-		$baseMsg = 'Could not resolve ' . $name . '!';
120
+		$baseMsg = 'Could not resolve '.$name.'!';
121 121
 		try {
122 122
 			$class = new ReflectionClass($name);
123 123
 			if ($class->isInstantiable()) {
124 124
 				return $this->buildClass($class);
125 125
 			} else {
126
-				throw new QueryException($baseMsg .
126
+				throw new QueryException($baseMsg.
127 127
 					' Class can not be instantiated');
128 128
 			}
129 129
 		} catch (ReflectionException $e) {
130 130
 			// Class does not exist
131
-			throw new QueryNotFoundException($baseMsg . ' ' . $e->getMessage());
131
+			throw new QueryNotFoundException($baseMsg.' '.$e->getMessage());
132 132
 		}
133 133
 	}
134 134
 
@@ -140,13 +140,13 @@  discard block
 block discarded – undo
140 140
 
141 141
 		if ($autoload) {
142 142
 			$object = $this->resolve($name);
143
-			$this->registerService($name, function () use ($object) {
143
+			$this->registerService($name, function() use ($object) {
144 144
 				return $object;
145 145
 			});
146 146
 			return $object;
147 147
 		}
148 148
 
149
-		throw new QueryNotFoundException('Could not resolve ' . $name . '!');
149
+		throw new QueryNotFoundException('Could not resolve '.$name.'!');
150 150
 	}
151 151
 
152 152
 	/**
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * @param bool $shared
168 168
 	 */
169 169
 	public function registerService($name, Closure $closure, $shared = true) {
170
-		$wrapped = function () use ($closure) {
170
+		$wrapped = function() use ($closure) {
171 171
 			return $closure($this);
172 172
 		};
173 173
 		$name = $this->sanitizeName($name);
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	 * @param string $target the target that should be resolved instead
190 190
 	 */
191 191
 	public function registerAlias($alias, $target) {
192
-		$this->registerService($alias, function (ContainerInterface $container) use ($target) {
192
+		$this->registerService($alias, function(ContainerInterface $container) use ($target) {
193 193
 			return $container->get($target);
194 194
 		}, false);
195 195
 	}
Please login to merge, or discard this patch.