Completed
Push — master ( e55700...43f521 )
by Chase
15s queued 11s
created
src/Datadog/ExtensionTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
             return $data;
16 16
         }
17 17
 
18
-        $wrapped = [];
18
+        $wrapped = [ ];
19 19
         foreach ($data as $metric => $stat) {
20
-            $wrapped[$this->metricsPrefix . '.'. $metric] = $stat;
20
+            $wrapped[ $this->metricsPrefix . '.' . $metric ] = $stat;
21 21
         }
22 22
         return $wrapped;
23 23
     }
Please login to merge, or discard this patch.
src/LaravelDatadogHelperServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function register()
33 33
     {
34
-        $this->app->singleton('datadog', function () {
34
+        $this->app->singleton('datadog', function() {
35 35
             return $this->initDatadog();
36 36
         });
37 37
     }
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
         $laravelConfig = config('datadog-helper');
47 47
 
48 48
         $ddConfig = [
49
-            'host' => $laravelConfig['statsd_server'],
50
-            'port' => $laravelConfig['statsd_port'],
51
-            'socket_path' => $laravelConfig['statsd_socket_path'],
52
-            'datadog_host' => $laravelConfig['datadog_host'],
53
-            'api_key' => $laravelConfig['api_key'],
54
-            'app_key' => $laravelConfig['application_key'],
55
-            'global_tags' => $laravelConfig['global_tags'],
49
+            'host' => $laravelConfig[ 'statsd_server' ],
50
+            'port' => $laravelConfig[ 'statsd_port' ],
51
+            'socket_path' => $laravelConfig[ 'statsd_socket_path' ],
52
+            'datadog_host' => $laravelConfig[ 'datadog_host' ],
53
+            'api_key' => $laravelConfig[ 'api_key' ],
54
+            'app_key' => $laravelConfig[ 'application_key' ],
55
+            'global_tags' => $laravelConfig[ 'global_tags' ],
56 56
         ];
57 57
 
58
-        $maxBuffer = $laravelConfig['max_buffer_length'];
58
+        $maxBuffer = $laravelConfig[ 'max_buffer_length' ];
59 59
         if ($maxBuffer > 1) {
60 60
             $datadog = new BatchedDogStatsd($ddConfig);
61 61
             $datadog::$maxBufferLength = $maxBuffer;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $datadog = new DogStatsd($ddConfig);
64 64
         }
65 65
 
66
-        $datadog->setMetricsPrefix($laravelConfig['prefix']);
66
+        $datadog->setMetricsPrefix($laravelConfig[ 'prefix' ]);
67 67
 
68 68
         return $datadog;
69 69
     }
Please login to merge, or discard this patch.
config/datadog-helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     'statsd_socket_path' => null,
38 38
 
39
-    'global_tags' => [],
39
+    'global_tags' => [ ],
40 40
 
41 41
     'max_buffer_length' => 1,
42 42
 
Please login to merge, or discard this patch.
src/Middleware/LaravelDatadogMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         ];
45 45
 
46 46
         if (!config('datadog-helper.middleware_disable_url_tag', false)) {
47
-            $tags["url"] = $request->getSchemeAndHttpHost() . $request->getRequestUri();
47
+            $tags[ "url" ] = $request->getSchemeAndHttpHost() . $request->getRequestUri();
48 48
         }
49 49
 
50 50
         Datadog::microtiming('request_time', $duration, 1, $tags);
Please login to merge, or discard this patch.