codestyle - remove trailing whitespaces

This commit is contained in:
Nils Rückmann
2015-03-27 12:19:20 +01:00
parent a6a6e18997
commit 2bc3d20e5e
41 changed files with 40 additions and 65 deletions

View File

@ -4,7 +4,7 @@ namespace DesignPatterns\Behavioral\Command;
/**
* This concrete command calls "print" on the Receiver, but an external
* invoker just know he can call "execute"
* invoker just know he can call "execute"
*/
class HelloCommand implements CommandInterface
{

View File

@ -4,7 +4,7 @@ namespace DesignPatterns\Behavioral\NullObject;
/**
* LoggerInterface is a contract for logging something
*
*
* Key feature: NullLogger MUST inherit from this interface like any other Loggers
*/
interface LoggerInterface

View File

@ -5,7 +5,7 @@ namespace DesignPatterns\Behavioral\NullObject;
/**
* Performance concerns : ok there is a call for nothing but we spare an "if is_null"
* I didn't run a benchmark but I think it's equivalent.
*
*
* Key feature : of course this logger MUST implement the same interface (or abstract)
* like the other loggers.
*/

View File

@ -4,7 +4,7 @@ namespace DesignPatterns\Behavioral\Observer;
/**
* Observer pattern : The observed object (the subject)
*
*
* The subject maintains a list of Observers and sends notifications.
*
*/

View File

@ -10,7 +10,7 @@ class UserObserver implements \SplObserver
/**
* This is the only method to implement as an observer.
* It is called by the Subject (usually by SplSubject::notify() )
*
*
* @param \SplSubject $subject
*/
public function update(\SplSubject $subject)

View File

@ -12,7 +12,7 @@ class Either extends AbstractSpecification
/**
* A composite wrapper of two specifications
*
*
* @param SpecificationInterface $left
* @param SpecificationInterface $right
*/
@ -24,9 +24,9 @@ class Either extends AbstractSpecification
/**
* Returns the evaluation of both wrapped specifications as a logical OR
*
*
* @param Item $item
*
*
* @return bool
*/
public function isSatisfiedBy(Item $item)

View File

@ -10,7 +10,7 @@ class Item
/**
* An item must have a price
*
*
* @param int $price
*/
public function __construct($price)
@ -20,7 +20,7 @@ class Item
/**
* Get the items price
*
*
* @return int
*/
public function getPrice()

View File

@ -11,7 +11,7 @@ class Not extends AbstractSpecification
/**
* Creates a new specification wrapping another
*
*
* @param SpecificationInterface $spec
*/
public function __construct(SpecificationInterface $spec)
@ -21,9 +21,9 @@ class Not extends AbstractSpecification
/**
* Returns the negated result of the wrapped specification
*
*
* @param Item $item
*
*
* @return bool
*/
public function isSatisfiedBy(Item $item)

View File

@ -10,7 +10,7 @@ abstract class Journey
/**
* This is the public service provided by this class and its subclasses.
* Notice it is final to "freeze" the global behavior of algorithm.
* If you want to override this contract, make an interface with only takeATrip()
* If you want to override this contract, make an interface with only takeATrip()
* and subclass it.
*/
final public function takeATrip()

View File

@ -6,10 +6,10 @@ namespace DesignPatterns\Behavioral\Visitor;
* Visitor Pattern
*
* The contract for the visitor.
*
*
* Note 1 : in C++ or java, with method polymorphism based on type-hint, there are many
* methods visit() with different type for the 'role' parameter.
*
*
* Note 2 : the visitor must not choose itself which method to
* invoke, it is the Visitee that make this decision.
*/
@ -17,14 +17,14 @@ interface RoleVisitorInterface
{
/**
* Visit a User object
*
*
* @param \DesignPatterns\Behavioral\Visitor\User $role
*/
public function visitUser(User $role);
/**
* Visit a Group object
*
*
* @param \DesignPatterns\Behavioral\Visitor\Group $role
*/
public function visitGroup(Group $role);