mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 20:20:15 +02:00
Fix formatting (new line before comment)
This commit is contained in:
@@ -8,6 +8,7 @@ class JuniorDeveloper
|
|||||||
{
|
{
|
||||||
return 'Some junior developer generated code...';
|
return 'Some junior developer generated code...';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Junior is authorized to call method on TeamLead (real delegation)
|
* Junior is authorized to call method on TeamLead (real delegation)
|
||||||
*/
|
*/
|
||||||
|
@@ -26,6 +26,7 @@ class TeamLead
|
|||||||
//note that we are passing $this from teamLead context
|
//note that we are passing $this from teamLead context
|
||||||
return $this->junior->writeReallyBadCode($this);
|
return $this->junior->writeReallyBadCode($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Junior can call this method
|
* Junior can call this method
|
||||||
*/
|
*/
|
||||||
|
@@ -17,6 +17,7 @@ class DelegationTest extends TestCase
|
|||||||
|
|
||||||
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
|
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user