Skip to content

Commit a6af39b

Browse files
committed
fixed CS
1 parent 7f8a5f1 commit a6af39b

26 files changed

+47
-55
lines changed

DataCollector/ConfigDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function collect(Request $request, Response $response, \Exception $except
7070
'wincache_enabled' => extension_loaded('wincache') && ini_get('wincache.ocenabled'),
7171
'zend_opcache_enabled' => extension_loaded('Zend OPcache') && ini_get('opcache.enable'),
7272
'bundles' => array(),
73-
'sapi_name' => php_sapi_name()
73+
'sapi_name' => php_sapi_name(),
7474
);
7575

7676
if (isset($this->kernel)) {

DataCollector/LoggerDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function collect(Request $request, Response $response, \Exception $except
4141
$this->data = array(
4242
'error_count' => $this->logger->countErrors(),
4343
'logs' => $this->sanitizeLogs($this->logger->getLogs()),
44-
'deprecation_count' => $this->computeDeprecationCount()
44+
'deprecation_count' => $this->computeDeprecationCount(),
4545
);
4646
}
4747
}

Debug/TraceableEventDispatcher.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private function getListenerInfo($listener, $eventId, $eventName)
277277
if ($listener instanceof \Closure) {
278278
$info += array(
279279
'type' => 'Closure',
280-
'pretty' => 'closure'
280+
'pretty' => 'closure',
281281
);
282282
} elseif (is_string($listener)) {
283283
try {
@@ -406,7 +406,8 @@ private function preDispatch($eventName, $eventId, Event $event)
406406
// which must be caught.
407407
try {
408408
$this->stopwatch->openSection($token);
409-
} catch (\LogicException $e) {}
409+
} catch (\LogicException $e) {
410+
}
410411
break;
411412
}
412413
}
@@ -432,7 +433,8 @@ private function postDispatch($eventName, $eventId, Event $event)
432433
// does not exist, then closing it throws an exception which must be caught.
433434
try {
434435
$this->stopwatch->stopSection($token);
435-
} catch (\LogicException $e) {}
436+
} catch (\LogicException $e) {
437+
}
436438
// The children profiles have been updated by the previous 'kernel.response'
437439
// event. Only the root profile need to be updated with the 'kernel.terminate'
438440
// timing information.

HttpCache/HttpCache.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ public function getKernel()
152152
return $this->kernel;
153153
}
154154

155-
156155
/**
157156
* Gets the Esi instance
158157
*

Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ protected function initializeBundles()
519519
array_pop($bundleMap);
520520
}
521521
}
522-
523522
}
524523

525524
/**

Profiler/BaseMemcacheProfilerStorage.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ public function find($ip, $url, $limit, $method, $start = null, $end = null)
5353
$result = array();
5454

5555
foreach ($profileList as $item) {
56-
5756
if ($limit === 0) {
5857
break;
5958
}
6059

61-
if ($item=='') {
60+
if ($item == '') {
6261
continue;
6362
}
6463

@@ -166,7 +165,6 @@ public function write(Profile $profile)
166165
$profileIndexed = false !== $this->getValue($this->getItemName($profile->getToken()));
167166

168167
if ($this->setValue($this->getItemName($profile->getToken()), $data, $this->lifetime)) {
169-
170168
if (!$profileIndexed) {
171169
// Add to index
172170
$indexName = $this->getIndexName();
@@ -304,5 +302,4 @@ private function isItemNameValid($name)
304302

305303
return true;
306304
}
307-
308305
}

Profiler/FileProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function find($ip, $url, $limit, $method, $start = null, $end = null)
7070
}
7171

7272
if (!empty($start) && $csvTime < $start) {
73-
continue;
73+
continue;
7474
}
7575

7676
if (!empty($end) && $csvTime > $end) {

Profiler/MemcacheProfilerStorage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ protected function appendValue($key, $value, $expiration = 0)
9191
$memcache = $this->getMemcache();
9292

9393
if (method_exists($memcache, 'append')) {
94-
9594
// Memcache v3.0
9695
if (!$result = $memcache->append($key, $value, false, $expiration)) {
9796
return $memcache->set($key, $value, false, $expiration);

Profiler/MongoDbProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function write(Profile $profile)
8282
'ip' => $profile->getIp(),
8383
'method' => $profile->getMethod(),
8484
'url' => $profile->getUrl(),
85-
'time' => $profile->getTime()
85+
'time' => $profile->getTime(),
8686
);
8787

8888
$result = $this->getMongo()->update(array('_id' => $profile->getToken()), array_filter($record, function ($v) { return !empty($v); }), array('upsert' => true));

Profiler/RedisProfilerStorage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ public function write(Profile $profile)
171171
$profileIndexed = false !== $this->getValue($this->getItemName($profile->getToken()));
172172

173173
if ($this->setValue($this->getItemName($profile->getToken()), $data, $this->lifetime, self::REDIS_SERIALIZER_PHP)) {
174-
175174
if (!$profileIndexed) {
176175
// Add to index
177176
$indexName = $this->getIndexName();

0 commit comments

Comments
 (0)