Passed
Push — develop ( a04cc9...1754ec )
by Stan
02:08
created
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.
src/Storage/StorageManager.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,8 @@  discard block
 block discarded – undo
64 64
                 default:
65 65
                     return $this->samples($metric, $items);
66 66
             }
67
-        } catch (Exception $e) {
67
+        }
68
+        catch (Exception $e) {
68 69
             $class = get_class($metric);
69 70
 
70 71
             throw new StorageException("Failed to collect the samples of [$class]: {$e}", 0, $e);
@@ -83,7 +84,8 @@  discard block
 block discarded – undo
83 84
                 $this->labeled($metric, $labels)->toJson(),
84 85
                 $value
85 86
             );
86
-        } catch (Exception $e) {
87
+        }
88
+        catch (Exception $e) {
87 89
             $class = get_class($metric);
88 90
 
89 91
             throw new StorageException("Failed to increment [$class] by `$value`: {$e}", 0, $e);
@@ -101,7 +103,8 @@  discard block
 block discarded – undo
101 103
                 $this->labeled($metric, $labels)->toJson(),
102 104
                 $value
103 105
             );
104
-        } catch (Exception $e) {
106
+        }
107
+        catch (Exception $e) {
105 108
             $class = get_class($metric);
106 109
 
107 110
             throw new StorageException("Failed to decrement [$class] by `$value`: {$e}", 0, $e);
@@ -129,7 +132,8 @@  discard block
 block discarded – undo
129 132
                 $this->repository->set($key, $field, $identifier, false);
130 133
                 $this->repository->push($identifier, $value);
131 134
             }
132
-        } catch (Exception $e) {
135
+        }
136
+        catch (Exception $e) {
133 137
             $class = get_class($metric);
134 138
 
135 139
             throw new StorageException("Failed to observe [$class] with `$value`: {$e}", 0, $e);
@@ -147,7 +151,8 @@  discard block
 block discarded – undo
147 151
                 $this->labeled($gauge, $labels)->toJson(),
148 152
                 $value
149 153
             );
150
-        } catch (Exception $e) {
154
+        }
155
+        catch (Exception $e) {
151 156
             $class = get_class($gauge);
152 157
 
153 158
             throw new StorageException("Failed to set the value of [$class] to `$value`: {$e}", 0, $e);
Please login to merge, or discard this patch.