diff --git a/bin/bav-install.php b/bin/bav-install.php index 202a17b1..918c9836 100755 --- a/bin/bav-install.php +++ b/bin/bav-install.php @@ -22,4 +22,4 @@ } catch (DataBackendException $error) { die("Installation failed: {$error->getMessage()}\n"); -} \ No newline at end of file +} diff --git a/bin/bav-uninstall.php b/bin/bav-uninstall.php index 0f68bed2..55f02cba 100755 --- a/bin/bav-uninstall.php +++ b/bin/bav-uninstall.php @@ -24,4 +24,4 @@ } catch (DataBackendException $error) { die("Deinstallation failed: {$error->getMessage()}\n"); -} \ No newline at end of file +} diff --git a/bin/bav-update.php b/bin/bav-update.php index 11c0a45a..09ec5eca 100755 --- a/bin/bav-update.php +++ b/bin/bav-update.php @@ -21,4 +21,4 @@ } catch (DataBackendException $error) { die("Installation failed: {$error->getMessage()}\n"); -} \ No newline at end of file +} diff --git a/classes/BAV.php b/classes/BAV.php index bd0fe6bb..d52e63f7 100644 --- a/classes/BAV.php +++ b/classes/BAV.php @@ -4,13 +4,13 @@ /** * Facade for BAV's API. - * + * * This class provides methods for validation of German bank accounts. - * + * * If you don't inject a {@link Configuration} the facade will use the * {@link ConfigurationRegistry}. The registry provides per default the * {@link DefaultConfiguration}. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -37,10 +37,10 @@ class BAV /** * Inject the configuration. - * + * * If the $configuration is null the configuration from * {@link ConfigurationRegistry::getConfiguration()} will be used. - * + * * @see ConfigurationRegistry */ public function __construct(Configuration $configuration = null) @@ -69,9 +69,9 @@ public function getDataBackend() /** * Updates bav with a new bundesbank file. * - * You might consider enabling automatic update with setting + * You might consider enabling automatic update with setting * AutomaticUpdatePlan as configuration. - * + * * @see AutomaticUpdatePlan * @see Configuration::setUpdatePlan() * @throws DataBackendException @@ -106,7 +106,7 @@ public function isValidBankAccount($bankID, $account) /** * Returns true if the account is valid for the current context. - * + * * You have to have called isValidBank() before! If the current context * is no valid bank every account will validate to true. * @@ -136,7 +136,7 @@ public function isValidBank($bankID) /** * Every bank has one main agency. - * + * * This agency is not included in getAgencies(). * * @throws DataBackendException @@ -153,7 +153,7 @@ public function getMainAgency($bankID) /** * A bank may have more agencies. - * + * * The main agency is not included in this list. * * @param string $bankID Bank id (Bankleitzahl) @@ -207,9 +207,9 @@ public function isValidBIC($bic) /** * Returns the third call back parameter for filter_var() for validating * a bank. - * + * * filter_var($bankID, FILTER_CALLBACK, $bav->getValidBankFilterCallback()); - * + * * @return array * @see isValidBank() * @see filter_var() @@ -222,9 +222,9 @@ public function getValidBankFilterCallback() /** * Returns the third call back parameter for filter_var() for validating * a bank account. - * + * * filter_var($account, FILTER_CALLBACK, $bav->getValidBankFilterCallback()); - * + * * @return array * @see isValidAccount() * @see filter_var() diff --git a/classes/bank/Agency.php b/classes/bank/Agency.php index 73c79a3b..4d058eab 100644 --- a/classes/bank/Agency.php +++ b/classes/bank/Agency.php @@ -4,7 +4,7 @@ /** * The bank agency. - * + * * Every bank has one main agency and may have some more agencies * in different cities. * diff --git a/classes/configuration/Configuration.php b/classes/configuration/Configuration.php index 85fc9cd8..63023675 100644 --- a/classes/configuration/Configuration.php +++ b/classes/configuration/Configuration.php @@ -4,7 +4,7 @@ /** * Configuration - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -41,7 +41,7 @@ class Configuration /** * Sets the update plan. - * + * * Set to null if you don't want to use an update plan. */ public function setUpdatePlan(UpdatePlan $updatePlan = null) @@ -61,10 +61,10 @@ public function getUpdatePlan() /** * Turns automatic installation on or off. - * + * * If automatic installation is activated {@link DataBackendContainer} will * check if it is installed and if not install the backend. - * + * * @see DataBackend::install() * @param bool $automaticInstallation Set true to turn installation on */ @@ -121,12 +121,12 @@ public function getEncoding() /** * Sets the temporary directory. - * + * * If you set a temporary directory BAV will use this for temporary files. * This option is optional. If it is not set the system's path will be used. - * + * * The temporary directory is used for the installation and update process. - * + * * @param string $tempDirectory */ public function setTempDirectory($tempDirectory) diff --git a/classes/configuration/ConfigurationException.php b/classes/configuration/ConfigurationException.php index b3c97081..1ee97409 100644 --- a/classes/configuration/ConfigurationException.php +++ b/classes/configuration/ConfigurationException.php @@ -4,7 +4,7 @@ /** * Configuration exception - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL diff --git a/classes/configuration/ConfigurationLocator.php b/classes/configuration/ConfigurationLocator.php index 8afae40c..da1248ae 100644 --- a/classes/configuration/ConfigurationLocator.php +++ b/classes/configuration/ConfigurationLocator.php @@ -4,7 +4,7 @@ /** * Helper for locating a BAV configuration. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -20,9 +20,9 @@ class ConfigurationLocator /** * Sets the paths where a location is expected. - * + * * Those paths may be relative to the include_path. - * + * * @param string[] $paths */ public function __construct($paths = array()) @@ -32,7 +32,7 @@ public function __construct($paths = array()) /** * Locates a configuration. - * + * * @return Configuration|null * @throws ConfigurationException */ diff --git a/classes/configuration/ConfigurationRegistry.php b/classes/configuration/ConfigurationRegistry.php index b4941094..be925e97 100644 --- a/classes/configuration/ConfigurationRegistry.php +++ b/classes/configuration/ConfigurationRegistry.php @@ -4,28 +4,28 @@ /** * Registry for the configuration - * - * BAV uses this static container for its runtime configuration. Per default the + * + * BAV uses this static container for its runtime configuration. Per default the * registry is initialized with the {@link DefaultConfiguration}. You can * set your own configuration with {@link setConfiguration()} or preferably * by providing the file bav/configuration.php. This file should return a * {@link Configuration} object: - * + * * * setDataBackendContainer(new PDODataBackendContainer($pdo)); - * + * * $configuration->setUpdatePlan(new AutomaticUpdatePlan()); * * return $configuration; * - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -46,10 +46,10 @@ class ConfigurationRegistry /** * locate a configuration or register the default configuration. - * + * * You may define the file bav/configuration.php. This file should return * a Configuration object. - * + * * @see DefaultConfiguration * @throws ConfigurationException */ @@ -69,7 +69,7 @@ public static function classConstructor() /** * Register a configuration programmatically. - * + * * Alternatively you can provide the file bav/configuration.php which * returns a {@link Configuration} object. */ diff --git a/classes/configuration/DefaultConfiguration.php b/classes/configuration/DefaultConfiguration.php index 02a4b969..52497418 100644 --- a/classes/configuration/DefaultConfiguration.php +++ b/classes/configuration/DefaultConfiguration.php @@ -5,11 +5,11 @@ /** * Default configuration uses {@link FileDataBackendContainer} * and any available UTF-8 encoder. - * + * * Automatic installation is enabled. - * + * * The update plan is set to {@link LogUpdatePlan} - * + * * If no UTF-8 encoding is supported ISO-8859-15 will be used. * * @author Markus Malkusch diff --git a/classes/dataBackend/DataBackendContainer.php b/classes/dataBackend/DataBackendContainer.php index 61de213d..19307708 100644 --- a/classes/dataBackend/DataBackendContainer.php +++ b/classes/dataBackend/DataBackendContainer.php @@ -4,7 +4,7 @@ /** * Container for DataBackend objects. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -37,7 +37,7 @@ abstract protected function makeDataBackend(); * * If configured this method would automatically install the backend. I.e. a first * call will take some amount of time. - * + * * @return DataBackend * @throws DataBackendException */ @@ -77,7 +77,7 @@ public function applyUpdatePlan(DataBackend $backend) /** * Returns a configured data backend. * - * If configured this method would automatically install and update the backend. I.e. + * If configured this method would automatically install and update the backend. I.e. * some calls might take longer. * * @see Configuration::setAutomaticInstallation() diff --git a/classes/dataBackend/exception/InvalidContextException.php b/classes/dataBackend/exception/InvalidContextException.php index 4a9689d5..5c6a1763 100644 --- a/classes/dataBackend/exception/InvalidContextException.php +++ b/classes/dataBackend/exception/InvalidContextException.php @@ -4,7 +4,7 @@ /** * Missing context during context validation - * + * * @see ContextValidation * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations diff --git a/classes/dataBackend/file/FileDataBackendContainer.php b/classes/dataBackend/file/FileDataBackendContainer.php index 75a366aa..e6649628 100644 --- a/classes/dataBackend/file/FileDataBackendContainer.php +++ b/classes/dataBackend/file/FileDataBackendContainer.php @@ -4,7 +4,7 @@ /** * Container for FileDataBackend objects. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -21,7 +21,7 @@ class FileDataBackendContainer extends DataBackendContainer /** * Sets the path for the backend. - * + * * @param string $file Path to the bundesbank file */ public function __construct($file = null) diff --git a/classes/dataBackend/file/download/Downloader.php b/classes/dataBackend/file/download/Downloader.php index 84a8824d..283c5e27 100644 --- a/classes/dataBackend/file/download/Downloader.php +++ b/classes/dataBackend/file/download/Downloader.php @@ -4,7 +4,7 @@ /** * Downloads an URI - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -58,7 +58,7 @@ private function download($uri) /** * Downloads the content of an URI - * + * * @param string $uri URI * @return string Content of the page * @throws DownloaderException diff --git a/classes/dataBackend/file/download/uripicker/DOMURIPicker.php b/classes/dataBackend/file/download/uripicker/DOMURIPicker.php index 7455568b..c2f5e328 100644 --- a/classes/dataBackend/file/download/uripicker/DOMURIPicker.php +++ b/classes/dataBackend/file/download/uripicker/DOMURIPicker.php @@ -4,7 +4,7 @@ /** * Finds the download URI in the Bundesbank HTML page with XPath. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -24,7 +24,7 @@ public function isAvailable() /** * Returns the download URI from the Bundesbank html page. - * + * * @throws URIPickerException * @return string */ diff --git a/classes/dataBackend/file/download/uripicker/FallbackURIPicker.php b/classes/dataBackend/file/download/uripicker/FallbackURIPicker.php index b7067dd9..ed4235bc 100644 --- a/classes/dataBackend/file/download/uripicker/FallbackURIPicker.php +++ b/classes/dataBackend/file/download/uripicker/FallbackURIPicker.php @@ -4,7 +4,7 @@ /** * Finds the download URI in the Bundesbank HTML page with any URI picker. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -47,7 +47,7 @@ public function isAvailable() /** * Returns the download URI from the Bundesbank html page. - * + * * @throws URIPickerException * @return string */ diff --git a/classes/dataBackend/file/download/uripicker/RegExpURIPicker.php b/classes/dataBackend/file/download/uripicker/RegExpURIPicker.php index 2be6252c..ff37473c 100644 --- a/classes/dataBackend/file/download/uripicker/RegExpURIPicker.php +++ b/classes/dataBackend/file/download/uripicker/RegExpURIPicker.php @@ -4,7 +4,7 @@ /** * Finds the download URI in the Bundesbank HTML page with a regular expression. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -24,7 +24,7 @@ public function isAvailable() /** * Returns the download URI from the Bundesbank html page. - * + * * @throws URIPickerException * @return string */ diff --git a/classes/dataBackend/file/download/uripicker/URIPicker.php b/classes/dataBackend/file/download/uripicker/URIPicker.php index 0edf71d1..5992ad68 100644 --- a/classes/dataBackend/file/download/uripicker/URIPicker.php +++ b/classes/dataBackend/file/download/uripicker/URIPicker.php @@ -4,7 +4,7 @@ /** * Finds the download URI in the Bundesbank HTML page. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -21,7 +21,7 @@ public function isAvailable(); /** * Returns the download URI from the Bundesbank html page. - * + * * @throws URIPickerException * @return string */ diff --git a/classes/dataBackend/orm/MetaData.php b/classes/dataBackend/orm/MetaData.php index c4275c99..b7822bfc 100644 --- a/classes/dataBackend/orm/MetaData.php +++ b/classes/dataBackend/orm/MetaData.php @@ -4,7 +4,7 @@ /** * Entity for storing metadata for an ORM backend. - * + * * @internal * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations @@ -27,7 +27,7 @@ class MetaData /** * Sets the name - * + * * @param string $name */ public function setName($name) @@ -37,7 +37,7 @@ public function setName($name) /** * Gets the name - * + * * @return string */ public function getName() @@ -47,7 +47,7 @@ public function getName() /** * Sets the value - * + * * @param string $value */ public function setValue($value) @@ -57,7 +57,7 @@ public function setValue($value) /** * Gets the value - * + * * @return string */ public function getValue() diff --git a/classes/dataBackend/orm/doctrine/DoctrineBackendContainer.php b/classes/dataBackend/orm/doctrine/DoctrineBackendContainer.php index e5bdc6ad..cf44694f 100644 --- a/classes/dataBackend/orm/doctrine/DoctrineBackendContainer.php +++ b/classes/dataBackend/orm/doctrine/DoctrineBackendContainer.php @@ -7,9 +7,9 @@ /** * Container for DoctrineDataBackend objects. - * + * * You will need Doctrine as composer dependency. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -21,13 +21,13 @@ class DoctrineBackendContainer extends DataBackendContainer { /** - * @var EntityManager + * @var EntityManager */ private $em; /** * Return the paths to the XML-Mappings - * + * * @return string[] */ public static function getXMLMappings() @@ -37,7 +37,7 @@ public static function getXMLMappings() /** * Builds a container for a connection. - * + * * @param mixed $connection Doctrine::DBAL connection * @return DoctrineBackendContainer */ @@ -51,7 +51,7 @@ public static function buildByConnection($connection, $isDevMode = false) } /** - * Injects the EntityManager + * Injects the EntityManager */ public function __construct(EntityManager $entityManager) { @@ -60,7 +60,7 @@ public function __construct(EntityManager $entityManager) /** * Gets the EntityManager - * + * * @return EntityManager */ public function getEntityManager() diff --git a/classes/dataBackend/orm/doctrine/DoctrineDataBackend.php b/classes/dataBackend/orm/doctrine/DoctrineDataBackend.php index d00ff958..44b013a5 100644 --- a/classes/dataBackend/orm/doctrine/DoctrineDataBackend.php +++ b/classes/dataBackend/orm/doctrine/DoctrineDataBackend.php @@ -11,7 +11,7 @@ * Use Doctrine ORM as backend. * * You will need Doctrine as composer dependency. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -21,7 +21,7 @@ class DoctrineDataBackend extends SQLDataBackend { /** - * @var EntityManager + * @var EntityManager */ private $em; diff --git a/classes/dataBackend/pdo/PDODataBackend.php b/classes/dataBackend/pdo/PDODataBackend.php index fec8c3bb..3155e8a0 100644 --- a/classes/dataBackend/pdo/PDODataBackend.php +++ b/classes/dataBackend/pdo/PDODataBackend.php @@ -539,7 +539,6 @@ public function getLastUpdate() public function isInstalled() { try { - switch ($this->pdo->getAttribute(\PDO::ATTR_DRIVER_NAME)) { case "sqlite": diff --git a/classes/dataBackend/pdo/PDODataBackendContainer.php b/classes/dataBackend/pdo/PDODataBackendContainer.php index 2206bca5..438bdee3 100644 --- a/classes/dataBackend/pdo/PDODataBackendContainer.php +++ b/classes/dataBackend/pdo/PDODataBackendContainer.php @@ -4,7 +4,7 @@ /** * Container for PDODataBackend objects. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -26,7 +26,7 @@ class PDODataBackendContainer extends DataBackendContainer /** * Sets the PDO and the table prefix. - * + * * @param String $prefix the prefix of the table names. Default is 'bav_'. */ public function __construct(\PDO $pdo, $prefix = 'bav_') diff --git a/classes/dataBackend/pdo/StatementContainer.php b/classes/dataBackend/pdo/StatementContainer.php index 97a8cf20..8bf3d161 100644 --- a/classes/dataBackend/pdo/StatementContainer.php +++ b/classes/dataBackend/pdo/StatementContainer.php @@ -32,7 +32,7 @@ public function __construct(\PDO $pdo) /** * Returns a PDOStatement - * + * * This method will return the same object for equal queries. * * @param string $sql diff --git a/classes/dataBackend/update/AutomaticUpdatePlan.php b/classes/dataBackend/update/AutomaticUpdatePlan.php index b13dfe5d..3f0a237e 100644 --- a/classes/dataBackend/update/AutomaticUpdatePlan.php +++ b/classes/dataBackend/update/AutomaticUpdatePlan.php @@ -25,7 +25,7 @@ class AutomaticUpdatePlan extends UpdatePlan /** * Set to false if you don't want to see an E_USER_NOTICE about an update. - * + * * @param bool $notice */ public function setNotice($notice) @@ -35,9 +35,9 @@ public function setNotice($notice) /** * Perform an update. - * + * * If enabled (default) this method will send a E_USER_NOTICE about the update. - * + * * @see setNotice() */ public function perform(DataBackend $backend) diff --git a/classes/exception/BAVException.php b/classes/exception/BAVException.php index 2db613a7..bb8ce8c1 100644 --- a/classes/exception/BAVException.php +++ b/classes/exception/BAVException.php @@ -4,7 +4,7 @@ /** * Base exception - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL diff --git a/classes/util/BICUtil.php b/classes/util/BICUtil.php index 02b5e618..28371bce 100644 --- a/classes/util/BICUtil.php +++ b/classes/util/BICUtil.php @@ -14,7 +14,7 @@ class BICUtil /** * Extends an 8 character BIC to an 11 character BIC. - * + * * @param string $bic BIC * @return string */ diff --git a/classes/util/Lock.php b/classes/util/Lock.php index 780fdbe0..7b4cc059 100644 --- a/classes/util/Lock.php +++ b/classes/util/Lock.php @@ -4,7 +4,7 @@ /** * Helper for locking - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -46,7 +46,7 @@ public function __construct($name) * * If more processes call this method only the process which aquired the lock * will execute the task. The others will block but won't execute the task. - * + * * @throws Exception */ public function executeOnce(\Closure $task) @@ -74,7 +74,7 @@ public function executeOnce(\Closure $task) * * If more processes call this method only the process which aquired the lock * will execute the task. The others will continue execution. - * + * * @throws Exception */ public function nonblockingExecuteOnce(\Closure $task) diff --git a/classes/validator/ContextValidation.php b/classes/validator/ContextValidation.php index 1d582a57..c48709bf 100644 --- a/classes/validator/ContextValidation.php +++ b/classes/validator/ContextValidation.php @@ -4,12 +4,12 @@ /** * Context validation - * + * * You have to validate first a bank to set a context. Then you can validate * an account. - * + * * This class provides callbacks for filter validation. - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -42,7 +42,7 @@ public function __construct(DataBackend $backend) /** * Returns true if a bank exists. - * + * * This method sets the bank context and should be called first. * * @throws DataBackendException @@ -66,7 +66,7 @@ public function isValidBank($bankID) /** * Returns true if the account is valid for the current context. - * + * * You have to have called isValidBank() before! If the current context * is no valid bank every account will validate to true. * @@ -95,9 +95,9 @@ public function isValidAccount($account) /** * Returns the third call back parameter for filter_var() for validating * a bank. - * + * * filter_var($bankID, FILTER_CALLBACK, $validation->getValidBankFilterCallback()); - * + * * @return array * @see isValidBank() * @see filter_var() @@ -113,9 +113,9 @@ public function getValidBankFilterCallback() /** * Returns the third call back parameter for filter_var() for validating * a bank account. - * + * * filter_var($account, FILTER_CALLBACK, $validation->getValidBankFilterCallback()); - * + * * @return array * @see isValidAccount() * @see filter_var() diff --git a/classes/validator/Validator.php b/classes/validator/Validator.php index 8afe141c..a7ea34cf 100644 --- a/classes/validator/Validator.php +++ b/classes/validator/Validator.php @@ -67,7 +67,7 @@ public function __construct(Bank $bank) /** * Raises a E_USER_WARNING for non string accounts. - * + * * @param string $account bank account */ protected function checkType($account) @@ -85,14 +85,14 @@ protected function checkType($account) /** * Validates a bank account. - * + * * Null is considered invalid. - * + * * Note: The parameter $account should be a string. If it's not a string * an E_USER_WARNING will be raised. Bank accounts may start with leading * zeros, wich lead to unexpected results if not treated as a string ( * e.g. (int) 0020012357 evaluates to (string) '4199663'). - * + * * @param string $account bank account * @return bool */ diff --git a/classes/validator/ValidatorFactory.php b/classes/validator/ValidatorFactory.php index 9cb050c8..61267a4a 100644 --- a/classes/validator/ValidatorFactory.php +++ b/classes/validator/ValidatorFactory.php @@ -4,7 +4,7 @@ /** * Validator factory - * + * * @author Markus Malkusch * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL @@ -14,7 +14,7 @@ class ValidatorFactory /** * Builds a validator for a bank. - * + * * @return Validator * @see Bank::getValidationType() * @see Bank::getValidator() diff --git a/classes/validator/validators/Validator87a.php b/classes/validator/validators/Validator87a.php index accd9c04..b6196d35 100644 --- a/classes/validator/validators/Validator87a.php +++ b/classes/validator/validators/Validator87a.php @@ -136,7 +136,6 @@ protected function getResult() return true; } else { if ($konto[4] == 0) { - if ($p > 4) { $p = $p - 5; } else { diff --git a/docs/example.php b/docs/example.php index 83f93ca7..b89620dd 100755 --- a/docs/example.php +++ b/docs/example.php @@ -2,7 +2,7 @@ getTraceAsString()); -} \ No newline at end of file +} diff --git a/tests/bin/test-install.php b/tests/bin/test-install.php index 11746b41..fb32fb05 100755 --- a/tests/bin/test-install.php +++ b/tests/bin/test-install.php @@ -27,4 +27,4 @@ } catch (DataBackendException $error) { die("Installation failed: {$error->getMessage()}\n"); -} \ No newline at end of file +} diff --git a/tests/classes/PDOFactory.php b/tests/classes/PDOFactory.php index ffb392a3..e811ce52 100644 --- a/tests/classes/PDOFactory.php +++ b/tests/classes/PDOFactory.php @@ -4,7 +4,7 @@ /** * PDO factory - * + * * @license WTFPL * @author Markus Malkusch * @see makePDO() @@ -29,8 +29,8 @@ class PDOFactory /** * Builds a PDO. - * - * If the environment doesn't provide the dsn, user and password + * + * If the environment doesn't provide the dsn, user and password * it uses the default mysql test database. * * @return \PDO diff --git a/tests/classes/TimeMock.php b/tests/classes/TimeMock.php index c65b77b1..bd880bc8 100644 --- a/tests/classes/TimeMock.php +++ b/tests/classes/TimeMock.php @@ -4,7 +4,7 @@ /** * time() mock. - * + * * This mock works only if the built-in wasn't used before. I.e. tests * which want to mock time() have to run before other tests which might * call somewhere in the stack an unmocked time(). If the built in was @@ -44,7 +44,7 @@ public static function disable() /** * Sets the moc time. - * + * * @param int $time moc time */ public static function setTime($time) diff --git a/tests/classes/testAPI/BAVTestAPI.php b/tests/classes/testAPI/BAVTestAPI.php index 5bf4d558..035e70d4 100644 --- a/tests/classes/testAPI/BAVTestAPI.php +++ b/tests/classes/testAPI/BAVTestAPI.php @@ -38,7 +38,7 @@ public function __construct() /** * Returns true if the API is available. - * + * * @return bool */ protected function isAvailable() diff --git a/tests/classes/testAPI/KontocheckTestAPI.php b/tests/classes/testAPI/KontocheckTestAPI.php index 5a914811..7d1d2cbf 100644 --- a/tests/classes/testAPI/KontocheckTestAPI.php +++ b/tests/classes/testAPI/KontocheckTestAPI.php @@ -48,7 +48,7 @@ public function __construct($lutFile = null, $lutVersion = null) /** * Return true for known false positives. - * + * * @return true */ public function ignoreTestCase(Bank $bank, $account) @@ -70,7 +70,7 @@ public function ignoreTestCase(Bank $bank, $account) /** * Returns true if the API is available. - * + * * @return bool */ protected function isAvailable() diff --git a/tests/classes/testAPI/KtoblzcheckTestAPI.php b/tests/classes/testAPI/KtoblzcheckTestAPI.php index 2fb469fc..e91d8bee 100644 --- a/tests/classes/testAPI/KtoblzcheckTestAPI.php +++ b/tests/classes/testAPI/KtoblzcheckTestAPI.php @@ -46,9 +46,9 @@ public function __construct($bankdata = null, $binary = null) /** * Return true for known false positives. - * + * * Version 1.45 has many false positives. - * + * * @return true */ public function ignoreTestCase(Bank $bank, $account) @@ -79,7 +79,7 @@ public function ignoreTestCase(Bank $bank, $account) /** * Returns true if the API is available. - * + * * @return bool */ protected function isAvailable() diff --git a/tests/classes/testAPI/TestAPI.php b/tests/classes/testAPI/TestAPI.php index 83a028c1..1e5a11ee 100644 --- a/tests/classes/testAPI/TestAPI.php +++ b/tests/classes/testAPI/TestAPI.php @@ -44,14 +44,14 @@ abstract protected function isValid(Bank $bank, $account); /** * Returns true if the API is available. - * + * * @return bool */ abstract protected function isAvailable(); /** * Return true for known false positives. - * + * * @return true */ public function ignoreTestCase(Bank $bank, $account)