Skip to content

Commit

Permalink
Remove usage space
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanhoekelen committed Jul 17, 2017
1 parent 74fb9cd commit 4d1495d
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 31 deletions.
2 changes: 0 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,4 @@ public static function instanceReset()
{
self::$config = null;
}


}
7 changes: 1 addition & 6 deletions src/Lib/Handlers/ConfigHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getAllItemNames()
private function setDefaultTimeZone()
{
// Check date function
if( ! ini_get('date.timezone') )
if( ! ini_get('date.timezone'))
date_default_timezone_set('UTC');
}

Expand Down Expand Up @@ -255,9 +255,4 @@ public function isRunInformation()
{
return $this->runInformation;
}





}
5 changes: 1 addition & 4 deletions src/Lib/Handlers/ExportHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function toJson()
$points[] = $point->export();
}


if($multiExport)
$return['points'] = $points;
else
Expand All @@ -104,6 +103,4 @@ public function toJson()
// Return
return json_encode($return);
}

}

}
2 changes: 0 additions & 2 deletions src/Lib/Handlers/PerformanceHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,5 @@ private function checkAndSetMessageInToLabel(Point $point)

// Reset
$this->messageToLabel = '';

}

}
2 changes: 0 additions & 2 deletions src/Lib/Holders/CalculateTotalHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ public function __construct($totalTime, $totalMemory, $totalMemoryPeak)
$this->totalMemory = $totalMemory;
$this->totalMemoryPeak = $totalMemoryPeak;
}


}
2 changes: 0 additions & 2 deletions src/Lib/Holders/InformationHolder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php namespace Performance\Lib\Holders;


use Performance\Lib\Handlers\ConfigHandler;

class InformationHolder
Expand Down Expand Up @@ -52,7 +51,6 @@ private function setRunInformation()
$this->currentUser = '?';
$this->currentProcessId = '?';


// Set current user
try{
$this->currentUser = get_current_user();
Expand Down
2 changes: 0 additions & 2 deletions src/Lib/Point.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class Point implements ExportInterface
const POINT_CALIBRATE = 'Calibrate point';

private $config;

private $active;
private $label;
private $startTime;
Expand Down Expand Up @@ -266,5 +265,4 @@ public function addNewLineMessage($newLineMessage)
{
$this->newLineMessage[] = $newLineMessage;
}

}
3 changes: 1 addition & 2 deletions src/Lib/Presenters/Calculate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Performance\Lib\Holders\CalculateTotalHolder;


class Calculate
{
/*
Expand All @@ -21,7 +20,7 @@ public function totalTimeAndMemory($pointStack)
$max_memory += $point->getDifferenceMemory();
}

return new CalculateTotalHolder($max_time, $max_memory, memory_get_peak_usage(true));;
return new CalculateTotalHolder($max_time, $max_memory, memory_get_peak_usage(true));
}

/*
Expand Down
2 changes: 0 additions & 2 deletions src/Lib/Presenters/ConsolePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,10 @@ private function clearScreen()
private function printPointNewLineMessage(Point $point)
{
if(count($point->getNewLineMessage()))
{
foreach ($point->getNewLineMessage() as $message)
{
$this->printMessage($message);
}
}
}

public function printMessage($message = null, $time = '-- ', $memory = '-- ', $peak = '-- ')
Expand Down
4 changes: 1 addition & 3 deletions src/Lib/Presenters/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

class Formatter {

public function __construct()
{
}
public function __construct(){}

public function timeToHuman($microTime, $unit = 'auto', $decimals = 2)
{
Expand Down
6 changes: 2 additions & 4 deletions src/Lib/Presenters/WebPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@

class WebPresenter extends Presenter
{
public function bootstrap()
{}
public function bootstrap(){}

public function finishPointTrigger(Point $point)
{}
public function finishPointTrigger(Point $point){}

public function displayResultsTrigger($pointStack)
{
Expand Down

0 comments on commit 4d1495d

Please sign in to comment.