@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |