<?xml version="1.0"?>
<ruleset name="WCF">
<description>WoltLab Community Framework Coding Standard</description>
- <exclude-pattern>*/wcfsetup/test.php</exclude-pattern>
- <exclude-pattern>*/wcfsetup/install.php</exclude-pattern>
+ <exclude-pattern>*/zend/*</exclude-pattern>
<exclude-pattern>*/CodeSniff/*</exclude-pattern>
<rule ref="Generic.Classes.DuplicateClassName" />
* @copyright 2001-2011 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
+// @codingStandardsIgnoreFile
// define constants
define('INSTALL_SCRIPT_DIR', dirname(__FILE__).'/');
define('SETUP_FILE', INSTALL_SCRIPT_DIR . 'WCFSetup.tar.gz');
#!/usr/bin/env php
<?php
+// @codingStandardsIgnoreFile
/**
* @author Tim Düsterhus
* @copyright 2001-2011 WoltLab GmbH
Log::info("Executing cronjob #", $cronjob->cronjobID, ': ', StringUtil::truncate(CLIWCF::getLanguage()->get($cronjob->description), 40));
}
}
- else if ($cronjob->nextExec < time()) { // use time() instead of TIME_NOW, as the latter may be outdated
+ // use time() instead of TIME_NOW, as the latter may be outdated
+ else if ($cronjob->nextExec < time()) {
$cronjobs[] = $cronjob;
if (VERBOSITY >= 0) {
Log::info("Executing cronjob #", $cronjob->cronjobID, ': ', StringUtil::truncate(CLIWCF::getLanguage()->get($cronjob->description), 40));
// TODO: Check access
return true;
}
-}
\ No newline at end of file
+}
public function canAccess() {
return true;
}
-}
\ No newline at end of file
+}
if (!$archive->isValidInstall()) {
throw new UserInputException('', 'noValidInstall');
}
- elseif ($archive->isAlreadyInstalled()) {
+ else if ($archive->isAlreadyInstalled()) {
throw new UserInputException('', 'uniqueAlreadyInstalled');
}
}
public function canAccess() {
return CLIWCF::getSession()->getPermission('admin.system.package.canInstallPackage') || CLIWCF::getSession()->getPermission('admin.system.package.canUpdatePackage');
}
-}
\ No newline at end of file
+}
// TODO: Check access
return true;
}
-}
\ No newline at end of file
+}
* @copyright 2001-2012 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
+// @codingStandardsIgnoreFile
// check php version
// php version
$phpVersion = phpversion();