for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use GolfLeague\Statistics\Player\PlayerStatistics as PlayerStatistics;
class PlayerStatisticsController extends \BaseController {
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
public function __construct(PlayerStatistics $playerStatistics)
{
$this->playerStatistics = $playerStatistics;
}
public function scoringAverage($playerId)
return $this->playerStatistics->scoringAverage($playerId);
public function scoringAverageByYear($playerId, $year)
return $this->playerStatistics->scoringAverageByYear($playerId, $year);
public function birdiesByYear($playerId, $year)
return $this->playerStatistics->birdiesByYear($playerId, $year);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.