Completed
Push — master ( 813212...3951a6 )
by Peter
02:10
created
src/PluginFactory.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@  discard block
 block discarded – undo
111 111
 		if (is_string($object))
112 112
 		{
113 113
 			$key = $object;
114
-		}
115
-		else
114
+		} else
116 115
 		{
117 116
 			$key = get_class($object);
118 117
 		}
@@ -242,13 +241,11 @@  discard block
 block discarded – undo
242 241
 			if (isset($this->plugins[$key]))
243 242
 			{
244 243
 				$plugin = $this->plugins[$key];
245
-			}
246
-			else
244
+			} else
247 245
 			{
248 246
 				$plugin = $this->plugins[$key] = new $className;
249 247
 			}
250
-		}
251
-		else
248
+		} else
252 249
 		{
253 250
 			$plugin = new $className;
254 251
 		}
@@ -271,8 +268,7 @@  discard block
 block discarded – undo
271 268
 
272 269
 			// Complex config
273 270
 			return md5(json_encode($config));
274
-		}
275
-		else
271
+		} else
276 272
 		{
277 273
 			return $config;
278 274
 		}
Please login to merge, or discard this patch.