From: Roland Häder Date: Fri, 13 Mar 2009 20:01:36 +0000 (+0000) Subject: All empty double-quoted strings replaced with single-quotes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3107989f93cfb5808ce9d75f1c7d2b7ee3d83d18;p=core.git All empty double-quoted strings replaced with single-quotes --- diff --git a/inc/classes.php b/inc/classes.php index b139dcfd..49867957 100644 --- a/inc/classes.php +++ b/inc/classes.php @@ -23,10 +23,10 @@ // Lower framework classes $lowerClasses = array( - 0 => "exceptions", // Exceptions - 1 => "interfaces", // Interfaces - 2 => "main", // General main classes - 3 => "middleware" // The middleware + 0 => 'exceptions', // Exceptions + 1 => 'interfaces', // Interfaces + 2 => 'main', // General main classes + 3 => 'middleware' // The middleware ); // Load all classes diff --git a/inc/classes/exceptions/class_FrameworkException.php b/inc/classes/exceptions/class_FrameworkException.php index a1bd5693..4c1c73a9 100644 --- a/inc/classes/exceptions/class_FrameworkException.php +++ b/inc/classes/exceptions/class_FrameworkException.php @@ -32,7 +32,7 @@ abstract class FrameworkException extends ReflectionException { /** * Extra data */ - private $extraData = ""; + private $extraData = ''; /** * The super constructor for all exceptions @@ -118,7 +118,7 @@ abstract class FrameworkException extends ReflectionException { // Are there arguments? if ((isset($dbgInfo['args'])) && (is_array($dbgInfo['args'])) && (isset($dbgInfo['args'][0]))) { //* DEBUG: */ echo $dbgIndex.":
".htmlentities(print_r($dbgInfo['args'], true))."
"; - $info = ""; + $info = ''; foreach ($dbgInfo['args'] as $debug) { // Add only non-array elements if (!is_array($debug)) { diff --git a/inc/classes/exceptions/main/class_MissingArrayElementsException.php b/inc/classes/exceptions/main/class_MissingArrayElementsException.php index c7900ca0..e1f388c2 100644 --- a/inc/classes/exceptions/main/class_MissingArrayElementsException.php +++ b/inc/classes/exceptions/main/class_MissingArrayElementsException.php @@ -31,7 +31,7 @@ class MissingArrayElementsException extends FrameworkException { */ public function __construct (array $classArray, $code) { // Extract all elements - $elements = ""; + $elements = ''; if ((isset($classArray[2])) && (is_array($classArray[2]))) { // Convert into strings $elements = implode(", ", $classArray[2]); diff --git a/inc/classes/interfaces/crypto/class_Cryptable.php b/inc/classes/interfaces/crypto/class_Cryptable.php index fec45d92..91d73227 100644 --- a/inc/classes/interfaces/crypto/class_Cryptable.php +++ b/inc/classes/interfaces/crypto/class_Cryptable.php @@ -32,7 +32,7 @@ interface Cryptable extends FrameworkInterface { * @param $oldHash A hash from previous hashed string * @return $hashed The hashed and salted string */ - function hashString ($str, $oldHash = ""); + function hashString ($str, $oldHash = ''); /** * Encrypt the string with fixed salt diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index e635ab55..38f9f594 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -221,7 +221,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ public final function __call ($methodName, $args) { // Implode all given arguments - $argsString = ""; + $argsString = ''; if (empty($args)) { // No arguments $argsString = "NULL"; @@ -772,12 +772,12 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @param $message Optional message to show in debug output * @return void */ - public final function debugInstance ($message = "") { + public final function debugInstance ($message = '') { // Restore the error handler to avoid trouble with missing array elements or undeclared variables restore_error_handler(); // Init content - $content = ""; + $content = ''; // Is a message set? if (!empty($message)) { @@ -808,7 +808,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @param $message An optional message to display * @return void */ - protected function partialStub ($message = "") { + protected function partialStub ($message = '') { // Get the backtrace $backtrace = debug_backtrace(); @@ -887,7 +887,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ public function convertToClassName ($str) { // Init class name - $className = ""; + $className = ''; // Convert all dashes in underscores $str = str_replace("-", "_", $str); @@ -910,7 +910,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ public function markupCode ($phpCode) { // Init marked code - $markedCode = ""; + $markedCode = ''; // Get last error $errorArray = error_get_last(); diff --git a/inc/classes/main/class_FrameworkArrayObject.php b/inc/classes/main/class_FrameworkArrayObject.php index 199904ff..5b54d8cb 100644 --- a/inc/classes/main/class_FrameworkArrayObject.php +++ b/inc/classes/main/class_FrameworkArrayObject.php @@ -27,7 +27,7 @@ class FrameworkArrayObject extends ArrayObject { /** * Real class name */ - private $realClass = ""; + private $realClass = ''; /** * Public constructor for setting real class name diff --git a/inc/classes/main/commands/class_BaseCommand.php b/inc/classes/main/commands/class_BaseCommand.php index 902caacb..9b923888 100644 --- a/inc/classes/main/commands/class_BaseCommand.php +++ b/inc/classes/main/commands/class_BaseCommand.php @@ -25,7 +25,7 @@ class BaseCommand extends BaseFrameworkSystem { /** * The controller we need for this command */ - private $controllerName = ""; + private $controllerName = ''; /** * Protected constructor diff --git a/inc/classes/main/commands/web/class_WebLoginAreaCommand.php b/inc/classes/main/commands/web/class_WebLoginAreaCommand.php index e581a6cb..7531fa1f 100644 --- a/inc/classes/main/commands/web/class_WebLoginAreaCommand.php +++ b/inc/classes/main/commands/web/class_WebLoginAreaCommand.php @@ -25,7 +25,7 @@ class WebLoginAreaCommand extends BaseCommand implements Commandable { /** * Name of the action */ - private $actionName = ""; + private $actionName = ''; /** * Protected constructor diff --git a/inc/classes/main/criteria/class_BaseCriteria.php b/inc/classes/main/criteria/class_BaseCriteria.php index 2e299e8b..7fc785a7 100644 --- a/inc/classes/main/criteria/class_BaseCriteria.php +++ b/inc/classes/main/criteria/class_BaseCriteria.php @@ -25,7 +25,7 @@ class BaseCriteria extends BaseFrameworkSystem { /** * Wrapper class name stored in config entry */ - private $wrapperConfigEntry = ""; + private $wrapperConfigEntry = ''; /** * Protected constructor diff --git a/inc/classes/main/criteria/dataset/class_DataSetCriteria.php b/inc/classes/main/criteria/dataset/class_DataSetCriteria.php index 94248cf0..42f3d787 100644 --- a/inc/classes/main/criteria/dataset/class_DataSetCriteria.php +++ b/inc/classes/main/criteria/dataset/class_DataSetCriteria.php @@ -26,7 +26,7 @@ class DataSetCriteria extends BaseCriteria implements StoreableCriteria { /** * Table name */ - private $tableName = ""; + private $tableName = ''; /** * Table columns (criteria) to store @@ -36,12 +36,12 @@ class DataSetCriteria extends BaseCriteria implements StoreableCriteria { /** * Unique key */ - private $uniqueKey = ""; + private $uniqueKey = ''; /** * Primary key */ - private $primaryKey = ""; + private $primaryKey = ''; /** * Protected constructor diff --git a/inc/classes/main/criteria/search/class_SearchCriteria.php b/inc/classes/main/criteria/search/class_SearchCriteria.php index 546efe85..31f8cbd6 100644 --- a/inc/classes/main/criteria/search/class_SearchCriteria.php +++ b/inc/classes/main/criteria/search/class_SearchCriteria.php @@ -133,7 +133,7 @@ class SearchCriteria extends BaseCriteria implements LocalSearchCriteria { */ public function getCacheKey () { // Initialize the key - $cacheKey = ""; + $cacheKey = ''; // Now walk through all criterias foreach ($this->searchCriteria as $criteriaKey => $criteriaValue) { diff --git a/inc/classes/main/crypto/class_CryptoHelper.php b/inc/classes/main/crypto/class_CryptoHelper.php index c99a85d0..bc1c191f 100644 --- a/inc/classes/main/crypto/class_CryptoHelper.php +++ b/inc/classes/main/crypto/class_CryptoHelper.php @@ -39,7 +39,7 @@ class CryptoHelper extends BaseFrameworkSystem implements Cryptable { /** * Salt for hashing operations */ - private $salt = ""; + private $salt = ''; /** * Protected constructor @@ -126,7 +126,7 @@ class CryptoHelper extends BaseFrameworkSystem implements Cryptable { * @param $oldHash A hash from previous hashed string * @return $hashed The hashed and salted string */ - public function hashString ($str, $oldHash = "") { + public function hashString ($str, $oldHash = '') { // Cast the string $str = (string) $str; diff --git a/inc/classes/main/database/databases/class_LocalFileDatabase.php b/inc/classes/main/database/databases/class_LocalFileDatabase.php index 8187f96e..2e284430 100644 --- a/inc/classes/main/database/databases/class_LocalFileDatabase.php +++ b/inc/classes/main/database/databases/class_LocalFileDatabase.php @@ -33,7 +33,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend /** * Save path for "file database" */ - private $savePath = ""; + private $savePath = ''; /** * The file's extension @@ -43,7 +43,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend /** * The last read file's name */ - private $lastFile = ""; + private $lastFile = ''; /** * The last read file's content including header information @@ -58,7 +58,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend /** * Last error message */ - private $lastError = ""; + private $lastError = ''; /** * Last exception @@ -173,7 +173,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend * @return void */ private final function resetLastError () { - $this->lastError = ""; + $this->lastError = ''; $this->lastException = null; } diff --git a/inc/classes/main/debug/class_DebugWebOutput.php b/inc/classes/main/debug/class_DebugWebOutput.php index e34be082..7406574d 100644 --- a/inc/classes/main/debug/class_DebugWebOutput.php +++ b/inc/classes/main/debug/class_DebugWebOutput.php @@ -53,7 +53,7 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre */ public final function outputStream ($output) { // Strip out
- $output = str_replace("
", "", $output); + $output = str_replace("
", '', $output); print(stripslashes($output)."
\n"); } diff --git a/inc/classes/main/discovery/class_BaseDiscovery.php b/inc/classes/main/discovery/class_BaseDiscovery.php index 956d0cf5..fdbd1e25 100644 --- a/inc/classes/main/discovery/class_BaseDiscovery.php +++ b/inc/classes/main/discovery/class_BaseDiscovery.php @@ -25,7 +25,7 @@ class BaseDiscovery extends BaseFrameworkSystem { /** * Action name for payment discovery */ - private $actionName = ""; + private $actionName = ''; /** * Protected constructor diff --git a/inc/classes/main/filter/auth/class_UserAuthFilter.php b/inc/classes/main/filter/auth/class_UserAuthFilter.php index 7f42bf84..aedda957 100644 --- a/inc/classes/main/filter/auth/class_UserAuthFilter.php +++ b/inc/classes/main/filter/auth/class_UserAuthFilter.php @@ -28,7 +28,7 @@ class UserAuthFilter extends BaseFilter implements Filterable { /** * The login method we shall choose */ - private $authMethod = ""; + private $authMethod = ''; /** * Protected constructor diff --git a/inc/classes/main/filter/payment/class_PaymentDiscoveryFilter.php b/inc/classes/main/filter/payment/class_PaymentDiscoveryFilter.php index 38891e5e..62b5418b 100644 --- a/inc/classes/main/filter/payment/class_PaymentDiscoveryFilter.php +++ b/inc/classes/main/filter/payment/class_PaymentDiscoveryFilter.php @@ -27,7 +27,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable { /** * Action name for payment discovery */ - private $actionName = ""; + private $actionName = ''; /** * Protected constructor diff --git a/inc/classes/main/filter/update/class_UserStatusConfimedUpdateFilter.php b/inc/classes/main/filter/update/class_UserStatusConfimedUpdateFilter.php index 3e38be47..29cb8a1e 100644 --- a/inc/classes/main/filter/update/class_UserStatusConfimedUpdateFilter.php +++ b/inc/classes/main/filter/update/class_UserStatusConfimedUpdateFilter.php @@ -63,7 +63,7 @@ class UserStatusConfimedUpdateFilter extends BaseFilter implements Filterable { $userInstance->updateDatabaseField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS, $confirmed); // Wipe out the confirm hash for extra security - $userInstance->updateDatabaseField(UserDatabaseWrapper::DB_COLUMN_CONFIRM_HASH, ""); + $userInstance->updateDatabaseField(UserDatabaseWrapper::DB_COLUMN_CONFIRM_HASH, ''); // Write all updates to the database $userInstance->flushPendingUpdates(); diff --git a/inc/classes/main/helper/captcha/images/class_ImageHelper.php b/inc/classes/main/helper/captcha/images/class_ImageHelper.php index f67e4547..df762505 100644 --- a/inc/classes/main/helper/captcha/images/class_ImageHelper.php +++ b/inc/classes/main/helper/captcha/images/class_ImageHelper.php @@ -30,7 +30,7 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate { /** * The image name */ - private $imageName = ""; + private $imageName = ''; /** * Width of the image in pixel @@ -68,7 +68,7 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate { /** * Current string name */ - private $currString = ""; + private $currString = ''; /** * Protected constructor @@ -257,10 +257,10 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate { public function addTextLine ($stringName) { // Create the image string $this->imageStrings[$stringName] = array( - 'x' => "", - 'y' => "", - 'size' => "", - 'string' => "" + 'x' => '', + 'y' => '', + 'size' => '', + 'string' => '' ); // Set current string name diff --git a/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php b/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php index e028dcd5..edfd2310 100644 --- a/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php +++ b/inc/classes/main/helper/captcha/web/class_GraphicalCodeCaptcha.php @@ -25,12 +25,12 @@ class GraphicalCodeCaptcha extends BaseCaptcha implements SolveableCaptcha { /** * Hash of the CAPTCHA string */ - private $hashedString = ""; + private $hashedString = ''; /** * Encrypted string */ - private $encryptedString = ""; + private $encryptedString = ''; /** * Protected constructor diff --git a/inc/classes/main/helper/class_BaseHelper.php b/inc/classes/main/helper/class_BaseHelper.php index 6c7c82d5..c651872c 100644 --- a/inc/classes/main/helper/class_BaseHelper.php +++ b/inc/classes/main/helper/class_BaseHelper.php @@ -30,7 +30,7 @@ class BaseHelper extends BaseFrameworkSystem { /** * Rendered content created by the helper class */ - private $content = ""; + private $content = ''; /** * Array with groups @@ -45,12 +45,12 @@ class BaseHelper extends BaseFrameworkSystem { /** * Previously opened group */ - private $previousGroupId = ""; + private $previousGroupId = ''; /** * Previously opened sub group */ - private $previousSubGroupId = ""; + private $previousSubGroupId = ''; /** * Total counter for groups and sub groups @@ -259,7 +259,7 @@ class BaseHelper extends BaseFrameworkSystem { * @return void * @throws HelperNoPreviousOpenedGroupException If no previously opened group was found */ - public function closePreviousGroupByContent ($content = "") { + public function closePreviousGroupByContent ($content = '') { // Check if any sub group was opened before if ($this->ifSubGroupOpenedPreviously()) { // Close it automatically @@ -286,7 +286,7 @@ class BaseHelper extends BaseFrameworkSystem { $this->groups[$groupId]['opened'] = false; // Mark previous group as closed - $this->setPreviousGroupId(""); + $this->setPreviousGroupId(''); //* DEBUG: */ echo "CLOSE:groupId={$groupId}
\n"; } @@ -330,7 +330,7 @@ class BaseHelper extends BaseFrameworkSystem { * @return void * @throws HelperNoPreviousOpenedSubGroupException If no previously opened sub group was found */ - public function closePreviousSubGroupByContent ($content = "") { + public function closePreviousSubGroupByContent ($content = '') { // Check if any sub group was opened before if ($this->ifSubGroupOpenedPreviously() === false) { // Then throw an exception @@ -351,7 +351,7 @@ class BaseHelper extends BaseFrameworkSystem { $this->subGroups[$subGroupId]['opened'] = false; // Mark previous sub group as closed - $this->setPreviousSubGroupId(""); + $this->setPreviousSubGroupId(''); //* DEBUG: */ echo "CLOSE:subGroupId={$subGroupId}
\n"; } @@ -362,7 +362,7 @@ class BaseHelper extends BaseFrameworkSystem { */ public function renderContent () { // Initialize content - $content = ""; + $content = ''; // Is header content there? if (isset($this->groups['header'])) { diff --git a/inc/classes/main/helper/web/blocks/class_WebBlockHelper.php b/inc/classes/main/helper/web/blocks/class_WebBlockHelper.php index 85da820a..bcdeb5ff 100644 --- a/inc/classes/main/helper/web/blocks/class_WebBlockHelper.php +++ b/inc/classes/main/helper/web/blocks/class_WebBlockHelper.php @@ -25,7 +25,7 @@ class WebBlockHelper extends BaseWebHelper implements HelpableTemplate { /** * Name of the block */ - private $blockName = ""; + private $blockName = ''; /** * Protected constructor diff --git a/inc/classes/main/helper/web/forms/class_WebFormHelper.php b/inc/classes/main/helper/web/forms/class_WebFormHelper.php index 2fd68cc1..b816c337 100644 --- a/inc/classes/main/helper/web/forms/class_WebFormHelper.php +++ b/inc/classes/main/helper/web/forms/class_WebFormHelper.php @@ -31,7 +31,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { /** * Name of the form */ - private $formName = ""; + private $formName = ''; /** * Wether form tag is enabled (default: true) @@ -114,7 +114,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { // Check wether we shall open or close the form if (($this->formOpened === false) && ($this->formEnabled === true)) { // Add HTML code - $formContent = sprintf("
getConfigInstance()->readConfig('base_url'), $this->getConfigInstance()->readConfig('form_action'), @@ -123,7 +123,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { ); // Add form id as well - $formContent .= sprintf(" id=\"%s_form\"", + $formContent .= sprintf(" id=\"%s_form\'', $formId ); @@ -162,7 +162,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { * @return void * @throws FormClosedException If the form is not yet opened */ - public function addInputTextField ($fieldName, $fieldValue = "") { + public function addInputTextField ($fieldName, $fieldValue = '') { // Is the form opened? if (($this->formOpened === false) && ($this->formEnabled === true)) { // Throw an exception @@ -204,7 +204,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { * @return void * @throws FormClosedException If the form is not yet opened */ - public function addInputPasswordField ($fieldName, $fieldValue = "") { + public function addInputPasswordField ($fieldName, $fieldValue = '') { // Is the form opened? if (($this->formOpened === false) && ($this->formEnabled === true)) { // Throw an exception @@ -231,7 +231,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { * @return void * @throws FormClosedException If the form is not yet opened */ - public function addInputHiddenField ($fieldName, $fieldValue = "") { + public function addInputHiddenField ($fieldName, $fieldValue = '') { // Is the form opened? if (($this->formOpened === false) && ($this->formEnabled === true)) { // Throw an exception @@ -296,7 +296,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { } // END - if // Set wether the check box is checked... - $checked = " checked=\"checked\""; + $checked = " checked=\"checked\''; if ($fieldChecked === false) $checked = " "; // Generate the content @@ -370,7 +370,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { * @throws FormClosedException If no form has been opened before * @throws EmptyVariableException If $groupId is not set */ - public function addFormGroup ($groupId = "", $groupText = "") { + public function addFormGroup ($groupId = '', $groupText = '') { // Is a form opened? if (($this->formOpened === false) && ($this->formEnabled === true)) { // Throw exception here @@ -445,7 +445,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { * @throws FormFormClosedException If no group has been opened before * @throws EmptyVariableException If $subGroupId is not set */ - public function addFormSubGroup ($subGroupId = "", $subGroupText = "") { + public function addFormSubGroup ($subGroupId = '', $subGroupText = '') { // Is a group opened? if ($this->ifGroupOpenedPreviously() === false) { // Throw exception here diff --git a/inc/classes/main/helper/web/links/class_WebLinkHelper.php b/inc/classes/main/helper/web/links/class_WebLinkHelper.php index c7981044..83b806d8 100644 --- a/inc/classes/main/helper/web/links/class_WebLinkHelper.php +++ b/inc/classes/main/helper/web/links/class_WebLinkHelper.php @@ -25,12 +25,12 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { /** * Name of the link */ - private $linkName = ""; + private $linkName = ''; /** * Base of the link */ - private $linkBase = ""; + private $linkBase = ''; /** * Protected constructor @@ -64,7 +64,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { $helperInstance->setLinkBase($linkBase); // Add default group - $helperInstance->openGroupByIdContent('main', "", ""); + $helperInstance->openGroupByIdContent('main', '', ''); // Return the prepared instance return $helperInstance; @@ -79,7 +79,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { * @param $extraContent Optional extra HTML content * @return $linkContent Rendered text link content */ - private function renderLinkContentWithTextExtraContent ($linkText, $linkTitle, $extraContent="") { + private function renderLinkContentWithTextExtraContent ($linkText, $linkTitle, $extraContent='') { // Construct link content $linkContent = sprintf("%s", $this->getLinkBase(), @@ -140,7 +140,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { // Is a previous opened group still open? if ($this->ifGroupOpenedPreviously()) { // Then close it - $this->closePreviousGroupByContent(""); + $this->closePreviousGroupByContent(''); } // END - if // Get the content @@ -166,7 +166,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { // Is a group with that name open? if ($this->ifGroupOpenedPreviously()) { // Then close it here - $this->closePreviousGroupByContent(""); + $this->closePreviousGroupByContent(''); } // END - if // Generate the group content diff --git a/inc/classes/main/images/class_BaseImage.php b/inc/classes/main/images/class_BaseImage.php index 0e7b00dd..86d7ab94 100644 --- a/inc/classes/main/images/class_BaseImage.php +++ b/inc/classes/main/images/class_BaseImage.php @@ -25,40 +25,40 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { /** * Image type */ - private $imageType = ""; + private $imageType = ''; /** * Width of the image */ - private $width = ""; + private $width = ''; /** * Height of the image */ - private $height = ""; + private $height = ''; /** * Background color in RGB */ private $backgroundColor = array( - 'red' => "", - 'green' => "", - 'blue' => "" + 'red' => '', + 'green' => '', + 'blue' => '' ); /** * Foreground color in RGB */ private $foregroundColor = array( - 'red' => "", - 'green' => "", - 'blue' => "" + 'red' => '', + 'green' => '', + 'blue' => '' ); /** * Current choosen color array */ - private $colorMode = ""; + private $colorMode = ''; /** * Image resource @@ -68,12 +68,12 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { /** * Image name */ - private $imageName = ""; + private $imageName = ''; /** * String name */ - private $stringName = ""; + private $stringName = ''; /** * Groupable image strings? diff --git a/inc/classes/main/io/class_FileIoStream.php b/inc/classes/main/io/class_FileIoStream.php index 0eff6c5a..b4a85480 100644 --- a/inc/classes/main/io/class_FileIoStream.php +++ b/inc/classes/main/io/class_FileIoStream.php @@ -58,7 +58,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil */ public final function saveFile ($fileName, $dataArray) { // Try it five times - $dirName = ""; $fileInstance = null; + $dirName = ''; $fileInstance = null; for ($idx = 0; $idx < 5; $idx++) { // Get a file output pointer try { @@ -114,11 +114,11 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil */ public final function loadFileContents ($fqfn) { // Initialize some variables and arrays - $inputBuffer = ""; - $lastBuffer = ""; + $inputBuffer = ''; + $lastBuffer = ''; $header = array(); $data = array(); - $readData = ""; // This will contain our read data + $readData = ''; // This will contain our read data // Get a file input handler $fileInstance = FrameworkFileInputPointer::createFrameworkFileInputPointer($fqfn); diff --git a/inc/classes/main/io/class_FrameworkDirectoryPointer.php b/inc/classes/main/io/class_FrameworkDirectoryPointer.php index 3f076b6a..e0a0c4e5 100644 --- a/inc/classes/main/io/class_FrameworkDirectoryPointer.php +++ b/inc/classes/main/io/class_FrameworkDirectoryPointer.php @@ -25,7 +25,7 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem { /** * The current path we are working in */ - private $pathName = ""; + private $pathName = ''; /** * The directory pointer @@ -153,7 +153,7 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem { * @return string Directory and/or file names read from the current * directory pointer */ - public function readDirectoryExcept ($except = "") { + public function readDirectoryExcept ($except = '') { if ((empty($except)) || (!is_array($except)) || (count($except) == 0)) { // No exception given, so read all data return $this->readRawDirectory(); @@ -185,7 +185,7 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem { // Close the directory pointer and reset the instance variable @closedir($this->getPointer()); $this->setPointer(null); - $this->setPathName(""); + $this->setPathName(''); } /** diff --git a/inc/classes/main/io/class_FrameworkFileInputPointer.php b/inc/classes/main/io/class_FrameworkFileInputPointer.php index ad16db1f..8098d604 100644 --- a/inc/classes/main/io/class_FrameworkFileInputPointer.php +++ b/inc/classes/main/io/class_FrameworkFileInputPointer.php @@ -25,7 +25,7 @@ class FrameworkFileInputPointer extends BaseFrameworkSystem { /** * The current file we are working in */ - private $fileName = ""; + private $fileName = ''; /** * The file pointer @@ -168,7 +168,7 @@ class FrameworkFileInputPointer extends BaseFrameworkSystem { // Close the file pointer and reset the instance variable @fclose($this->getPointer()); $this->setPointer(null); - $this->setFileName(""); + $this->setFileName(''); } /** diff --git a/inc/classes/main/io/class_FrameworkFileOutputPointer.php b/inc/classes/main/io/class_FrameworkFileOutputPointer.php index 6c555bdf..0506adde 100644 --- a/inc/classes/main/io/class_FrameworkFileOutputPointer.php +++ b/inc/classes/main/io/class_FrameworkFileOutputPointer.php @@ -25,7 +25,7 @@ class FrameworkFileOutputPointer extends BaseFrameworkSystem { /** * The current file we are working in */ - private $fileName = ""; + private $fileName = ''; /** * The file pointer @@ -138,7 +138,7 @@ class FrameworkFileOutputPointer extends BaseFrameworkSystem { // Close the file pointer and reset the instance variable @fclose($this->getPointer()); $this->setPointer(null); - $this->setFileName(""); + $this->setFileName(''); } /** diff --git a/inc/classes/main/language/class_LanguageSystem.php b/inc/classes/main/language/class_LanguageSystem.php index aec00f20..c1d66e4f 100644 --- a/inc/classes/main/language/class_LanguageSystem.php +++ b/inc/classes/main/language/class_LanguageSystem.php @@ -26,7 +26,7 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, /** * The full-qualified base path for the language include files */ - private $basePath = ""; + private $basePath = ''; /** * The 2-char language code diff --git a/inc/classes/main/mailer/class_BaseMailer.php b/inc/classes/main/mailer/class_BaseMailer.php index 895ae2b5..a22fe55b 100644 --- a/inc/classes/main/mailer/class_BaseMailer.php +++ b/inc/classes/main/mailer/class_BaseMailer.php @@ -30,7 +30,7 @@ class BaseMailer extends BaseFrameworkSystem { /** * Template name */ - private $templateName = ""; + private $templateName = ''; /** * Protected constructor diff --git a/inc/classes/main/output/class_ConsoleOutput.php b/inc/classes/main/output/class_ConsoleOutput.php index 0e78c8a2..b0df4fef 100644 --- a/inc/classes/main/output/class_ConsoleOutput.php +++ b/inc/classes/main/output/class_ConsoleOutput.php @@ -91,7 +91,7 @@ class ConsoleOutput extends BaseFrameworkSystem implements OutputStreamer { if ($outStream === false) { // Output something here... foreach ($this->vars as $var => $value) { - $this->output("var=".$var.", value=".$value.""); + $this->output("var=".$var.", value=".$value.''); } } else { // Output it to the console diff --git a/inc/classes/main/resolver/action/class_BaseActionResolver.php b/inc/classes/main/resolver/action/class_BaseActionResolver.php index 6f4cbd83..5d4738b9 100644 --- a/inc/classes/main/resolver/action/class_BaseActionResolver.php +++ b/inc/classes/main/resolver/action/class_BaseActionResolver.php @@ -25,12 +25,12 @@ class BaseActionResolver extends BaseResolver { /** * Prefix for local, remote or other resolver */ - private $actionPrefix = ""; + private $actionPrefix = ''; /** * Validated action name */ - private $actionName = ""; + private $actionName = ''; /** * Protected constructor diff --git a/inc/classes/main/resolver/action/web/class_WebActionResolver.php b/inc/classes/main/resolver/action/web/class_WebActionResolver.php index c30644a3..dc6e4d81 100644 --- a/inc/classes/main/resolver/action/web/class_WebActionResolver.php +++ b/inc/classes/main/resolver/action/web/class_WebActionResolver.php @@ -25,7 +25,7 @@ class WebActionResolver extends BaseActionResolver implements ActionResolver { /** * Last successfull resolved action */ - private $lastActionInstance = ""; + private $lastActionInstance = ''; /** * Protected constructor @@ -82,7 +82,7 @@ class WebActionResolver extends BaseActionResolver implements ActionResolver { */ public function resolveActionByRequest (Requestable $requestInstance) { // Init variables - $actionName = ""; + $actionName = ''; $actionInstance = null; // This goes fine so let's resolv the action diff --git a/inc/classes/main/resolver/class_BaseResolver.php b/inc/classes/main/resolver/class_BaseResolver.php index b3c36208..cc840d4f 100644 --- a/inc/classes/main/resolver/class_BaseResolver.php +++ b/inc/classes/main/resolver/class_BaseResolver.php @@ -25,7 +25,7 @@ class BaseResolver extends BaseFrameworkSystem { /** * Class name */ - private $className = ""; + private $className = ''; // Exception constants const EXCEPTION_INVALID_COMMAND = 0x1d0; diff --git a/inc/classes/main/resolver/command/class_BaseCommandResolver.php b/inc/classes/main/resolver/command/class_BaseCommandResolver.php index 8f924ad1..fc662c3a 100644 --- a/inc/classes/main/resolver/command/class_BaseCommandResolver.php +++ b/inc/classes/main/resolver/command/class_BaseCommandResolver.php @@ -25,12 +25,12 @@ class BaseCommandResolver extends BaseResolver { /** * Prefix for local, remote or other resolver */ - private $commandPrefix = ""; + private $commandPrefix = ''; /** * Validated command name */ - private $commandName = ""; + private $commandName = ''; /** * Protected constructor diff --git a/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php b/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php index 1924e49a..d70e25c0 100644 --- a/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php +++ b/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php @@ -82,7 +82,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve */ public function resolveCommandByRequest (Requestable $requestInstance) { // Init variables - $commandName = ""; + $commandName = ''; $commandInstance = null; // This goes fine so let's resolv the command diff --git a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php index ffcd7027..f61f0cdd 100644 --- a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php +++ b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php @@ -82,7 +82,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver */ public function resolveCommandByRequest (Requestable $requestInstance) { // Init variables - $commandName = ""; + $commandName = ''; $commandInstance = null; // This goes fine so let's resolv the command diff --git a/inc/classes/main/resolver/controller/class_BaseControllerResolver.php b/inc/classes/main/resolver/controller/class_BaseControllerResolver.php index f324ec6d..6295df90 100644 --- a/inc/classes/main/resolver/controller/class_BaseControllerResolver.php +++ b/inc/classes/main/resolver/controller/class_BaseControllerResolver.php @@ -25,12 +25,12 @@ class BaseControllerResolver extends BaseResolver { /** * Prefix for local, remote or other resolver */ - private $controllerPrefix = ""; + private $controllerPrefix = ''; /** * Validated controller name */ - private $controllerName = ""; + private $controllerName = ''; /** * Protected constructor diff --git a/inc/classes/main/resolver/controller/image/class_ImageControllerResolver.php b/inc/classes/main/resolver/controller/image/class_ImageControllerResolver.php index e6fdf592..dc664e87 100644 --- a/inc/classes/main/resolver/controller/image/class_ImageControllerResolver.php +++ b/inc/classes/main/resolver/controller/image/class_ImageControllerResolver.php @@ -25,7 +25,7 @@ class ImageControllerResolver extends BaseControllerResolver implements Controll /** * Last successfull resolved controller (name) */ - private $lastControllerName = ""; + private $lastControllerName = ''; /** * Last successfull resolved controller (instance) @@ -87,7 +87,7 @@ class ImageControllerResolver extends BaseControllerResolver implements Controll */ public function resolveController () { // Init variables - $controllerName = ""; + $controllerName = ''; $controllerInstance = null; // Get the command name diff --git a/inc/classes/main/resolver/controller/web/class_WebControllerResolver.php b/inc/classes/main/resolver/controller/web/class_WebControllerResolver.php index 7c7e58ce..06ba1118 100644 --- a/inc/classes/main/resolver/controller/web/class_WebControllerResolver.php +++ b/inc/classes/main/resolver/controller/web/class_WebControllerResolver.php @@ -25,7 +25,7 @@ class WebControllerResolver extends BaseControllerResolver implements Controller /** * Last successfull resolved controller (name) */ - private $lastControllerName = ""; + private $lastControllerName = ''; /** * Last successfull resolved controller (instance) @@ -87,7 +87,7 @@ class WebControllerResolver extends BaseControllerResolver implements Controller */ public function resolveController () { // Init variables - $controllerName = ""; + $controllerName = ''; $controllerInstance = null; // Get the command name @@ -152,7 +152,7 @@ class WebControllerResolver extends BaseControllerResolver implements Controller } // END - if // Set default resolver config name - $resolverConfigEntry = ""; + $resolverConfigEntry = ''; // Try to read a config entry for our resolver including controller name... ;-) try { diff --git a/inc/classes/main/response/class_BaseResponse.php b/inc/classes/main/response/class_BaseResponse.php index 48aa79f9..7e40ce77 100644 --- a/inc/classes/main/response/class_BaseResponse.php +++ b/inc/classes/main/response/class_BaseResponse.php @@ -43,7 +43,7 @@ class BaseResponse extends BaseFrameworkSystem { /** * Body of the response */ - private $responseBody = ""; + private $responseBody = ''; /** * Instance of the template engine @@ -202,7 +202,7 @@ class BaseResponse extends BaseFrameworkSystem { } // Clear response header and body - $this->setResponseBody(""); + $this->setResponseBody(''); $this->resetResponseHeaders(); } } diff --git a/inc/classes/main/response/http/class_HttpResponse.php b/inc/classes/main/response/http/class_HttpResponse.php index 3cde5516..19a453bb 100644 --- a/inc/classes/main/response/http/class_HttpResponse.php +++ b/inc/classes/main/response/http/class_HttpResponse.php @@ -156,7 +156,7 @@ class HttpResponse extends BaseResponse implements Responseable { $this->setResponseStatus("301 Moved Permanently"); // Clear the body - $this->setResponseBody(""); + $this->setResponseBody(''); // Flush the result $this->flushBuffer(); @@ -175,7 +175,7 @@ class HttpResponse extends BaseResponse implements Responseable { // Is the cookie there? if (isset($_COOKIE[$cookieName])) { // Then expire it with 20 minutes past - $this->addCookie($cookieName, "", false, (time() - 1200)); + $this->addCookie($cookieName, '', false, (time() - 1200)); // Remove it from array unset($_COOKIE[$cookieName]); diff --git a/inc/classes/main/response/image/class_ImageResponse.php b/inc/classes/main/response/image/class_ImageResponse.php index 870ce11f..dc6e5ad0 100644 --- a/inc/classes/main/response/image/class_ImageResponse.php +++ b/inc/classes/main/response/image/class_ImageResponse.php @@ -170,7 +170,7 @@ class ImageResponse extends BaseResponse implements Responseable { $this->setResponseStatus("301 Moved Permanently"); // Clear the body - $this->setResponseBody(""); + $this->setResponseBody(''); // Flush the result $this->flushBuffer(); @@ -213,7 +213,7 @@ class ImageResponse extends BaseResponse implements Responseable { // Is the cookie there? if (isset($_COOKIE[$cookieName])) { // Then expire it with 20 minutes past - $this->addCookie($cookieName, "", false, (time() - 1200)); + $this->addCookie($cookieName, '', false, (time() - 1200)); // Remove it from array unset($_COOKIE[$cookieName]); diff --git a/inc/classes/main/result/class_DatabaseResult.php b/inc/classes/main/result/class_DatabaseResult.php index b53cad5b..e0d169a5 100644 --- a/inc/classes/main/result/class_DatabaseResult.php +++ b/inc/classes/main/result/class_DatabaseResult.php @@ -54,7 +54,7 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up /** * Found value */ - private $foundValue = ""; + private $foundValue = ''; /** * Protected constructor diff --git a/inc/classes/main/rng/class_RandomNumberGenerator.php b/inc/classes/main/rng/class_RandomNumberGenerator.php index 51a0846e..431b9d13 100644 --- a/inc/classes/main/rng/class_RandomNumberGenerator.php +++ b/inc/classes/main/rng/class_RandomNumberGenerator.php @@ -35,12 +35,12 @@ class RandomNumberGenerator extends BaseFrameworkSystem { /** * Extra salt for secured hashing */ - private $extraSalt = ""; + private $extraSalt = ''; /** * Fixed salt for secured hashing */ - private $fixedSalt = ""; + private $fixedSalt = ''; /** * Maximum length for random string @@ -133,7 +133,7 @@ class RandomNumberGenerator extends BaseFrameworkSystem { if ($length < 1) $length = $this->rndStrLen; // Initialize the string - $randomString = ""; + $randomString = ''; // And generate it for ($idx = 0; $idx < $length; $idx++) { diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index 8969e4e9..4b121a4f 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -27,7 +27,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { * templates are stored. We will internally determine the language plus * "html" for web templates or "emails" for email templates */ - private $basePath = ""; + private $basePath = ''; /** * Template type @@ -52,17 +52,17 @@ class BaseTemplateEngine extends BaseFrameworkSystem { /** * The raw (maybe uncompiled) template */ - private $rawTemplateData = ""; + private $rawTemplateData = ''; /** * Template data with compiled-in variables */ - private $compiledData = ""; + private $compiledData = ''; /** * The last loaded template's FQFN for debugging the engine */ - private $lastTemplate = ""; + private $lastTemplate = ''; /** * The variable stack for the templates @@ -560,7 +560,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { // Is it not a config variable? if ($varName != 'config') { // Regular template variables - $this->assignVariable($var, ""); + $this->assignVariable($var, ''); } else { // Configuration variables $this->assignConfigVariable($var); @@ -779,7 +779,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { } // Do we have some quotes left and right side? Then it is free text - if ((substr($varMatches[2][$key], 0, 1) == "\"") && (substr($varMatches[2][$key], -1, 1) == "\"")) { + if ((substr($varMatches[2][$key], 0, 1) == "\'') && (substr($varMatches[2][$key], -1, 1) == "\'')) { // Free string detected! Which we can assign directly $this->assignVariable($var, $varMatches[3][$key]); } elseif (!empty($varMatches[2][$key])) { @@ -998,7 +998,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { $eval = str_replace( "<%php", "\";", str_replace( - "%>", "\n\$result .= \"", $eval + "%>", "\n\$result .= \'', $eval ) ); @@ -1074,7 +1074,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { $this->insertRawTemplates(); // Remove the raw template content as well - $this->setRawTemplateData(""); + $this->setRawTemplateData(''); } // END - if @@ -1162,7 +1162,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { $this->assignVariable($variableName, $content); // Purge raw content - $this->setRawTemplateData(""); + $this->setRawTemplateData(''); } /** diff --git a/inc/classes/main/template/image/class_ImageTemplateEngine.php b/inc/classes/main/template/image/class_ImageTemplateEngine.php index c77556a4..309279a6 100644 --- a/inc/classes/main/template/image/class_ImageTemplateEngine.php +++ b/inc/classes/main/template/image/class_ImageTemplateEngine.php @@ -40,7 +40,7 @@ class ImageTemplateEngine extends BaseTemplateEngine implements CompileableTempl /** * Current main node */ - private $currMainNode = ""; + private $currMainNode = ''; /** * Protected constructor diff --git a/inc/classes/main/template/mail/class_MailTemplateEngine.php b/inc/classes/main/template/mail/class_MailTemplateEngine.php index d67651fb..241e24fe 100644 --- a/inc/classes/main/template/mail/class_MailTemplateEngine.php +++ b/inc/classes/main/template/mail/class_MailTemplateEngine.php @@ -40,7 +40,7 @@ class MailTemplateEngine extends BaseTemplateEngine implements CompileableTempla /** * Current main node */ - private $currMainNode = ""; + private $currMainNode = ''; /** * Protected constructor @@ -316,7 +316,7 @@ class MailTemplateEngine extends BaseTemplateEngine implements CompileableTempla */ public function getMailCacheFqfn () { // Initialize FQFN - $fqfn = ""; + $fqfn = ''; $this->debugBackTrace(); // Return it diff --git a/inc/classes/main/user/class_BaseUser.php b/inc/classes/main/user/class_BaseUser.php index c5cdfa9a..f1a63026 100644 --- a/inc/classes/main/user/class_BaseUser.php +++ b/inc/classes/main/user/class_BaseUser.php @@ -30,7 +30,7 @@ class BaseUser extends BaseFrameworkSystem { /** * Username of current user */ - private $userName = ""; + private $userName = ''; /** * User id of current user @@ -40,7 +40,7 @@ class BaseUser extends BaseFrameworkSystem { /** * Email of current user */ - private $email = ""; + private $email = ''; /** * Protected constructor @@ -199,7 +199,7 @@ class BaseUser extends BaseFrameworkSystem { $exists = true; // Is the username set? - if ($this->getUserName() == "") { + if ($this->getUserName() == '') { // Get current entry $currEntry = $this->getResultInstance()->current(); diff --git a/inc/classes/middleware/database/class_DatabaseConnection.php b/inc/classes/middleware/database/class_DatabaseConnection.php index 56f07783..420421fd 100644 --- a/inc/classes/middleware/database/class_DatabaseConnection.php +++ b/inc/classes/middleware/database/class_DatabaseConnection.php @@ -26,10 +26,10 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re * Array for connection data */ private $connectData = array( - 'login' => "", - 'pass' => "", - 'dbase' => "", - 'host' => "" + 'login' => '', + 'pass' => '', + 'dbase' => '', + 'host' => '' ); // The real database layer diff --git a/inc/config/class_FrameworkConfiguration.php b/inc/config/class_FrameworkConfiguration.php index fafc68fd..aa00607c 100644 --- a/inc/config/class_FrameworkConfiguration.php +++ b/inc/config/class_FrameworkConfiguration.php @@ -236,7 +236,7 @@ class FrameworkConfiguration implements Registerable { */ public function detectScriptPath () { // Default is empty - $scriptPath = ""; + $scriptPath = ''; // Is the scriptname set? if (isset($_SERVER['SCRIPT_NAME'])) { diff --git a/inc/includes.php b/inc/includes.php index 246a5325..367399ad 100644 --- a/inc/includes.php +++ b/inc/includes.php @@ -56,7 +56,7 @@ if (!empty($_GET['app'])) { $application = htmlentities(strip_tags($application), ENT_QUOTES); // Secure it a little more with a reg.exp. -$application = preg_replace('/([^a-z0-9_-])+/i', "", $application); +$application = preg_replace('/([^a-z0-9_-])+/i', '', $application); // Set the application name for later usage $cfg->setConfigEntry('app_name', $application); diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index ffa07930..7b551d87 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -84,12 +84,12 @@ class ClassLoader { /** * Filename for the list cache */ - private $listCacheFQFN = ""; + private $listCacheFQFN = ''; /** * Cache for class content */ - private $classCacheFQFN = ""; + private $classCacheFQFN = ''; /** * Counter for loaded include files @@ -217,7 +217,7 @@ class ClassLoader { // Skip here if already cached if ($this->classesCached === false) { // Generate a full-cache of all classes - $cacheContent = ""; + $cacheContent = ''; foreach ($this->loadedClasses as $fqfn) { // Load the file $cacheContent .= file_get_contents($fqfn); @@ -398,7 +398,7 @@ class ClassLoader { */ public function getPrintableIncludeList () { // Prepare the list - $includeList = ""; + $includeList = ''; foreach ($this->loadedClasses as $classFile) { $includeList .= basename($classFile)."
\n"; } // END - foreach diff --git a/inc/output.php b/inc/output.php index c23d0ffd..0f826ad9 100644 --- a/inc/output.php +++ b/inc/output.php @@ -26,7 +26,7 @@ $debug = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getInstance()->readConfig('debug_class')); // Empty string should be ignored and used for testing the middleware -DebugMiddleware::getInstance()->output(""); +DebugMiddleware::getInstance()->output(''); // [EOF] ?> diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 6e14186f..1014d10a 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -91,7 +91,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase { $cfg = FrameworkConfiguration::getInstance(); // Try to read an empty configuration variable - $dummy = $cfg->readConfig(""); + $dummy = $cfg->readConfig(''); } catch (ConfigEntryIsEmptyException $expected) { // This exception was expected, so it is fine $testPassed = true; @@ -120,7 +120,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase { $cfg = FrameworkConfiguration::getInstance(); // Try to read an empty configuration variable - $cfg->setConfigEntry("", 'will_never_be_set'); + $cfg->setConfigEntry('', 'will_never_be_set'); } catch (ConfigEntryIsEmptyException $expected) { // This exception was expected, so it is fine $testPassed = true; diff --git a/tests/old/contract-test.php b/tests/old/contract-test.php index fd44cdf3..5dfeabf4 100644 --- a/tests/old/contract-test.php +++ b/tests/old/contract-test.php @@ -200,7 +200,7 @@ $einbauten = array( // Preisliste auffuellen foreach ($einbauten['parts'] as $key=>$part) { // Create item array string - $item = ""; + $item = ''; foreach ($part as $idx=>$itemPart) { if (is_string($itemPart)) { // String found