Converted tabs to spaces.
This commit is contained in:
parent
3e08d173a1
commit
617eb21614
60 changed files with 9220 additions and 9277 deletions
|
@ -51,4 +51,3 @@ class API_AYAH
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -46,4 +46,3 @@ class API_Google_Profanity
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -96,4 +96,3 @@ class API_Gravatar
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -104,4 +104,3 @@ class API_PlaceholdIt extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -285,4 +285,3 @@ class Browser extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -220,4 +220,3 @@ class Cache extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -253,4 +253,3 @@ class Config extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -54,7 +54,10 @@ class Controller extends Object
|
|||
{
|
||||
echo '
|
||||
<h1>Down for Maintenance</h1>
|
||||
<p>' . $_SERVER['SERVER_NAME'] . ' is currently down for maintenance. Please check back in a few minutes.</p>
|
||||
<p>
|
||||
' . $_SERVER['SERVER_NAME'] . ' is currently down for maintenance.
|
||||
Please check back in a few minutes.
|
||||
</p>
|
||||
<p>Additionally, a custom maintenance template was not found.</p>
|
||||
<hr>
|
||||
<em>Powered by <a href="https://github.com/joshtronic/pickles">PICKLES</a></em>
|
||||
|
@ -415,4 +418,3 @@ class Controller extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -120,4 +120,3 @@ class Convert
|
|||
// }}}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -418,4 +418,3 @@ class Database extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -38,4 +38,3 @@ class Date
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -174,7 +174,8 @@ class Display extends Object
|
|||
{
|
||||
if ($return_json)
|
||||
{
|
||||
echo json_encode($this->module, isset($_REQUEST['pretty']) ? JSON_PRETTY_PRINT : false);
|
||||
$pretty = isset($_REQUEST['pretty']) ? JSON_PRETTY_PRINT : false;
|
||||
echo json_encode($this->module, $pretty);
|
||||
}
|
||||
elseif ($return_xml)
|
||||
{
|
||||
|
@ -201,4 +202,3 @@ class Display extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -141,4 +141,3 @@ class Distance
|
|||
// }}}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -264,4 +264,3 @@ class Dynamic extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -71,4 +71,3 @@ class File
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -670,4 +670,3 @@ class Form extends Object
|
|||
// }}}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -146,4 +146,3 @@ class HTML extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -149,4 +149,3 @@ class Log
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -1558,4 +1558,3 @@ class Model extends Object
|
|||
// }}}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -291,4 +291,3 @@ class Module extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -68,4 +68,3 @@ class Number
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -147,4 +147,3 @@ class Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -317,23 +317,23 @@ class Profiler
|
|||
<tr>
|
||||
<td style="text-align:center;background:#480000">
|
||||
<span style="font-weight:bold;">Console</span>
|
||||
<div style="color:#ff7f7f;font-size:1.2em;padding-top:10px"><?php echo $logs; ?></div>
|
||||
<div style="color:#ff7f7f;font-size:1.2em;padding-top:10px"><?= $logs; ?></div>
|
||||
</td>
|
||||
<td style="text-align:center;background:#552200">
|
||||
<span style="font-weight:bold;">Load Time</span>
|
||||
<div style="color:#ffa366;font-size:1.2em;padding-top:10px"><?php echo number_format($duration * 100, 3) . ' ms / ' . ini_get('max_execution_time'); ?></div>
|
||||
<div style="color:#ffa366;font-size:1.2em;padding-top:10px"><?= number_format($duration * 100, 3) . ' ms / ' . ini_get('max_execution_time'); ?></div>
|
||||
</td>
|
||||
<td style="text-align:center;background:#545500">
|
||||
<span style="font-weight:bold;">Memory Usage</span>
|
||||
<div style="color:#ffff6d;font-size:1.2em;padding-top:10px"><?php echo $peak_usage . ' / ' . ini_get('memory_limit'); ?></div>
|
||||
<div style="color:#ffff6d;font-size:1.2em;padding-top:10px"><?= $peak_usage . ' / ' . ini_get('memory_limit'); ?></div>
|
||||
</td>
|
||||
<td style="text-align:center;background:#004200">
|
||||
<span style="font-weight:bold;">Database</span>
|
||||
<div style="color:#7dff7d;font-size:1.2em;padding-top:10px"><?php echo $queries; ?></div>
|
||||
<div style="color:#7dff7d;font-size:1.2em;padding-top:10px"><?= $queries; ?></div>
|
||||
</td>
|
||||
<td style="text-align:center;background:#000048">
|
||||
<span style="font-weight:bold;">Includes</span>
|
||||
<div style="color:#c4c4ff;font-size:1.2em;padding-top:10px"><?php echo $files; ?></div>
|
||||
<div style="color:#c4c4ff;font-size:1.2em;padding-top:10px"><?= $files; ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -348,10 +348,10 @@ class Profiler
|
|||
{
|
||||
?>
|
||||
<tr>
|
||||
<td style="font-weight:bold;color:#999"><?php echo $entry['type']; ?></td>
|
||||
<td><?php echo $entry['log']; ?></td>
|
||||
<td style="text-align:right" nowrap="nowrap"><?php echo self::formatSize($entry['memory']); ?></td>
|
||||
<td style="text-align:right" nowrap="nowrap"><?php echo number_format($entry['elapsed'] * 100, 3); ?> ms</td>
|
||||
<td style="font-weight:bold;color:#999"><?= $entry['type']; ?></td>
|
||||
<td><?= $entry['log']; ?></td>
|
||||
<td style="text-align:right" nowrap="nowrap"><?= self::formatSize($entry['memory']); ?></td>
|
||||
<td style="text-align:right" nowrap="nowrap"><?= number_format($entry['elapsed'] * 100, 3); ?> ms</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -387,4 +387,3 @@ class Profiler
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -340,4 +340,3 @@ class Security
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -123,4 +123,3 @@ class Session extends Object
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -69,4 +69,3 @@ class Sort
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -263,4 +263,3 @@ class String
|
|||
// }}}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -273,4 +273,3 @@ class Time
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -173,4 +173,3 @@ class Validate
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -163,4 +163,3 @@ if (!isset($_REQUEST['request']))
|
|||
|
||||
// }}}
|
||||
|
||||
?>
|
||||
|
|
|
@ -57,4 +57,3 @@ function setUpConfig($config)
|
|||
`mysql -e 'TRUNCATE TABLE test.users;'`;
|
||||
`echo 'flush_all' | nc localhost 11211`;
|
||||
|
||||
?>
|
||||
|
|
|
@ -38,4 +38,3 @@ class API_AYAHTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -39,4 +39,3 @@ class API_Google_ProfanityTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -95,4 +95,3 @@ class API_Gravatar_Test extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -65,4 +65,3 @@ class API_PlaceholdIt_Test extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -103,4 +103,3 @@ class BrowserTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -85,4 +85,3 @@ class CacheTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -159,4 +159,3 @@ class ConfigTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -14,7 +14,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
setUpRequest('home');
|
||||
|
||||
$module = '<?php class home extends Module { } ?>';
|
||||
$module = '<?php class home extends Module { }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'home.php', $module);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('secure');
|
||||
|
||||
$module = '<?php class secure extends Module { public $secure = true; } ?>';
|
||||
$module = '<?php class secure extends Module { public $secure = true; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'secure.php', $module);
|
||||
|
||||
|
@ -84,7 +84,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
setUpRequest('insecure');
|
||||
$_SERVER['HTTPS'] = 'on';
|
||||
|
||||
$module = '<?php class insecure extends Module { public $secure = false; } ?>';
|
||||
$module = '<?php class insecure extends Module { public $secure = false; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'insecure.php', $module);
|
||||
|
||||
|
@ -97,7 +97,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('notauth');
|
||||
|
||||
$module = '<?php class notauth extends Module { public $security = SECURITY_LEVEL_USER; } ?>';
|
||||
$module = '<?php class notauth extends Module { public $security = SECURITY_LEVEL_USER; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'notauth.php', $module);
|
||||
|
||||
|
@ -113,7 +113,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('securityarray');
|
||||
|
||||
$module = '<?php class securityarray extends Module { public $security = [SECURITY_LEVEL_USER, SECURITY_LEVEL_ADMIN]; } ?>';
|
||||
$module = '<?php class securityarray extends Module { public $security = [SECURITY_LEVEL_USER, SECURITY_LEVEL_ADMIN]; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'securityarray.php', $module);
|
||||
|
||||
|
@ -129,7 +129,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('securityarraytypestring');
|
||||
|
||||
$module = '<?php class securityarraytypestring extends Module { public $security = ["type" => "IS", "level" => SECURITY_LEVEL_USER]; } ?>';
|
||||
$module = '<?php class securityarraytypestring extends Module { public $security = ["type" => "IS", "level" => SECURITY_LEVEL_USER]; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'securityarraytypestring.php', $module);
|
||||
|
||||
|
@ -145,7 +145,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('securityarraytypearray');
|
||||
|
||||
$module = '<?php class securityarraytypearray extends Module { public $security = ["type" => "IS", "level" => [SECURITY_LEVEL_USER, SECURITY_LEVEL_ADMIN]]; } ?>';
|
||||
$module = '<?php class securityarraytypearray extends Module { public $security = ["type" => "IS", "level" => [SECURITY_LEVEL_USER, SECURITY_LEVEL_ADMIN]]; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'securityarraytypearray.php', $module);
|
||||
|
||||
|
@ -161,7 +161,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('securityarraytypebetween');
|
||||
|
||||
$module = '<?php class securityarraytypebetween extends Module { public $security = ["type" => "BETWEEN", "levels" => [SECURITY_LEVEL_USER, SECURITY_LEVEL_ADMIN]]; } ?>';
|
||||
$module = '<?php class securityarraytypebetween extends Module { public $security = ["type" => "BETWEEN", "levels" => [SECURITY_LEVEL_USER, SECURITY_LEVEL_ADMIN]]; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'securityarraytypebetween.php', $module);
|
||||
|
||||
|
@ -177,7 +177,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('securityarraytypehas');
|
||||
|
||||
$module = '<?php class securityarraytypehas extends Module { public $security = ["type" => "HAS", "level" => SECURITY_LEVEL_USER]; } ?>';
|
||||
$module = '<?php class securityarraytypehas extends Module { public $security = ["type" => "HAS", "level" => SECURITY_LEVEL_USER]; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'securityarraytypehas.php', $module);
|
||||
|
||||
|
@ -193,7 +193,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
setUpRequest('notauthpost', 'POST');
|
||||
|
||||
$module = '<?php class notauthpost extends Module { public $security = SECURITY_LEVEL_USER; } ?>';
|
||||
$module = '<?php class notauthpost extends Module { public $security = SECURITY_LEVEL_USER; }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'notauthpost.php', $module);
|
||||
|
||||
|
@ -209,7 +209,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
$module = '<?php class auth extends Module { '
|
||||
. 'public $security = SECURITY_LEVEL_USER;'
|
||||
. 'public function __default() { return ["foo" => "bar"]; }'
|
||||
. '} ?>';
|
||||
. '}';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'auth.php', $module);
|
||||
|
||||
|
@ -227,7 +227,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
. 'public $security = SECURITY_LEVEL_USER;'
|
||||
. 'public function __default() { return ["foo" => "bar"]; }'
|
||||
. 'public function __default_USER() { return ["user" => "me"]; }'
|
||||
. '} ?>';
|
||||
. '}';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'rolemethod.php', $module);
|
||||
|
||||
|
@ -244,7 +244,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
$module = '<?php class validrequestmethod extends Module { '
|
||||
. 'public $method = "GET";'
|
||||
. 'public function __default() { return ["foo" => "bar"]; }'
|
||||
. '} ?>';
|
||||
. '}';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'validrequestmethod.php', $module);
|
||||
|
||||
|
@ -260,7 +260,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
$module = '<?php class invalidrequestmethod extends Module { '
|
||||
. 'public $method = "POST";'
|
||||
. 'public function __default() { return ["foo" => "bar"]; }'
|
||||
. '} ?>';
|
||||
. '}';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'invalidrequestmethod.php', $module);
|
||||
|
||||
|
@ -276,7 +276,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
$module = '<?php class validationerrors extends Module { '
|
||||
. 'public $validate = ["test"];'
|
||||
. 'public function __default() { return ["foo" => "bar"]; }'
|
||||
. '} ?>';
|
||||
. '}';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'validationerrors.php', $module);
|
||||
|
||||
|
@ -322,7 +322,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
setUpRequest('validtemplates');
|
||||
|
||||
$module = '<?php class validtemplates extends Module { } ?>';
|
||||
$module = '<?php class validtemplates extends Module { }';
|
||||
|
||||
file_put_contents(SITE_MODULE_PATH . 'validtemplates.php', $module);
|
||||
|
||||
|
@ -356,4 +356,3 @@ HTML;
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -25,4 +25,3 @@ class ConvertTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -191,4 +191,3 @@ class DatabaseTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -27,4 +27,3 @@ class DateTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -130,4 +130,3 @@ XML;
|
|||
*/
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -73,4 +73,3 @@ class DistanceTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -234,4 +234,3 @@ JS;
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -59,4 +59,3 @@ class FileTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -293,4 +293,3 @@ class FormTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -106,4 +106,3 @@ class HTMLTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -100,4 +100,3 @@ class LogTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -620,4 +620,3 @@ class ModelTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -67,4 +67,3 @@ class ModuleTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -47,4 +47,3 @@ class NumberTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -22,4 +22,3 @@ class ObjectTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -79,4 +79,3 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -151,4 +151,3 @@ class SecurityTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -96,4 +96,3 @@ class SessionTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -59,4 +59,3 @@ class SortTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -139,4 +139,3 @@ class StringTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -158,4 +158,3 @@ class TimeTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -195,7 +195,5 @@ class ValidateTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
Validate::isValid('value', ['regex:/foo/' => 'bar']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue