@@ -13,11 +13,11 @@ |
||
13 | 13 | public function convertToArray($data) |
14 | 14 | { |
15 | 15 | $xml = simplexml_load_string($data); |
16 | - if (! $xml) { |
|
16 | + if (!$xml) { |
|
17 | 17 | throw new \Exception('Cant\'t parse xml'); |
18 | 18 | } |
19 | 19 | $array = json_decode(json_encode((array) $xml), true); |
20 | - if (! is_array($array)) { |
|
20 | + if (!is_array($array)) { |
|
21 | 21 | $array = []; |
22 | 22 | } |
23 | 23 | return $array; |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | private $id; |
13 | 13 | /** |
14 | 14 | * @Column(type="integer") |
15 | - **/ |
|
15 | + **/ |
|
16 | 16 | private $notification_id; |
17 | 17 | /** |
18 | 18 | * @Column(type="integer") |
@@ -20,19 +20,19 @@ discard block |
||
20 | 20 | private $value; |
21 | 21 | /** |
22 | 22 | * @Column(type="string") |
23 | - **/ |
|
23 | + **/ |
|
24 | 24 | private $name; |
25 | 25 | /** |
26 | 26 | * @Column(type="string") |
27 | - **/ |
|
27 | + **/ |
|
28 | 28 | private $serviceName; |
29 | 29 | /** |
30 | 30 | * @Column(type="string") |
31 | - **/ |
|
31 | + **/ |
|
32 | 32 | private $operator; |
33 | 33 | /** |
34 | 34 | * @Column(type="string") |
35 | - **/ |
|
35 | + **/ |
|
36 | 36 | private $type; |
37 | 37 | |
38 | 38 | /** |
@@ -7,7 +7,7 @@ |
||
7 | 7 | public function getService($className) |
8 | 8 | { |
9 | 9 | $className = __NAMESPACE__.'\\'.$className; |
10 | - if (! class_exists($className)) { |
|
10 | + if (!class_exists($className)) { |
|
11 | 11 | throw new \Exception($className.' Service class not found'); |
12 | 12 | } |
13 | 13 | return new $className; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $service = $serviceRepository->findOneBy(['name' => $trigger->getServiceName()]); |
13 | 13 | |
14 | - if (! $service) { |
|
14 | + if (!$service) { |
|
15 | 15 | //$log->error('cant find service') |
16 | 16 | return false; |
17 | 17 | } |