Completed
Push — master ( d565f6...12549b )
by Michael
02:45
created
app/models/Single.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Single extends Eloquent
4
-{
3
+class Single extends Eloquent {
5 4
     public function match()
6 5
     {
7 6
         return $this->belongsTo('Match');
8 7
     }
9 8
 
10 9
 	public function players()
11
-    {
10
+	{
12 11
         return $this->hasMany('Player');
13 12
     }
14 13
 }
15 14
\ No newline at end of file
Please login to merge, or discard this patch.
app/models/Game.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 class Game extends Eloquent {
4 4
 	
5 5
 	public function winners()
6
-    {
6
+	{
7 7
         return $this->hasMany('Winner');
8 8
     }
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
app/models/Ctp.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Ctp extends Eloquent
4
-{
3
+class Ctp extends Eloquent {
5 4
 	protected $guarded = ['id'];
6 5
 	protected $fillable = ['player_id', 'hole_id', 'match_id', 'money'];
7 6
 
8 7
 	public function match()
9
-    {
8
+	{
10 9
         return $this->belongsTo('Match');
11 10
     }
12 11
 
Please login to merge, or discard this patch.
app/models/Player.php 1 patch
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Player extends Eloquent
4
-{
3
+class Player extends Eloquent {
5 4
 
6 5
 	public function rounds()
7
-    {
6
+	{
8 7
         return $this->hasMany('Round');
9 8
     }
10 9
 
@@ -14,17 +13,17 @@  discard block
 block discarded – undo
14 13
 	}
15 14
 
16 15
 	public function skins()
17
-    {
16
+	{
18 17
         return $this->hasMany('Skin');
19 18
     }
20 19
 
21 20
 	public function winners()
22
-    {
21
+	{
23 22
         return $this->hasMany('Winner');
24 23
     }
25 24
 
26 25
 	public function matches()
27
-    {
26
+	{
28 27
         return $this->belongsToMany('Match')->withPivot('level_id', 'group', 'handicap', 'winnings')->withTimestamps();
29 28
     }
30 29
 
Please login to merge, or discard this patch.
app/models/Holescore.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     }
12 12
 
13 13
 	public function hole()
14
-    {
14
+	{
15 15
         return $this->belongsTo('Hole');
16 16
     }
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
app/models/Level.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 class Level extends Eloquent {
4 4
 	
5 5
 	public function skins()
6
-    {
6
+	{
7 7
         return $this->hasMany('Skin');
8 8
     }
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
app/models/Match.php 1 patch
Braces   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,41 +1,40 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Match extends Eloquent
4
-{
3
+class Match extends Eloquent {
5 4
 	protected $table = 'matches';
6 5
 
7 6
 	public function setDateAttribute($date)
8
-    {
7
+	{
9 8
 		$this->attributes['date'] = date('Y-m-d', strtotime(str_replace('-', '/', $date)));
10 9
     }
11 10
 
12 11
 	public function course()
13
-    {
12
+	{
14 13
         return $this->belongsTo('Course');
15 14
     }
16 15
 
17 16
 	public function season()
18
-    {
17
+	{
19 18
         return $this->belongsTo('Season');
20 19
     }
21 20
 
22 21
 	public function winners()
23
-    {
22
+	{
24 23
         return $this->hasMany('Winner');
25 24
     }
26 25
 
27 26
 	public function money()
28
-    {
27
+	{
29 28
         return $this->hasMany('Money');
30 29
     }
31 30
 
32 31
 	public function skins()
33
-    {
32
+	{
34 33
         return $this->hasMany('Skin');
35 34
     }
36 35
 
37 36
 	public function players()
38
-    {
37
+	{
39 38
         return $this->belongsToMany('Player')->withPivot('level_id', 'group', 'handicap', 'winnings')->orderBy('pivot_winnings', 'desc')->withTimestamps();
40 39
     }
41 40
 
Please login to merge, or discard this patch.
app/models/Skin.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,22 +3,22 @@
 block discarded – undo
3 3
 class Skin extends Eloquent {
4 4
 
5 5
 	public function player()
6
-    {
6
+	{
7 7
         return $this->belongsTo('Player');
8 8
     }
9 9
 
10 10
 	public function matches()
11
-    {
11
+	{
12 12
         return $this->belongsTo('Match');
13 13
     }
14 14
 
15 15
 	public function level()
16
-    {
16
+	{
17 17
         return $this->belongsTo('Level');
18 18
     }
19 19
 
20 20
 	public function hole()
21
-    {
21
+	{
22 22
         return $this->belongsTo('Hole');
23 23
     }
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
app/models/Netwinner.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 class Netwinner extends Eloquent {
4 4
 
5 5
 	public function match()
6
-    {
6
+	{
7 7
         return $this->belongsTo('Match');
8 8
     }
9 9
 
Please login to merge, or discard this patch.