Skip to content

Commit

Permalink
New template set for cs/ci support
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Nov 1, 2011
1 parent 30c1c1e commit d874c59
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions src/templates/cs/default.php.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
// @codingStandardsIgnoreFile
// @codeCoverageIgnoreStart
// this is an autogenerated file - do not edit
spl_autoload_register(
function($class) {
static $classes = null;
if ($classes === null) {
$classes = array(
___CLASSLIST___
);
}
if (isset($classes[$class])) {
require ___BASEDIR___$classes[$class];
}
}
);
// @codeCoverageIgnoreEnd
15 changes: 15 additions & 0 deletions src/templates/cs/phar.php.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
spl_autoload_register(
function($class) {
static $classes = null;
if ($classes === null) {
$classes = array(
___CLASSLIST___
);
}
if (isset($classes[$class])) {
require 'phar://___PHAR___' . $classes[$class];
}
}
);
__HALT_COMPILER();
17 changes: 17 additions & 0 deletions src/templates/cs/php52.php.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
// @codingStandardsIgnoreFile
// @codeCoverageIgnoreStart
// this is an autogenerated file - do not edit
function ___AUTOLOAD___($class) {
static $classes = null;
if ($classes === null) {
$classes = array(
___CLASSLIST___
);
}
if (isset($classes[$class])) {
require ___BASEDIR___$classes[$class];
}
}
spl_autoload_register('___AUTOLOAD___');
// @codeCoverageIgnoreEnd

0 comments on commit d874c59

Please sign in to comment.