Completed
Push — develop ( 61da84...0442fa )
by Stan
02:23 queued 17s
created
src/Storage/RedisStorage.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@  discard block
 block discarded – undo
57 57
                 default:
58 58
                     return $this->samples($metric, $items);
59 59
             }
60
-        } catch (Exception $e) {
60
+        }
61
+        catch (Exception $e) {
61 62
             throw new StorageException("Failed to collect `{$key}` samples.", 0, $e);
62 63
         }
63 64
     }
@@ -73,7 +74,8 @@  discard block
 block discarded – undo
73 74
                 $this->labeled($metric, $labels)->toJson(),
74 75
                 $value
75 76
             );
76
-        } catch (Exception $e) {
77
+        }
78
+        catch (Exception $e) {
77 79
             $class = get_class($metric);
78 80
             $operation = __METHOD__;
79 81
 
@@ -110,7 +112,8 @@  discard block
 block discarded – undo
110 112
                 $this->redis->hsetnx($key, $field, $identifier);
111 113
                 $this->redis->rpush($identifier, $value);
112 114
             }
113
-        } catch (Exception $e) {
115
+        }
116
+        catch (Exception $e) {
114 117
             $class = get_class($metric);
115 118
 
116 119
             throw new StorageException("Failed to observe [$class] with a value of `$value`.", 0, $e);
@@ -128,7 +131,8 @@  discard block
 block discarded – undo
128 131
                 $this->labeled($gauge, $labels)->toJson(),
129 132
                 $value
130 133
             );
131
-        } catch (Exception $e) {
134
+        }
135
+        catch (Exception $e) {
132 136
             $class = get_class($gauge);
133 137
 
134 138
             throw new StorageException("Failed to set the value of [$class] to `$value`.", 0, $e);
Please login to merge, or discard this patch.
src/Storage/Concerns/StoresMetrics.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $actual = count($labels);
51 51
 
52 52
         if ($expected !== $actual) {
53
-            throw new LabelException("Expected {$expected} label values but only {$actual} were given.");
53
+            throw new LabelException("expected {$expected} label values but only {$actual} were given.");
54 54
         }
55 55
 
56 56
         return new Collection([
Please login to merge, or discard this patch.