Completed
Pull Request — master (#149)
by Maciej
02:58
created
src/Artisan/Director.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Artisan;
3
-defined( 'ABSPATH' ) || die();
3
+defined('ABSPATH') || die();
4 4
 
5 5
 use WFV\Contract\ArtisanInterface;
6 6
 
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 	 * @param ArtisanInterface $builder
30 30
 	 * @return object
31 31
 	 */
32
-	public function compose( ArtisanInterface $builder ) {
33
-		$this->amalgamate( $this->component, $builder );
32
+	public function compose(ArtisanInterface $builder) {
33
+		$this->amalgamate($this->component, $builder);
34 34
 		return $builder
35 35
 			->create()
36 36
 			->actualize();
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 	 * @param string|array|object (optional) $params
46 46
 	 * @return self
47 47
 	 */
48
-	public function with( $name, $params = null ) {
49
-		$this->component[ $name ] = $params;
48
+	public function with($name, $params = null) {
49
+		$this->component[$name] = $params;
50 50
 		return $this;
51 51
 	}
52 52
 
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
 	 * @param array $components
60 60
 	 * @param ArtisanInterface $builder
61 61
 	 */
62
-	private function amalgamate( array $components, ArtisanInterface &$builder ) {
63
-		foreach( $components as $component => $params ) {
64
-			$builder->$component( $params );
62
+	private function amalgamate(array $components, ArtisanInterface &$builder) {
63
+		foreach ($components as $component => $params) {
64
+			$builder->$component($params);
65 65
 		}
66 66
 	}
67 67
 }
Please login to merge, or discard this patch.