Completed
Push — master ( 098840...8fdd0f )
by Ma
02:16
created
src/Monitor/Format/Xml.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Monitor/Model/Trigger.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Monitor/Notification/Service/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Notification/Trigger/Comparator/Strategy/ServicePercentageStrategy.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
     {
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
         }
Please login to merge, or discard this patch.