mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-09 17:36:22 +02:00
Merge pull request #130 from nueckman/codestyle-1
codestyle - remove trailing whitespaces
This commit is contained in:
@ -17,7 +17,6 @@ class BikeBuilder implements BuilderInterface
|
|||||||
*/
|
*/
|
||||||
public function addDoors()
|
public function addDoors()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\Builder\Parts;
|
|||||||
*/
|
*/
|
||||||
class Bike extends Vehicle
|
class Bike extends Vehicle
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\Builder\Parts;
|
|||||||
*/
|
*/
|
||||||
class Car extends Vehicle
|
class Car extends Vehicle
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\Builder\Parts;
|
|||||||
*/
|
*/
|
||||||
class Door
|
class Door
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\Builder\Parts;
|
|||||||
*/
|
*/
|
||||||
class Engine
|
class Engine
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\Builder\Parts;
|
|||||||
*/
|
*/
|
||||||
class Wheel
|
class Wheel
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,5 @@ class Porsche implements VehicleInterface
|
|||||||
*/
|
*/
|
||||||
public function addTuningAMG()
|
public function addTuningAMG()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,6 @@ class Multiton
|
|||||||
*/
|
*/
|
||||||
private function __construct()
|
private function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,7 +58,6 @@ class Multiton
|
|||||||
*/
|
*/
|
||||||
private function __clone()
|
private function __clone()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -69,6 +67,5 @@ class Multiton
|
|||||||
*/
|
*/
|
||||||
private function __wakeup()
|
private function __wakeup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,5 @@ class BarBookPrototype extends BookPrototype
|
|||||||
*/
|
*/
|
||||||
public function __clone()
|
public function __clone()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,5 @@ class FooBookPrototype extends BookPrototype
|
|||||||
*/
|
*/
|
||||||
public function __clone()
|
public function __clone()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,5 @@ class Bicycle implements VehicleInterface
|
|||||||
*/
|
*/
|
||||||
public function driveTo($destination)
|
public function driveTo($destination)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,5 @@ class Scooter implements VehicleInterface
|
|||||||
*/
|
*/
|
||||||
public function driveTo($destination)
|
public function driveTo($destination)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ class Singleton
|
|||||||
*/
|
*/
|
||||||
public static function getInstance()
|
public static function getInstance()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (null === static::$instance) {
|
if (null === static::$instance) {
|
||||||
static::$instance = new static;
|
static::$instance = new static;
|
||||||
}
|
}
|
||||||
@ -33,7 +32,6 @@ class Singleton
|
|||||||
*/
|
*/
|
||||||
private function __construct()
|
private function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,7 +41,6 @@ class Singleton
|
|||||||
*/
|
*/
|
||||||
private function __clone()
|
private function __clone()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,6 +50,5 @@ class Singleton
|
|||||||
*/
|
*/
|
||||||
private function __wakeup()
|
private function __wakeup()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\StaticFactory;
|
|||||||
*/
|
*/
|
||||||
class FormatNumber implements FormatterInterface
|
class FormatNumber implements FormatterInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\StaticFactory;
|
|||||||
*/
|
*/
|
||||||
class FormatString implements FormatterInterface
|
class FormatString implements FormatterInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,4 @@ namespace DesignPatterns\Creational\StaticFactory;
|
|||||||
*/
|
*/
|
||||||
interface FormatterInterface
|
interface FormatterInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ class Book implements PaperBookInterface
|
|||||||
*/
|
*/
|
||||||
public function open()
|
public function open()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,6 +19,5 @@ class Book implements PaperBookInterface
|
|||||||
*/
|
*/
|
||||||
public function turnPage()
|
public function turnPage()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ class Kindle implements EBookInterface
|
|||||||
*/
|
*/
|
||||||
public function pressNext()
|
public function pressNext()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,6 +19,5 @@ class Kindle implements EBookInterface
|
|||||||
*/
|
*/
|
||||||
public function pressStart()
|
public function pressStart()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user