Completed
Push — master ( afc941...8ca3ba )
by
unknown
03:02
created
app/Http/Controllers/HockeyController.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
 		$games = $reader->get()->sortBy(function($game) {
30 30
 			return $game->startUtc->timestamp;
31 31
 		});
32
-		$laterGames = $games->filter(function ($game) {
32
+		$laterGames = $games->filter(function($game) {
33 33
 			return $game->startUtc > Carbon::now('UTC');
34 34
 		});
35 35
 
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function index()
14 14
 	{
15
-        $banner = SystemSetting::frontPageBannerText();
15
+		$banner = SystemSetting::frontPageBannerText();
16 16
 		return view('home.index')->withBanner($banner);
17 17
 	}
18 18
 
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 			if ($request->ajax())
38 38
 			{
39 39
 				return response('Unauthorized.', 401);
40
-			}
41
-			else
40
+			} else
42 41
 			{
43 42
 				return redirect()->guest('auth/login');
44 43
 			}
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyAuthOrWhitelisted.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@
 block discarded – undo
46 46
 			if ($request->ajax())
47 47
 			{
48 48
 				return response('Unauthorized.', 401);
49
-			}
50
-			else
49
+			} else
51 50
 			{
52 51
 				return redirect()->guest('auth/login');
53 52
 			}
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 			$this->app->bind('WITR\TopTwenty\Reader', 'WITR\TopTwenty\DummyReader');
39 39
 		}
40 40
 
41
-		if($this->app->environment('local'))
41
+		if ($this->app->environment('local'))
42 42
 		{
43 43
 			$this->app->register('Barryvdh\Debugbar\ServiceProvider');
44 44
 			$this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		$router->group(['namespace' => $this->namespace], function($router)
39 39
 		{
40 40
 			require app_path('Http/routes.php');
41
-			$router->group(['namespace' => 'Admin', 'prefix' => 'admin'], function ($router) {
41
+			$router->group(['namespace' => 'Admin', 'prefix' => 'admin'], function($router) {
42 42
 				require app_path('Http/admin_routes.php');
43 43
 			});
44 44
 		});
Please login to merge, or discard this patch.
app/RSS/Reader.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -8,43 +8,43 @@
 block discarded – undo
8 8
 class Reader
9 9
 {
10 10
 
11
-    protected $parser;
11
+	protected $parser;
12 12
 
13
-    public static function forParser(Parser $parser)
14
-    {
15
-        $reader = new Reader();
13
+	public static function forParser(Parser $parser)
14
+	{
15
+		$reader = new Reader();
16 16
 
17
-        $reader->parser = $parser;
17
+		$reader->parser = $parser;
18 18
 
19
-        return $reader;
20
-    }
19
+		return $reader;
20
+	}
21 21
 
22
-    public function get()
23
-    {
24
-        $results = new Collection;
22
+	public function get()
23
+	{
24
+		$results = new Collection;
25 25
 
26
-        $client = new Client();
27
-        $response = $client->get($this->parser->url(), [
28
-            'headers' => ['User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36']
29
-        ]);
26
+		$client = new Client();
27
+		$response = $client->get($this->parser->url(), [
28
+			'headers' => ['User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36']
29
+		]);
30 30
         
31
-        $xml = simplexml_load_string($response->getBody())->channel->item;
32
-        foreach ($xml as $node)
33
-        {
34
-            $this->adjustNamespaces($node);
35
-            $results[] = $this->parser->parse($node);
36
-        }
37
-
38
-        return $results;
39
-    }
40
-
41
-    private function adjustNamespaces($el)
42
-    {
43
-        foreach ($el->getNamespaces(TRUE) as $prefix => $ns) {
44
-            $children = $el->children($ns);
45
-            foreach ($children as $tag => $content) {
46
-                $el->{$prefix . ':' . $tag} = $content;
47
-            }
48
-        }
49
-    }
31
+		$xml = simplexml_load_string($response->getBody())->channel->item;
32
+		foreach ($xml as $node)
33
+		{
34
+			$this->adjustNamespaces($node);
35
+			$results[] = $this->parser->parse($node);
36
+		}
37
+
38
+		return $results;
39
+	}
40
+
41
+	private function adjustNamespaces($el)
42
+	{
43
+		foreach ($el->getNamespaces(TRUE) as $prefix => $ns) {
44
+			$children = $el->children($ns);
45
+			foreach ($children as $tag => $content) {
46
+				$el->{$prefix . ':' . $tag} = $content;
47
+			}
48
+		}
49
+	}
50 50
 }
Please login to merge, or discard this patch.
app/Role.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
 	 */
12 12
 	protected $table = 'user_roles';
13 13
     
14
-    public $timestamps = false;
14
+	public $timestamps = false;
15 15
 }
Please login to merge, or discard this patch.
app/Schedule/ScheduleTime.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -7,68 +7,68 @@
 block discarded – undo
7 7
 class ScheduleTime
8 8
 {
9 9
 
10
-    protected $datetime;
10
+	protected $datetime;
11 11
 
12
-    public static function now()
13
-    {
14
-        return ScheduleTime::fromDate(Carbon::now('America/New_York'));
15
-    }
12
+	public static function now()
13
+	{
14
+		return ScheduleTime::fromDate(Carbon::now('America/New_York'));
15
+	}
16 16
 
17
-    public static function setTestNow($now)
18
-    {
19
-        Carbon::setTestNow($now);
20
-    }
17
+	public static function setTestNow($now)
18
+	{
19
+		Carbon::setTestNow($now);
20
+	}
21 21
 
22
-    public function value()
23
-    {
24
-        return $this->datetime;
25
-    }
22
+	public function value()
23
+	{
24
+		return $this->datetime;
25
+	}
26 26
 
27
-    public static function fromDate($datetime)
28
-    {
29
-        $scheduleTime = new ScheduleTime();
27
+	public static function fromDate($datetime)
28
+	{
29
+		$scheduleTime = new ScheduleTime();
30 30
 
31
-        $scheduleTime->datetime = $datetime;
31
+		$scheduleTime->datetime = $datetime;
32 32
 
33
-        return $scheduleTime;
34
-    }
33
+		return $scheduleTime;
34
+	}
35 35
 
36
-    public function dayOfWeek()
37
-    {
38
-        $day = $this->datetime->dayOfWeek;
39
-        if ($this->datetime->hour < 1)
40
-        {
41
-            $day--;
42
-        }
43
-        return $day;
44
-    }
36
+	public function dayOfWeek()
37
+	{
38
+		$day = $this->datetime->dayOfWeek;
39
+		if ($this->datetime->hour < 1)
40
+		{
41
+			$day--;
42
+		}
43
+		return $day;
44
+	}
45 45
 
46
-    public function hour()
47
-    {
48
-        $hour = $this->datetime->hour;
49
-        if ($hour == 0) {
50
-            return 24;
51
-        } else {
52
-            return $hour;
53
-        }
54
-    }
46
+	public function hour()
47
+	{
48
+		$hour = $this->datetime->hour;
49
+		if ($hour == 0) {
50
+			return 24;
51
+		} else {
52
+			return $hour;
53
+		}
54
+	}
55 55
 
56
-    public function __get($name)
57
-    {
58
-        if ($name == 'dayOfWeek')
59
-        {
60
-            return $this->dayOfWeek();
61
-        }
62
-        return $this->datetime->$name;
63
-    }
56
+	public function __get($name)
57
+	{
58
+		if ($name == 'dayOfWeek')
59
+		{
60
+			return $this->dayOfWeek();
61
+		}
62
+		return $this->datetime->$name;
63
+	}
64 64
 
65
-    public function __call($method, $arguments)
66
-    {
67
-        if (method_exists($this, $method))
68
-        {
69
-            return $this->$method();
70
-        }
71
-        call_user_func_array(array($this->datetime, $method), $arguments);
72
-        return $this;
73
-    }
65
+	public function __call($method, $arguments)
66
+	{
67
+		if (method_exists($this, $method))
68
+		{
69
+			return $this->$method();
70
+		}
71
+		call_user_func_array(array($this->datetime, $method), $arguments);
72
+		return $this;
73
+	}
74 74
 }
Please login to merge, or discard this patch.