Completed
Push — master ( d565f6...12549b )
by Michael
02:45
created
app/models/Hole.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 	
15 15
 	public function courses()
16 16
     {
17
-        return $this->hasManyThrough('Course','Holescore');
17
+        return $this->hasManyThrough('Course', 'Holescore');
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
app/models/Player.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 	public function holescores()
12 12
 	{
13
-		return $this->hasManyThrough('Holescore','Round');
13
+		return $this->hasManyThrough('Holescore', 'Round');
14 14
 	}
15 15
 
16 16
 	public function skins()
Please login to merge, or discard this patch.
app/controllers/OtherController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	public function show($id)
31 31
 	{
32
-        $results  = $this->leagueStatistics->totalOthers($id);
32
+        $results = $this->leagueStatistics->totalOthers($id);
33 33
 		$data['data'] = $results;
34 34
 		return $data;
35 35
 	}
Please login to merge, or discard this patch.
app/controllers/RoundsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	 */
48 48
 	public function show($id)
49 49
 	{
50
-		$results  = $this->roundRepo->findByPlayer($id);
50
+		$results = $this->roundRepo->findByPlayer($id);
51 51
 		$data['data'] = $results;
52 52
 		return $data;
53 53
 	}
Please login to merge, or discard this patch.
app/controllers/ParController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	public function show($id)
31 31
 	{
32
-        $results  = $this->leagueStatistics->totalPars($id);
32
+        $results = $this->leagueStatistics->totalPars($id);
33 33
 		$data['data'] = $results;
34 34
 		return $data;
35 35
 	}
Please login to merge, or discard this patch.
app/controllers/BirdController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	public function show($id)
31 31
 	{
32
-        $results  = $this->leagueStatistics->totalBirdies($id);
32
+        $results = $this->leagueStatistics->totalBirdies($id);
33 33
 		$data['data'] = $results;
34 34
 		return $data;
35 35
 	}
Please login to merge, or discard this patch.
app/controllers/GrossController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	public function show($id)
31 31
 	{
32
-		$results  = $this->leagueStatistics->topFiveLowestScoresByYear($id);
32
+		$results = $this->leagueStatistics->topFiveLowestScoresByYear($id);
33 33
 		$data['data'] = $results;
34 34
 		return $data;
35 35
 	}
Please login to merge, or discard this patch.
app/controllers/NetController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	public function show($id)
31 31
 	{
32
-        $results  = $this->leagueStatistics->topFiveNetScoresByYear($id);
32
+        $results = $this->leagueStatistics->topFiveNetScoresByYear($id);
33 33
 		$data['data'] = $results;
34 34
 		return $data;
35 35
 	}
Please login to merge, or discard this patch.
app/controllers/CoursesController.php 1 patch
Switch Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -49,26 +49,26 @@
 block discarded – undo
49 49
     {
50 50
 		$operation = Input::get('oper');
51 51
         switch ($operation) {
52
-        case "add":
53
-            $this->course->name = Input::get('name');
54
-			$this->course->par = Input::get('par');
55
-			$this->course->rating = Input::get('rating');
56
-			$this->course->slope = Input::get('slope');
57
-            $this->course->save();
58
-            break;
59
-        case "edit":
60
-            $id = Input::get('id');
61
-            $this->course = $this->course->find($id);
62
-            $this->course->name = Input::get('name');
63
-			$this->course->par = Input::get('par');
64
-			$this->course->rating = Input::get('rating');
65
-			$this->course->slope = Input::get('slope');
66
-            $this->course->save();
67
-            break;
68
-        case "del":
69
-            $id = Input::get('id');
70
-            $this->course = $this->course->destroy($id);
71
-            break;
52
+        	case "add":
53
+            	$this->course->name = Input::get('name');
54
+				$this->course->par = Input::get('par');
55
+				$this->course->rating = Input::get('rating');
56
+				$this->course->slope = Input::get('slope');
57
+            	$this->course->save();
58
+            	break;
59
+        	case "edit":
60
+            	$id = Input::get('id');
61
+            	$this->course = $this->course->find($id);
62
+            	$this->course->name = Input::get('name');
63
+				$this->course->par = Input::get('par');
64
+				$this->course->rating = Input::get('rating');
65
+				$this->course->slope = Input::get('slope');
66
+            	$this->course->save();
67
+            	break;
68
+        	case "del":
69
+            	$id = Input::get('id');
70
+            	$this->course = $this->course->destroy($id);
71
+            	break;
72 72
         }
73 73
     }
74 74
 
Please login to merge, or discard this patch.