mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-15 07:50:58 +02:00
Cleanup in src/, adding namespaces, removing php closing tag and general code cleanup
This commit is contained in:
13
src/Team.php
13
src/Team.php
@@ -1,9 +1,4 @@
|
||||
<?php
|
||||
namespace Moserware\Skills;
|
||||
|
||||
require_once(dirname(__FILE__) . '/Player.php');
|
||||
require_once(dirname(__FILE__) . '/Rating.php');
|
||||
require_once(dirname(__FILE__) . '/RatingContainer.php');
|
||||
<?php namespace Moserware\Skills;
|
||||
|
||||
class Team extends RatingContainer
|
||||
{
|
||||
@@ -11,7 +6,7 @@ class Team extends RatingContainer
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
if(!\is_null($player))
|
||||
if(!is_null($player))
|
||||
{
|
||||
$this->addPlayer($player, $rating);
|
||||
}
|
||||
@@ -22,6 +17,4 @@ class Team extends RatingContainer
|
||||
$this->setRating($player, $rating);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
Reference in New Issue
Block a user