@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder\Component; |
6 | 6 | |
7 | -class Input |
|
8 | -{ |
|
7 | +class Input |
|
8 | +{ |
|
9 | 9 | } |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder\Component; |
6 | 6 | |
7 | -class Output |
|
8 | -{ |
|
7 | +class Output |
|
8 | +{ |
|
9 | 9 | } |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder\Component; |
6 | 6 | |
7 | -class Chassis |
|
8 | -{ |
|
7 | +class Chassis |
|
8 | +{ |
|
9 | 9 | } |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Builder\Component; |
6 | 6 | |
7 | -abstract class Computer |
|
8 | -{ |
|
7 | +abstract class Computer |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * @var array |
11 | 11 | */ |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\StaticFactory; |
6 | 6 | |
7 | -interface FormatterInterface |
|
8 | -{ |
|
7 | +interface FormatterInterface |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * Format value. |
11 | 11 | * |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\StaticFactory; |
6 | 6 | |
7 | -class FormatterNumber implements FormatterInterface |
|
8 | -{ |
|
7 | +class FormatterNumber implements FormatterInterface |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * Format value. |
11 | 11 | * |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\StaticFactory; |
6 | 6 | |
7 | -class FormatterString implements FormatterInterface |
|
8 | -{ |
|
7 | +class FormatterString implements FormatterInterface |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * Format value. |
11 | 11 | * |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\StaticFactory; |
6 | 6 | |
7 | -final class StaticFactory |
|
8 | -{ |
|
7 | +final class StaticFactory |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * Create a static factory class. |
11 | 11 | * |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | $class = __NAMESPACE__ . '\Formatter' . ucfirst($type); |
21 | 21 | |
22 | - if (! class_exists($class)) { |
|
22 | + if (! class_exists($class)) { |
|
23 | 23 | throw new \InvalidArgumentException("$class is not found."); |
24 | 24 | } |
25 | 25 |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | namespace DesignPattern\Creational\Prototype; |
6 | 6 | |
7 | -class BarPrototype extends Prototype |
|
8 | -{ |
|
7 | +class BarPrototype extends Prototype |
|
8 | +{ |
|
9 | 9 | /** |
10 | 10 | * Empty clone. |
11 | 11 | */ |
12 | - public function __clone() |
|
13 | - { |
|
12 | + public function __clone() |
|
13 | + { |
|
14 | 14 | } |
15 | 15 | } |