Completed
Push — master ( 8b7513...8f0af7 )
by Michael
03:05
created
app/controllers/MatchesController.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@  discard block
 block discarded – undo
7 7
 class MatchesController extends \BaseController {
8 8
 
9 9
 
10
-    public function __construct(MatchService $match, MatchRepository $matchRepo)
11
-    {
12
-        $this->match = $match;
10
+	public function __construct(MatchService $match, MatchRepository $matchRepo)
11
+	{
12
+		$this->match = $match;
13 13
 		$this->matchRepo = $matchRepo;
14
-    }
14
+	}
15 15
 
16 16
 	/**
17 17
 	 * Display a listing of the resource.
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	public function create()
33 33
 	{
34 34
 		$view = View::make('creatematch');
35
-        return $view;
35
+		return $view;
36 36
 	}
37 37
 
38 38
 	/**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function store()
44 44
 	{
45
-	    $input = Input::all();
45
+		$input = Input::all();
46 46
 		return $this->match->create($input);
47 47
 	}
48 48
 
@@ -68,20 +68,20 @@  discard block
 block discarded – undo
68 68
 	public function edit($id)
69 69
 	{
70 70
 
71
-        $enterView = 'EnterTeamMatch';
72
-	    $data = $this->match->get($id);
73
-        $view = View::make($enterView, $data);
74
-        return $view;
71
+		$enterView = 'EnterTeamMatch';
72
+		$data = $this->match->get($id);
73
+		$view = View::make($enterView, $data);
74
+		return $view;
75 75
 
76
-	    // Logic to allow editable for day of match only
76
+		// Logic to allow editable for day of match only
77 77
 		$today = Carbon::today();
78 78
 
79
-        $teamMatchDate = new Carbon('first day of January 2017');
79
+		$teamMatchDate = new Carbon('first day of January 2017');
80 80
 		$matchDate = new Carbon($data['date']);
81 81
 
82 82
 		if($matchDate >= $teamMatchDate){
83
-		    $enterView = 'EnterTeamMatch';
84
-        }
83
+			$enterView = 'EnterTeamMatch';
84
+		}
85 85
 
86 86
 		if($today <= $matchDate){
87 87
 			//Show Editable View
Please login to merge, or discard this patch.