Completed
Push — master ( 70ebc9...d73a1b )
by Peter
12:02 queued 11:32
created
src/PluginFactory.php 2 patches
Braces   +3 added lines, -6 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
 		}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 					(string) $interfaces
125 125
 				];
126 126
 			}
127
-			$key .= '.' . implode('.', $interfaces);
127
+			$key .= '.'.implode('.', $interfaces);
128 128
 		}
129 129
 		$key .= $this->getKey($config);
130 130
 		if (!isset($this->instances[$key]))
Please login to merge, or discard this patch.
src/PluginsContainer.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
 			if(is_array($cfg))
140 140
 			{
141 141
 				$className = $cfg[$this->_di->classField];
142
-			}
143
-			else
142
+			} else
144 143
 			{
145 144
 				$className = $cfg;
146 145
 			}
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function apply($config): void
56 56
 	{
57
-		foreach ((array)$config as $name => $value)
57
+		foreach ((array) $config as $name => $value)
58 58
 		{
59 59
 			$this->offsetSet($name, $value);
60 60
 		}
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
 		{
137 137
 			throw new GazeboException("Class `$name` used as key does not exists. Tried to set value.");
138 138
 		}
139
-		foreach($value as $cfg)
139
+		foreach ($value as $cfg)
140 140
 		{
141
-			if(is_array($cfg))
141
+			if (is_array($cfg))
142 142
 			{
143 143
 				$className = $cfg[$this->_di->classField];
144 144
 			}
Please login to merge, or discard this patch.
src/Gazebo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	{
38 38
 		if (null === self::$_version)
39 39
 		{
40
-			self::$_version = require __DIR__ . '/version.php';
40
+			self::$_version = require __DIR__.'/version.php';
41 41
 		}
42 42
 		return self::$_version;
43 43
 	}
Please login to merge, or discard this patch.