@@ -122,30 +122,30 @@ private function calculateStatistics()
122122 );
123123 /** @var TraceableAdapterEvent $call */
124124 foreach ($ calls as $ call ) {
125- $ statistics [$ name ]['calls ' ] += 1 ;
125+ ++ $ statistics [$ name ]['calls ' ];
126126 $ statistics [$ name ]['time ' ] += $ call ->end - $ call ->start ;
127127 if ('getItem ' === $ call ->name ) {
128- $ statistics [$ name ]['reads ' ] += 1 ;
128+ ++ $ statistics [$ name ]['reads ' ];
129129 if ($ call ->hits ) {
130- $ statistics [$ name ]['hits ' ] += 1 ;
130+ ++ $ statistics [$ name ]['hits ' ];
131131 } else {
132- $ statistics [$ name ]['misses ' ] += 1 ;
132+ ++ $ statistics [$ name ]['misses ' ];
133133 }
9E88
134134 } elseif ('getItems ' === $ call ->name ) {
135135 $ statistics [$ name ]['reads ' ] += $ call ->hits + $ call ->misses ;
136136 $ statistics [$ name ]['hits ' ] += $ call ->hits ;
137137 $ statistics [$ name ]['misses ' ] += $ call ->misses ;
138138 } elseif ('hasItem ' === $ call ->name ) {
139- $ statistics [$ name ]['reads ' ] += 1 ;
139+ ++ $ statistics [$ name ]['reads ' ];
140140 if (false === $ call ->result ) {
141- $ statistics [$ name ]['misses ' ] += 1 ;
141+ ++ $ statistics [$ name ]['misses ' ];
142142 } else {
143- $ statistics [$ name ]['hits ' ] += 1 ;
143+ ++ $ statistics [$ name ]['hits ' ];
144144 }
145145 } elseif ('save ' === $ call ->name ) {
146- $ statistics [$ name ]['writes ' ] += 1 ;
146+ ++ $ statistics [$ name ]['writes ' ];
147147 } elseif ('deleteItem ' === $ call ->name ) {
148- $ statistics [$ name ]['deletes ' ] += 1 ;
148+ ++ $ statistics [$ name ]['deletes ' ];
149149 }
150150 }
151151 if ($ statistics [$ name ]['reads ' ]) {
0 commit comments