Completed
Push — master ( c5f67f...8d1146 )
by Michael
03:07
created
app/library/Classes/Statistics/PlayerStatisticsEloquent.php 1 patch
Braces   +71 added lines, -26 removed lines patch added patch discarded remove patch
@@ -7,12 +7,13 @@  discard block
 block discarded – undo
7 7
 use \Holescore;
8 8
 
9 9
 
10
-class PlayerStatisticsEloquent implements PlayerStatistics
11
-{
10
+class PlayerStatisticsEloquent implements PlayerStatistics {
12 11
     private $date1 = '-01-01';
13 12
     private $date2 = '-12-31';
14 13
 
15
-    public function matchesHandicap($playerId){}
14
+    public function matchesHandicap($playerId)
15
+    {
16
+}
16 17
     public function scoringAverage($playerId)
17 18
     {
18 19
         $rounds = Round::where('match_id', '>', '0')
@@ -44,18 +45,36 @@  discard block
 block discarded – undo
44 45
 
45 46
 
46 47
     }
47
-    public function scoringAverageMatchesByYear($year){}
48
-    public function handicapRounds($playerId){}
48
+    public function scoringAverageMatchesByYear($year)
49
+    {
50
+}
51
+    public function handicapRounds($playerId)
52
+    {
53
+}
49 54
 
50
-    public function scoringAverageCourse($course){}
51
-    public function scoringAverageCourseByYear($course, $year){}
52
-    public function scoringAverageCourseMatchesByYear($course, $year){}
55
+    public function scoringAverageCourse($course)
56
+    {
57
+}
58
+    public function scoringAverageCourseByYear($course, $year)
59
+    {
60
+}
61
+    public function scoringAverageCourseMatchesByYear($course, $year)
62
+    {
63
+}
53 64
 
54
-    public function totalEagles(){}
55
-    public function eaglesByYear($year){}
56
-    public function eaglesMatchesByYear($year){}
65
+    public function totalEagles()
66
+    {
67
+}
68
+    public function eaglesByYear($year)
69
+    {
70
+}
71
+    public function eaglesMatchesByYear($year)
72
+    {
73
+}
57 74
 
58
-    public function totalBirdies($playerId){}
75
+    public function totalBirdies($playerId)
76
+    {
77
+}
59 78
     public function birdiesByYear($playerId, $year)
60 79
     {
61 80
         $year = $year . '-01-01';
@@ -64,7 +83,7 @@  discard block
 block discarded – undo
64 83
             ->get();
65 84
         $allBirdies = array();
66 85
         foreach($holescores as $key => $holescore) {
67
-            if($holescore['round']['match_id'] != null){
86
+            if($holescore['round']['match_id'] != null) {
68 87
                 if( ($holescore['hole']['par'] - $holescore['score']) === 1) {
69 88
                     $allBirdies[]= $holescore['round']['player']['id'];
70 89
                 }
@@ -73,22 +92,48 @@  discard block
 block discarded – undo
73 92
         return count(array_keys($allBirdies, $playerId));
74 93
 
75 94
     }
76
-    public function birdiesMatchesByYear($year){}
95
+    public function birdiesMatchesByYear($year)
96
+    {
97
+}
77 98
 
78
-    public function totalPars(){}
79
-    public function parsByYear($year){}
80
-    public function parsMatchesByYear($year){}
99
+    public function totalPars()
100
+    {
101
+}
102
+    public function parsByYear($year)
103
+    {
104
+}
105
+    public function parsMatchesByYear($year)
106
+    {
107
+}
81 108
 
82
-    public function totalbogeys(){}
83
-    public function bogeysByYear($year){}
84
-    public function bogeysMatchesByYear($year){}
109
+    public function totalbogeys()
110
+    {
111
+}
112
+    public function bogeysByYear($year)
113
+    {
114
+}
115
+    public function bogeysMatchesByYear($year)
116
+    {
117
+}
85 118
 
86
-    public function totalDoubles(){}
87
-    public function doublesByYear($year){}
88
-    public function doublesMatchesByYear($year){}
119
+    public function totalDoubles()
120
+    {
121
+}
122
+    public function doublesByYear($year)
123
+    {
124
+}
125
+    public function doublesMatchesByYear($year)
126
+    {
127
+}
89 128
 
90
-    public function totalOthers(){}
91
-    public function othersByYear($year){}
92
-    public function othersMatchesByYear($year){}
129
+    public function totalOthers()
130
+    {
131
+}
132
+    public function othersByYear($year)
133
+    {
134
+}
135
+    public function othersMatchesByYear($year)
136
+    {
137
+}
93 138
 
94 139
 }
95 140
\ No newline at end of file
Please login to merge, or discard this patch.