Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Remove require() and require_once()
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Dec 10, 2014
1 parent ec9de3d commit 255a6c1
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 45 deletions.
1 change: 0 additions & 1 deletion CodeIgniterTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require_once('PerfTarget.php');

final class CodeIgniterTarget extends PerfTarget {
public function __construct(
Expand Down
2 changes: 0 additions & 2 deletions DatabaseInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
*/

require_once('PerfOptions.php');
require_once('Utils.php');

final class DatabaseInstaller {
private ?string $databaseName;
Expand Down
2 changes: 0 additions & 2 deletions Drupal7Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
*/

require_once('DatabaseInstaller.php');
require_once('PerfTarget.php');

final class Drupal7Target extends PerfTarget {
public function __construct(
Expand Down
1 change: 0 additions & 1 deletion FibonacciTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require_once('PerfTarget.php');

final class FibonacciTarget extends PerfTarget {
public function getSanityCheckPath(): string {
Expand Down
4 changes: 0 additions & 4 deletions HHVMDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
*
*/

require_once('PerfOptions.php');
require_once('PerfSettings.php');
require_once('PHPEngine.php');
require_once('Process.php');

final class HHVMDaemon extends PHPEngine {
private PerfTarget $target;
Expand Down
1 change: 0 additions & 1 deletion HelloWorldTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require_once('PerfTarget.php');

final class HelloWorldTarget extends PerfTarget {
public function getSanityCheckPath(): string {
Expand Down
1 change: 0 additions & 1 deletion LaravelTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require_once('PerfTarget.php');

final class LaravelTarget extends PerfTarget {
public function __construct(
Expand Down
2 changes: 0 additions & 2 deletions Magento1Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
*/

require_once('DatabaseInstaller.php');
require_once('PerfTarget.php');

final class Magento1Target extends PerfTarget {
private DatabaseInstaller $installer;
Expand Down
3 changes: 0 additions & 3 deletions NginxDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*
*/

require_once('PerfOptions.php');
require_once('PerfSettings.php');
require_once('Process.php');

final class NginxDaemon extends Process {

Expand Down
3 changes: 0 additions & 3 deletions PHP5Daemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*
*/

require_once('PerfOptions.php');
require_once('PerfSettings.php');
require_once('PHPEngine.php');

final class PHP5Daemon extends PHPEngine {
private PerfTarget $target;
Expand Down
1 change: 0 additions & 1 deletion PHPEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require('Process.php');

abstract class PHPEngine extends Process {
}
8 changes: 0 additions & 8 deletions PerfOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
*
*/

require_once('CodeIgniterTarget.php');
require_once('Drupal7Target.php');
require_once('FibonacciTarget.php');
require_once('HelloWorldTarget.php');
require_once('LaravelTarget.php');
require_once('SugarCRMTarget.php');
require_once('WordpressTarget.php');
require_once('Magento1Target.php');

final class PerfOptions {
public bool $help;
Expand Down
1 change: 0 additions & 1 deletion PerfTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require_once('Utils.php');

abstract class PerfTarget {
public function install(): void { }
Expand Down
5 changes: 0 additions & 5 deletions Siege.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
*
*/

require_once('PerfOptions.php');
require_once('PerfSettings.php');
require_once('Process.php');
require_once('RequestMode.php');
require_once('SiegeStats.php');

final class Siege extends Process {
use SiegeStats;
Expand Down
1 change: 0 additions & 1 deletion SiegeStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

require('SiegeFields.php');

trait SiegeStats {
abstract protected function getLogFilePath(): string;
Expand Down
2 changes: 0 additions & 2 deletions SugarCRMTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
*/

require_once('DatabaseInstaller.php');
require_once('PerfTarget.php');

final class SugarCRMTarget extends PerfTarget {
public function __construct(
Expand Down
2 changes: 0 additions & 2 deletions WordpressTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
*/

require_once('DatabaseInstaller.php');
require_once('PerfTarget.php');

final class WordpressTarget extends PerfTarget {

Expand Down
5 changes: 0 additions & 5 deletions perf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
*
*/

require_once('HHVMDaemon.php');
require_once('PHP5Daemon.php');
require_once('NginxDaemon.php');
require_once('PerfOptions.php');
require_once('Siege.php');

function check_cpufreq(): void {
$sys_cpu_root = '/sys/devices/system/cpu';
Expand Down

0 comments on commit 255a6c1

Please sign in to comment.