Completed
Pull Request — master (#37)
by Manuel
14:12 queued 03:33
created
app/Device.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function scopeOnHomePage($query)
12 12
     {
13 13
         return $query->where('public', 'true')
14
-                     ->orWhere(function ($query) {
14
+                     ->orWhere(function($query) {
15 15
                          $query->where('public', 'auto')
16 16
                                ->whereNull('group');
17 17
                      });
Please login to merge, or discard this patch.
app/Http/Requests/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function validateMac()
17 17
     {
18
-        app('validator')->extend('mac', function ($attribute, $value, $parameters) {
18
+        app('validator')->extend('mac', function($attribute, $value, $parameters) {
19 19
             return preg_match('/^(([0-9a-fA-F]{2}-){5}|([0-9a-fA-F]{2}:){5})[0-9a-fA-F]{2}$/', $value);
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
app/Services/Statistics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $colors = ['rgb(23,103,153)', 'rgb(47,135,176)', 'rgb(66,164,187)', 'rgb(91,192,196)'];
61 61
         $highlight_colors = ['#8BB3CC', '#97C3D7', '#ADDFE1', '#BBEAE3'];
62 62
 
63
-        return $data->each(function ($network, $i) use ($colors, $highlight_colors) {
63
+        return $data->each(function($network, $i) use ($colors, $highlight_colors) {
64 64
             $network->color = $colors[$i];
65 65
             $network->highlight = $highlight_colors[$i];
66 66
         });
Please login to merge, or discard this patch.
app/Console/Commands/UserCreate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
53 53
         $password = $this->option('password');
54 54
         $password_confirmation = $this->option('password_confirmation');
55 55
 
56
-        if (! $password) {
56
+        if (!$password) {
57 57
             $password = $this->secret('What password should the user have?');
58 58
         }
59 59
 
60
-        if (! $password_confirmation) {
60
+        if (!$password_confirmation) {
61 61
             $password_confirmation = $this->secret('Please confirm the password.');
62 62
         }
63 63
 
Please login to merge, or discard this patch.
app/Http/Controllers/Api/DeviceController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $device = Device::find($id);
68 68
 
69
-        if (! $device) {
69
+        if (!$device) {
70 70
             return $this->respondNotFound('Did not find the device you are looking for!');
71 71
         }
72 72
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $device = Device::find($id);
89 89
 
90
-        if (! $device) {
90
+        if (!$device) {
91 91
             return $this->respondNotFound('Did not find the device you are looking for!');
92 92
         }
93 93
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $device = Device::find($id);
113 113
 
114
-        if (! $device) {
114
+        if (!$device) {
115 115
             return $this->respondNotFound('Did not find the device you are looking for!');
116 116
         }
117 117
 
Please login to merge, or discard this patch.
app/Http/Controllers/WelcomeController.php 1 patch
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.
app/Providers/BusServiceProvider.php 1 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,
20 20
                 \PiFinder\Commands::class,
Please login to merge, or discard this patch.
app/Http/Middleware/RemoveChartsFromHttp2ServerPush.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $this->response = $next($request);
20 20
 
21
-        if ($this->shouldUseServerPush($request) && ! $request->is('stats')) {
22
-            app('server-push')->resources = collect(app('server-push')->resources)->reject(function ($resource) {
21
+        if ($this->shouldUseServerPush($request) && !$request->is('stats')) {
22
+            app('server-push')->resources = collect(app('server-push')->resources)->reject(function($resource) {
23 23
                 return str_contains($resource['path'], '/js/charts.');
24 24
             })->toArray();
25 25
         }
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
      */
35 35
     protected function shouldUseServerPush(Request $request) : bool
36 36
     {
37
-        return ! $request->ajax();
37
+        return !$request->ajax();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.