Completed
Push — master ( 2402a0...52ee14 )
by Manuel
08:57
created
app/Services/Statistics.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace PiFinder\Services;
4 4
 
5
-use Carbon\Carbon;
6 5
 use DB;
7 6
 use PiFinder\DeviceArchive;
8 7
 use PiFinder\Poke;
Please login to merge, or discard this 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/Utilities/ExtractNetwork.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@
 block discarded – undo
13 13
      */
14 14
     public static function fromIp($ip)
15 15
     {
16
-        if(starts_with($ip, '192.168.')) {
16
+        if (starts_with($ip, '192.168.')) {
17 17
             return '192.168.0.0/16';
18 18
         }
19 19
 
20
-        if(starts_with($ip, '10.')) {
20
+        if (starts_with($ip, '10.')) {
21 21
             return '10.0.0.0/8';
22 22
         }
23 23
 
24
-        if(preg_match('/^172\.(1[6-9]|2[0-9]|3[01])\./', $ip)) {
24
+        if (preg_match('/^172\.(1[6-9]|2[0-9]|3[01])\./', $ip)) {
25 25
             return '172.16.0.0/12';
26 26
         }
27 27
 
Please login to merge, or discard this patch.