Skip to content

Commit 83c47f2

Browse files
author
Patrick Leckey
committed
fixed code style
1 parent 5bc1599 commit 83c47f2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/Intouch/LaravelNewrelic/Observers/NewrelicCountingObserver.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
*
55
* Date: 15-03-11
66
* Time: 8:55 AM
7-
*
8-
* @author pleckey
7+
*
8+
* @author pleckey
99
* @project laravel-newrelic
1010
*/
1111

1212
namespace Intouch\LaravelNewrelic\Observers;
1313

14-
15-
class NewrelicCountingObserver {
14+
class NewrelicCountingObserver
15+
{
1616

1717
/**
1818
* Custom Metric name
@@ -38,7 +38,7 @@ class NewrelicCountingObserver {
3838
* @param null $name
3939
* @param array $care
4040
*/
41-
public function __construct( $name = null, array $care = [] )
41+
public function __construct( $name = null, array $care = [ ] )
4242
{
4343
$this->name = $name;
4444
$this->care = $care ?: $this->care;
@@ -48,15 +48,17 @@ public function __construct( $name = null, array $care = [] )
4848
* Handle the observable events we get passed
4949
*
5050
* @param string $event
51-
* @param array $args
51+
* @param array $args
5252
*/
5353
public function __call( $event, array $args )
5454
{
5555
// ignore it if we don't care about this event
56-
if ( !in_array( $event, $this->care ) ) return;
56+
if (!in_array( $event, $this->care )) {
57+
return;
58+
}
5759

5860
$model = array_shift( $args );
59-
$name = 'Custom/Counts/' . ltrim( $this->name ?: get_class($model), '/' ) . '/' . $event;
61+
$name = 'Custom/Counts/' . ltrim( $this->name ?: get_class( $model ), '/' ) . '/' . $event;
6062

6163
/**
6264
* NewRelic assumes custom metrics to be in milliseconds, so 4 gets interpreted as

0 commit comments

Comments
 (0)