Completed
Pull Request — master (#32)
by Manuel
04:07
created
app/Http/Controllers/WelcomeController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function gettingStarted(MarkdownParser $markdown, Cache $cache, Filesystem $file)
55 55
     {
56
-        $gettingStarted = $cache->remember('getting-started', 5, function () use ($markdown, $file) {
56
+        $gettingStarted = $cache->remember('getting-started', 5, function() use ($markdown, $file) {
57 57
             $gettingStarted = $file->get(base_path('resources/getting-started/readme.md'));
58 58
 
59 59
             return $markdown->parse($gettingStarted);
Please login to merge, or discard this patch.
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 class WelcomeController extends Controller
13 13
 {
14
-    /*
14
+	/*
15 15
     |--------------------------------------------------------------------------
16 16
     | Welcome Controller
17 17
     |--------------------------------------------------------------------------
@@ -22,64 +22,64 @@  discard block
 block discarded – undo
22 22
     |
23 23
     */
24 24
 
25
-    /**
26
-     * Create a new controller instance.
27
-     */
28
-    public function __construct()
29
-    {
30
-        $this->middleware('guest');
31
-    }
25
+	/**
26
+	 * Create a new controller instance.
27
+	 */
28
+	public function __construct()
29
+	{
30
+		$this->middleware('guest');
31
+	}
32 32
 
33
-    /**
34
-     * Show the application welcome screen to the user.
35
-     *
36
-     * @return Response
37
-     */
38
-    public function index()
39
-    {
40
-        dump(config('database'), config('database.connections.sqlite'));
41
-        $devices = Device::onHomePage()->get();
33
+	/**
34
+	 * Show the application welcome screen to the user.
35
+	 *
36
+	 * @return Response
37
+	 */
38
+	public function index()
39
+	{
40
+		dump(config('database'), config('database.connections.sqlite'));
41
+		$devices = Device::onHomePage()->get();
42 42
 
43
-        return view('overview')->with(compact('devices'));
44
-    }
43
+		return view('overview')->with(compact('devices'));
44
+	}
45 45
 
46
-    /**
47
-     * Show the getting started screen to the user.
48
-     *
49
-     * @param MarkdownParser $markdown
50
-     * @param Cache          $cache
51
-     * @param Filesystem     $file
52
-     *
53
-     * @return Response
54
-     */
55
-    public function gettingStarted(MarkdownParser $markdown, Cache $cache, Filesystem $file)
56
-    {
57
-        $gettingStarted = $cache->remember('getting-started', 5, function () use ($markdown, $file) {
58
-            $gettingStarted = $file->get(base_path('resources/getting-started/readme.md'));
46
+	/**
47
+	 * Show the getting started screen to the user.
48
+	 *
49
+	 * @param MarkdownParser $markdown
50
+	 * @param Cache          $cache
51
+	 * @param Filesystem     $file
52
+	 *
53
+	 * @return Response
54
+	 */
55
+	public function gettingStarted(MarkdownParser $markdown, Cache $cache, Filesystem $file)
56
+	{
57
+		$gettingStarted = $cache->remember('getting-started', 5, function () use ($markdown, $file) {
58
+			$gettingStarted = $file->get(base_path('resources/getting-started/readme.md'));
59 59
 
60
-            return $markdown->parse($gettingStarted);
61
-        });
60
+			return $markdown->parse($gettingStarted);
61
+		});
62 62
 
63
-        return view('getting-started')->with(compact('gettingStarted'));
64
-    }
63
+		return view('getting-started')->with(compact('gettingStarted'));
64
+	}
65 65
 
66
-    /**
67
-     * Show the statistics screen to the user.
68
-     *
69
-     * @return Response
70
-     */
71
-    public function statistics(Statistics $statistics)
72
-    {
73
-        $pokes_total = $statistics->totalPokes();
66
+	/**
67
+	 * Show the statistics screen to the user.
68
+	 *
69
+	 * @return Response
70
+	 */
71
+	public function statistics(Statistics $statistics)
72
+	{
73
+		$pokes_total = $statistics->totalPokes();
74 74
 
75
-        $devices_total = $statistics->totalDevices();
75
+		$devices_total = $statistics->totalDevices();
76 76
 
77
-        $pokes = $statistics->allPokes()->toArray();
77
+		$pokes = $statistics->allPokes()->toArray();
78 78
 
79
-        $network_distribution = $statistics->networkDistribution()->toArray();
79
+		$network_distribution = $statistics->networkDistribution()->toArray();
80 80
 
81
-        JavaScript::put(compact('pokes', 'network_distribution'));
81
+		JavaScript::put(compact('pokes', 'network_distribution'));
82 82
 
83
-        return view('statistics')->with(compact('pokes_total', 'devices_total'));
84
-    }
83
+		return view('statistics')->with(compact('pokes_total', 'devices_total'));
84
+	}
85 85
 }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -7,26 +7,26 @@
 block discarded – undo
7 7
 
8 8
 class AppServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Bootstrap any application services.
12
-     */
13
-    public function boot()
14
-    {
15
-        //
16
-    }
10
+	/**
11
+	 * Bootstrap any application services.
12
+	 */
13
+	public function boot()
14
+	{
15
+		//
16
+	}
17 17
 
18
-    /**
19
-     * Register any application services.
20
-     */
21
-    public function register()
22
-    {
23
-        $this->app->bind(
24
-            \Illuminate\Contracts\Auth\Registrar::class,
25
-            Registrar::class
26
-        );
18
+	/**
19
+	 * Register any application services.
20
+	 */
21
+	public function register()
22
+	{
23
+		$this->app->bind(
24
+			\Illuminate\Contracts\Auth\Registrar::class,
25
+			Registrar::class
26
+		);
27 27
 
28
-        if ($this->app->environment('local', 'testing')) {
29
-            $this->app->register(\Laravel\Dusk\DuskServiceProvider::class);
30
-        }
31
-    }
28
+		if ($this->app->environment('local', 'testing')) {
29
+			$this->app->register(\Laravel\Dusk\DuskServiceProvider::class);
30
+		}
31
+	}
32 32
 }
Please login to merge, or discard this patch.