Applied fixes from StyleCI

This commit is contained in:
Dominik Liebler
2015-12-21 07:28:20 -05:00
committed by StyleCI Bot
parent 3663603b80
commit fe1f144ec3
167 changed files with 510 additions and 517 deletions

View File

@@ -3,16 +3,15 @@
namespace DesignPatterns\Creational\FactoryMethod;
/**
* class FactoryMethod
* class FactoryMethod.
*/
abstract class FactoryMethod
{
const CHEAP = 1;
const FAST = 2;
/**
* The children of the class must implement this method
* The children of the class must implement this method.
*
* Sometimes this method can be public to get "raw" object
*
@@ -23,7 +22,7 @@ abstract class FactoryMethod
abstract protected function createVehicle($type);
/**
* Creates a new vehicle
* Creates a new vehicle.
*
* @param int $type
*
@@ -32,7 +31,7 @@ abstract class FactoryMethod
public function create($type)
{
$obj = $this->createVehicle($type);
$obj->setColor("#f00");
$obj->setColor('#f00');
return $obj;
}