Skip to content

Commit 57e1896

Browse files
committed
Fix codesniffer errors
1 parent 0094586 commit 57e1896

File tree

3 files changed

+29
-28
lines changed

3 files changed

+29
-28
lines changed

Delegation/JuniorDeveloper.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
* Class JuniorDeveloper
77
* @package DesignPatterns\Delegation
88
*/
9-
class JuniorDeveloper {
10-
public function writeBadCode()
11-
{
12-
return "Some junior developer generated code...";
13-
}
9+
class JuniorDeveloper
10+
{
11+
public function writeBadCode()
12+
{
13+
return "Some junior developer generated code...";
14+
}
1415
}

Delegation/TeamLead.php

+18-18
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99
*/
1010
class TeamLead
1111
{
12-
/** @var JuniorDeveloper */
13-
protected $slave;
12+
/** @var JuniorDeveloper */
13+
protected $slave;
1414

15-
/**
16-
* Give junior developer into teamlead submission
17-
* @param JuniorDeveloper $junior
18-
*/
19-
public function __construct(JuniorDeveloper $junior)
20-
{
21-
$this->slave = $junior;
22-
}
15+
/**
16+
* Give junior developer into teamlead submission
17+
* @param JuniorDeveloper $junior
18+
*/
19+
public function __construct(JuniorDeveloper $junior)
20+
{
21+
$this->slave = $junior;
22+
}
2323

24-
/**
25-
* TeamLead drink coffee, junior work
26-
* @return mixed
27-
*/
28-
public function writeCode()
29-
{
30-
return $this->slave->writeBadCode();
31-
}
24+
/**
25+
* TeamLead drink coffee, junior work
26+
* @return mixed
27+
*/
28+
public function writeCode()
29+
{
30+
return $this->slave->writeBadCode();
31+
}
3232
}

Tests/Delegation/DelegationTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*/
1010
class DelegationTest extends \PHPUnit_Framework_TestCase
1111
{
12-
public function testHowTeamLeadWriteCode()
13-
{
12+
public function testHowTeamLeadWriteCode()
13+
{
1414
$junior = new Delegation\JuniorDeveloper();
15-
$teamLead = new Delegation\TeamLead($junior);
16-
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
17-
}
15+
$teamLead = new Delegation\TeamLead($junior);
16+
$this->assertEquals($junior->writeBadCode(), $teamLead->writeCode());
17+
}
1818
}

0 commit comments

Comments
 (0)