@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use DesignPattern\Creational\AbstractFactory\Image as BaseImage; |
8 | 8 | |
9 | -class Image extends BaseImage |
|
10 | -{ |
|
9 | +class Image extends BaseImage |
|
10 | +{ |
|
11 | 11 | /** |
12 | 12 | * Render html image. |
13 | 13 | * |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use DesignPattern\Creational\AbstractFactory\Text as BaseText; |
8 | 8 | |
9 | -class Text extends BaseText |
|
10 | -{ |
|
9 | +class Text extends BaseText |
|
10 | +{ |
|
11 | 11 | /** |
12 | 12 | * Render html text. |
13 | 13 | * |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use DesignPattern\Creational\AbstractFactory\Image as BaseImage; |
8 | 8 | |
9 | -class Image extends BaseImage |
|
10 | -{ |
|
9 | +class Image extends BaseImage |
|
10 | +{ |
|
11 | 11 | /** |
12 | 12 | * Render json image. |
13 | 13 | * |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use DesignPattern\Creational\AbstractFactory\Text as BaseText; |
8 | 8 | |
9 | -class Text extends BaseText |
|
10 | -{ |
|
9 | +class Text extends BaseText |
|
10 | +{ |
|
11 | 11 | /** |
12 | 12 | * Render json text. |
13 | 13 | * |
@@ -7,8 +7,8 @@ |
||
7 | 7 | use DesignPattern\Creational\AbstractFactory\Json\Image as JsonImage; |
8 | 8 | use DesignPattern\Creational\AbstractFactory\Json\Text as JsonText; |
9 | 9 | |
10 | -class JsonFactory extends AbstractFactory |
|
11 | -{ |
|
10 | +class JsonFactory extends AbstractFactory |
|
11 | +{ |
|
12 | 12 | /** |
13 | 13 | * Create a image component implementation. |
14 | 14 | * |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder; |
6 | 6 | |
7 | -interface BuilderInterface |
|
8 | -{ |
|
7 | +interface BuilderInterface |
|
8 | +{ |
|
9 | 9 | public function createComputer(); |
10 | 10 | |
11 | 11 | public function getComputer(); |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder; |
6 | 6 | |
7 | -class Director |
|
8 | -{ |
|
7 | +class Director |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * Builder. |
11 | 11 | * |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | * |
14 | 14 | * @return mixed |
15 | 15 | */ |
16 | - public function build(BuilderInterface $builder) |
|
17 | - { |
|
16 | + public function build(BuilderInterface $builder) |
|
17 | + { |
|
18 | 18 | $builder->createComputer(); |
19 | 19 | $builder->addCPU(); |
20 | 20 | $builder->addStorage(); |
@@ -12,8 +12,8 @@ |
||
12 | 12 | use DesignPattern\Creational\Builder\Component\Output; |
13 | 13 | use DesignPattern\Creational\Builder\Component\Storage; |
14 | 14 | |
15 | -class NotebookBuilder implements BuilderInterface |
|
16 | -{ |
|
15 | +class NotebookBuilder implements BuilderInterface |
|
16 | +{ |
|
17 | 17 | /** |
18 | 18 | * @var \DesignPattern\Creational\Builder\Component\Notebook |
19 | 19 | */ |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder\Component; |
6 | 6 | |
7 | -class CPU |
|
8 | -{ |
|
7 | +class CPU |
|
8 | +{ |
|
9 | 9 | } |