Completed
Pull Request — master (#16)
by Graham
08:55
created
app/Http/routes.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 Route::get('/stats', 'WelcomeController@statistics');
8 8
 
9
-Route::group(['prefix' => 'api/v1', 'namespace' => 'Api'], function () {
9
+Route::group(['prefix' => 'api/v1', 'namespace' => 'Api'], function() {
10 10
     Route::resource('devices', 'DeviceController', ['except' => ['create', 'edit']]);
11 11
 
12 12
     Route::post('devices/poke', [
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 
9 9
 Route::group(['prefix' => 'api/v1', 'namespace' => 'Api'], function () {
10 10
 
11
-    Route::get('/devices/@{group}', 'DeviceController@index');
12
-    Route::resource('devices', 'DeviceController', ['except' => ['create', 'edit']]);
11
+	Route::get('/devices/@{group}', 'DeviceController@index');
12
+	Route::resource('devices', 'DeviceController', ['except' => ['create', 'edit']]);
13 13
 
14
-    Route::post('devices/poke', [
15
-        'as'   => 'api.v1.devices.poke',
16
-        'uses' => 'DeviceController@poke',
17
-    ]);
14
+	Route::post('devices/poke', [
15
+		'as'   => 'api.v1.devices.poke',
16
+		'uses' => 'DeviceController@poke',
17
+	]);
18 18
 
19 19
 });
20 20
 
Please login to merge, or discard this patch.
app/Poke.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class Poke extends Model
8 8
 {
9
-    protected $fillable = ['ip', 'mac'];
9
+	protected $fillable = ['ip', 'mac'];
10 10
 }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 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',
25
-            Registrar::class
26
-        );
27
-    }
18
+	/**
19
+	 * Register any application services.
20
+	 */
21
+	public function register()
22
+	{
23
+		$this->app->bind(
24
+			'Illuminate\Contracts\Auth\Registrar',
25
+			Registrar::class
26
+		);
27
+	}
28 28
 }
Please login to merge, or discard this patch.
app/Providers/BusServiceProvider.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@
 block discarded – undo
7 7
 
8 8
 class BusServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Bootstrap any application services.
12
-     *
13
-     * @param \Illuminate\Bus\Dispatcher $dispatcher
14
-     */
15
-    public function boot(Dispatcher $dispatcher)
16
-    {
17
-        $dispatcher->mapUsing(function ($command) {
18
-            return Dispatcher::simpleMapping(
19
-                $command, 'PiFinder\Commands', 'PiFinder\Handlers\Commands'
20
-            );
21
-        });
22
-    }
10
+	/**
11
+	 * Bootstrap any application services.
12
+	 *
13
+	 * @param \Illuminate\Bus\Dispatcher $dispatcher
14
+	 */
15
+	public function boot(Dispatcher $dispatcher)
16
+	{
17
+		$dispatcher->mapUsing(function ($command) {
18
+			return Dispatcher::simpleMapping(
19
+				$command, 'PiFinder\Commands', 'PiFinder\Handlers\Commands'
20
+			);
21
+		});
22
+	}
23 23
 
24
-    /**
25
-     * Register any application services.
26
-     */
27
-    public function register()
28
-    {
29
-        //
30
-    }
24
+	/**
25
+	 * Register any application services.
26
+	 */
27
+	public function register()
28
+	{
29
+		//
30
+	}
31 31
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function boot(Dispatcher $dispatcher)
16 16
     {
17
-        $dispatcher->mapUsing(function ($command) {
17
+        $dispatcher->mapUsing(function($command) {
18 18
             return Dispatcher::simpleMapping(
19 19
                 $command, 'PiFinder\Commands', 'PiFinder\Handlers\Commands'
20 20
             );
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,27 +7,27 @@
 block discarded – undo
7 7
 
8 8
 class EventServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * The event handler mappings for the application.
12
-     *
13
-     * @var array
14
-     */
15
-    protected $listen = [
16
-        'PiFinder\Events\ServerWasPoked' => [
17
-            'PiFinder\Handlers\Events\NotifyUsersAboutPoke',
18
-            'PiFinder\Handlers\Events\UpdateStatistics',
19
-        ],
20
-    ];
10
+	/**
11
+	 * The event handler mappings for the application.
12
+	 *
13
+	 * @var array
14
+	 */
15
+	protected $listen = [
16
+		'PiFinder\Events\ServerWasPoked' => [
17
+			'PiFinder\Handlers\Events\NotifyUsersAboutPoke',
18
+			'PiFinder\Handlers\Events\UpdateStatistics',
19
+		],
20
+	];
21 21
 
22
-    /**
23
-     * Register any other events for your application.
24
-     *
25
-     * @param \Illuminate\Contracts\Events\Dispatcher $events
26
-     */
27
-    public function boot(DispatcherContract $events)
28
-    {
29
-        parent::boot($events);
22
+	/**
23
+	 * Register any other events for your application.
24
+	 *
25
+	 * @param \Illuminate\Contracts\Events\Dispatcher $events
26
+	 */
27
+	public function boot(DispatcherContract $events)
28
+	{
29
+		parent::boot($events);
30 30
 
31
-        //
32
-    }
31
+		//
32
+	}
33 33
 }
Please login to merge, or discard this patch.
app/Providers/ObserverServiceProvider.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@
 block discarded – undo
7 7
 
8 8
 class ObserverServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Bootstrap the application services.
12
-     *
13
-     * @return void
14
-     */
15
-    public function boot()
16
-    {
17
-        Device::observe(app('PiFinder\Observers\DeviceObserver'));
18
-    }
10
+	/**
11
+	 * Bootstrap the application services.
12
+	 *
13
+	 * @return void
14
+	 */
15
+	public function boot()
16
+	{
17
+		Device::observe(app('PiFinder\Observers\DeviceObserver'));
18
+	}
19 19
 
20
-    /**
21
-     * Register the application services.
22
-     *
23
-     * @return void
24
-     */
25
-    public function register()
26
-    {
27
-        //
28
-    }
20
+	/**
21
+	 * Register the application services.
22
+	 *
23
+	 * @return void
24
+	 */
25
+	public function register()
26
+	{
27
+		//
28
+	}
29 29
 }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -7,36 +7,36 @@
 block discarded – undo
7 7
 
8 8
 class RouteServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * This namespace is applied to the controller routes in your routes file.
12
-     *
13
-     * In addition, it is set as the URL generator's root namespace.
14
-     *
15
-     * @var string
16
-     */
17
-    protected $namespace = 'PiFinder\Http\Controllers';
10
+	/**
11
+	 * This namespace is applied to the controller routes in your routes file.
12
+	 *
13
+	 * In addition, it is set as the URL generator's root namespace.
14
+	 *
15
+	 * @var string
16
+	 */
17
+	protected $namespace = 'PiFinder\Http\Controllers';
18 18
 
19
-    /**
20
-     * Define your route model bindings, pattern filters, etc.
21
-     *
22
-     * @param \Illuminate\Routing\Router $router
23
-     */
24
-    public function boot(Router $router)
25
-    {
26
-        parent::boot($router);
19
+	/**
20
+	 * Define your route model bindings, pattern filters, etc.
21
+	 *
22
+	 * @param \Illuminate\Routing\Router $router
23
+	 */
24
+	public function boot(Router $router)
25
+	{
26
+		parent::boot($router);
27 27
 
28
-        //
29
-    }
28
+		//
29
+	}
30 30
 
31
-    /**
32
-     * Define the routes for the application.
33
-     *
34
-     * @param \Illuminate\Routing\Router $router
35
-     */
36
-    public function map(Router $router)
37
-    {
38
-        $router->group(['namespace' => $this->namespace], function ($router) {
39
-            require app_path('Http/routes.php');
40
-        });
41
-    }
31
+	/**
32
+	 * Define the routes for the application.
33
+	 *
34
+	 * @param \Illuminate\Routing\Router $router
35
+	 */
36
+	public function map(Router $router)
37
+	{
38
+		$router->group(['namespace' => $this->namespace], function ($router) {
39
+			require app_path('Http/routes.php');
40
+		});
41
+	}
42 42
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function map(Router $router)
37 37
     {
38
-        $router->group(['namespace' => $this->namespace], function ($router) {
38
+        $router->group(['namespace' => $this->namespace], function($router) {
39 39
             require app_path('Http/routes.php');
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
app/Services/MarkdownParser.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -6,32 +6,32 @@
 block discarded – undo
6 6
 
7 7
 class MarkdownParser
8 8
 {
9
-    /**
10
-     * Markdown parser instance.
11
-     *
12
-     * @var ParsedownExtra
13
-     */
14
-    private $markdown;
9
+	/**
10
+	 * Markdown parser instance.
11
+	 *
12
+	 * @var ParsedownExtra
13
+	 */
14
+	private $markdown;
15 15
 
16
-    /**
17
-     * MarkdownParser constructor.
18
-     *
19
-     * @param ParsedownExtra $markdown
20
-     */
21
-    public function __construct(ParsedownExtra $markdown)
22
-    {
23
-        $this->markdown = $markdown;
24
-    }
16
+	/**
17
+	 * MarkdownParser constructor.
18
+	 *
19
+	 * @param ParsedownExtra $markdown
20
+	 */
21
+	public function __construct(ParsedownExtra $markdown)
22
+	{
23
+		$this->markdown = $markdown;
24
+	}
25 25
 
26
-    /**
27
-     * Parse a markdown document.
28
-     *
29
-     * @param $path
30
-     *
31
-     * @return mixed|string
32
-     */
33
-    public function parse($path)
34
-    {
35
-        return $this->markdown->text($path);
36
-    }
26
+	/**
27
+	 * Parse a markdown document.
28
+	 *
29
+	 * @param $path
30
+	 *
31
+	 * @return mixed|string
32
+	 */
33
+	public function parse($path)
34
+	{
35
+		return $this->markdown->text($path);
36
+	}
37 37
 }
Please login to merge, or discard this patch.
app/Services/Registrar.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -8,33 +8,33 @@
 block discarded – undo
8 8
 
9 9
 class Registrar implements RegistrarContract
10 10
 {
11
-    /**
12
-     * Get a validator for an incoming registration request.
13
-     *
14
-     * @param array $data
15
-     *
16
-     * @return \Illuminate\Contracts\Validation\Validator
17
-     */
18
-    public function validator(array $data)
19
-    {
20
-        return Validator::make($data, [
21
-            'email'    => 'required|email|max:255|unique:users',
22
-            'password' => 'required|confirmed|min:6',
23
-        ]);
24
-    }
11
+	/**
12
+	 * Get a validator for an incoming registration request.
13
+	 *
14
+	 * @param array $data
15
+	 *
16
+	 * @return \Illuminate\Contracts\Validation\Validator
17
+	 */
18
+	public function validator(array $data)
19
+	{
20
+		return Validator::make($data, [
21
+			'email'    => 'required|email|max:255|unique:users',
22
+			'password' => 'required|confirmed|min:6',
23
+		]);
24
+	}
25 25
 
26
-    /**
27
-     * Create a new user instance after a valid registration.
28
-     *
29
-     * @param array $data
30
-     *
31
-     * @return User
32
-     */
33
-    public function create(array $data)
34
-    {
35
-        return User::create([
36
-            'email'    => $data['email'],
37
-            'password' => bcrypt($data['password']),
38
-        ]);
39
-    }
26
+	/**
27
+	 * Create a new user instance after a valid registration.
28
+	 *
29
+	 * @param array $data
30
+	 *
31
+	 * @return User
32
+	 */
33
+	public function create(array $data)
34
+	{
35
+		return User::create([
36
+			'email'    => $data['email'],
37
+			'password' => bcrypt($data['password']),
38
+		]);
39
+	}
40 40
 }
Please login to merge, or discard this patch.