Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfabiocarneiro <fahecs@gmail.com>2015-05-27 12:56:17 +0300
committerfabiocarneiro <fahecs@gmail.com>2015-05-27 12:56:17 +0300
commita2a63d34ebb460174e1a3e8d8022fe3e3ab4b469 (patch)
treefbfc480352bc711bc03f12849824507e56b5034a /core/Profiler.php
parentb2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff)
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index e3bbfb47e3..c1b0875fa6 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -9,7 +9,6 @@
namespace Piwik;
use Exception;
-use Piwik\Container\StaticContainer;
use XHProfRuns_Default;
/**
@@ -228,7 +227,8 @@ class Profiler
}
if (!function_exists('xhprof_error')) {
- function xhprof_error($out) {
+ function xhprof_error($out)
+ {
echo substr($out, 0, 300) . '...';
}
}
@@ -245,7 +245,7 @@ class Profiler
xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
- register_shutdown_function(function () use($profilerNamespace, $mainRun) {
+ register_shutdown_function(function () use ($profilerNamespace, $mainRun) {
$xhprofData = xhprof_disable();
$xhprofRuns = new XHProfRuns_Default();
$runId = $xhprofRuns->save_run($xhprofData, $profilerNamespace);
@@ -324,13 +324,13 @@ class Profiler
public static function setProfilingRunIds($ids)
{
- file_put_contents( self::getPathToXHProfRunIds(), json_encode($ids) );
+ file_put_contents(self::getPathToXHProfRunIds(), json_encode($ids));
@chmod(self::getPathToXHProfRunIds(), 0777);
}
public static function getProfilingRunIds()
{
- $runIds = file_get_contents( self::getPathToXHProfRunIds() );
+ $runIds = file_get_contents(self::getPathToXHProfRunIds());
$array = json_decode($runIds, $assoc = true);
if (!is_array($array)) {
$array = array();