mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-16 03:43:57 +02:00
Applied fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3663603b80
commit
fe1f144ec3
@@ -3,13 +3,12 @@
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* Class JuniorDeveloper
|
||||
* @package DesignPatterns\Delegation
|
||||
* Class JuniorDeveloper.
|
||||
*/
|
||||
class JuniorDeveloper
|
||||
{
|
||||
public function writeBadCode()
|
||||
{
|
||||
return "Some junior developer generated code...";
|
||||
return 'Some junior developer generated code...';
|
||||
}
|
||||
}
|
||||
|
@@ -3,9 +3,7 @@
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* Class TeamLead
|
||||
* @package DesignPatterns\Delegation
|
||||
* The `TeamLead` class, he delegate work to `JuniorDeveloper`
|
||||
* Class TeamLead.
|
||||
*/
|
||||
class TeamLead
|
||||
{
|
||||
@@ -13,7 +11,8 @@ class TeamLead
|
||||
protected $slave;
|
||||
|
||||
/**
|
||||
* Give junior developer into teamlead submission
|
||||
* Give junior developer into teamlead submission.
|
||||
*
|
||||
* @param JuniorDeveloper $junior
|
||||
*/
|
||||
public function __construct(JuniorDeveloper $junior)
|
||||
@@ -22,7 +21,8 @@ class TeamLead
|
||||
}
|
||||
|
||||
/**
|
||||
* TeamLead drink coffee, junior work
|
||||
* TeamLead drink coffee, junior work.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function writeCode()
|
||||
|
@@ -5,7 +5,7 @@ namespace DesignPatterns\More\Delegation\Tests;
|
||||
use DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* DelegationTest tests the delegation pattern
|
||||
* DelegationTest tests the delegation pattern.
|
||||
*/
|
||||
class DelegationTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
Reference in New Issue
Block a user