From 5a29698db05c37015be8ee09b4ac299eb27c4d8f Mon Sep 17 00:00:00 2001 From: Ivan Fedorov Date: Wed, 17 Mar 2021 15:02:20 +0300 Subject: [PATCH] fix code style in missed files --- FFI/FFI.php | 1 - cassandra/cassandra.php | 2 -- mongodb/mongodb.php | 21 +++++++++------------ yaf/yaf_namespace.php | 19 ++++++------------- 4 files changed, 15 insertions(+), 28 deletions(-) diff --git a/FFI/FFI.php b/FFI/FFI.php index c95c142a..9f19c1bf 100644 --- a/FFI/FFI.php +++ b/FFI/FFI.php @@ -3,7 +3,6 @@ // Start of FFI v.0.1.0 namespace { - use FFI\CData; use FFI\CType; use FFI\ParserException; diff --git a/cassandra/cassandra.php b/cassandra/cassandra.php index ae0702e8..f359fec6 100644 --- a/cassandra/cassandra.php +++ b/cassandra/cassandra.php @@ -465,7 +465,6 @@ namespace { */ namespace Cassandra { - use JetBrains\PhpStorm\Deprecated; /** @@ -6136,7 +6135,6 @@ namespace Cassandra\SSLOptions { */ namespace Cassandra\Exception { - use JetBrains\PhpStorm\Pure; /** diff --git a/mongodb/mongodb.php b/mongodb/mongodb.php index 82285c1e..42d23fbb 100644 --- a/mongodb/mongodb.php +++ b/mongodb/mongodb.php @@ -15,7 +15,6 @@ namespace MongoDB {} namespace MongoDB\Driver { - use MongoDB\BSON\Serializable; use MongoDB\Driver\Exception\AuthenticationException; use MongoDB\Driver\Exception\BulkWriteException; @@ -30,7 +29,7 @@ namespace MongoDB\Driver { use MongoDB\Driver\Exception\WriteException; use Traversable; - /** + /** * The MongoDB\Driver\Manager is the main entry point to the extension. It is responsible for maintaining connections to MongoDB (be it standalone server, replica set, or sharded cluster). * No connection to MongoDB is made upon instantiating the Manager. This means the MongoDB\Driver\Manager can always be constructed, even though one or more MongoDB servers are down. * Any write or query can throw connection exceptions as connections are created lazily. A MongoDB server may also become unavailable during the life time of the script. It is therefore important that all actions on the Manager to be wrapped in try/catch statements. @@ -1339,11 +1338,10 @@ namespace MongoDB\Driver { } namespace MongoDB\Driver\Exception { - use MongoDB\Driver\WriteResult; use Throwable; - /** + /** * Thrown when the driver encounters a runtime error (e.g. internal error from » libmongoc). * @link https://php.net/manual/en/class.mongodb-driver-exception-runtimeexception.php * @since 1.0.0 @@ -1486,9 +1484,9 @@ namespace MongoDB\Driver\Exception { class EncryptionException extends RuntimeException implements Exception {} } - /** - * @link https://secure.php.net/manual/en/mongodb.monitoring.php - */ +/** + * @link https://secure.php.net/manual/en/mongodb.monitoring.php + */ namespace MongoDB\Driver\Monitoring { /** @@ -1772,12 +1770,11 @@ namespace MongoDB\Driver\Monitoring { } } - /** - * @link https://php.net/manual/en/book.bson.php - */ +/** + * @link https://php.net/manual/en/book.bson.php + */ namespace MongoDB\BSON { - use DateTime; use DateTimeInterface; use JetBrains\PhpStorm\Deprecated; @@ -1785,7 +1782,7 @@ namespace MongoDB\BSON { use MongoDB\Driver\Exception\InvalidArgumentException; use MongoDB\Driver\Exception\UnexpectedValueException; - /** + /** * Converts a BSON string to its Canonical Extended JSON representation. * The canonical format prefers type fidelity at the expense of concise output and is most suited for producing * output that can be converted back to BSON without any loss of type information diff --git a/yaf/yaf_namespace.php b/yaf/yaf_namespace.php index 36ce276a..2b9399d9 100644 --- a/yaf/yaf_namespace.php +++ b/yaf/yaf_namespace.php @@ -17,10 +17,9 @@ namespace } namespace Yaf { - use Yaf; - /** +/** * \Yaf\Application provides a bootstrapping facility for applications which provides reusable resources, common- and module-based bootstrap classes and dependency checking. *
* Note: @@ -1885,7 +1884,6 @@ class Route_Static implements \Yaf\Route_Interface }} namespace Yaf\Response { - class Http extends \Yaf\Response_Abstract { /** @@ -1967,8 +1965,7 @@ class Cli extends \Yaf\Response_Abstract }} namespace Yaf\Request { - - /** +/** * @link https://secure.php.net/manual/en/class.yaf-request-http.php */ class Http extends \Yaf\Request_Abstract @@ -2178,8 +2175,7 @@ class Simple extends \Yaf\Request_Abstract }} namespace Yaf\Config { - - /** +/** *

\Yaf\Config\Ini enables developers to store configuration data in a familiar INI format and read them in the application by using nested object property syntax. The INI format is specialized to provide both the ability to have a hierarchy of configuration data keys and inheritance between configuration data sections. Configuration data hierarchies are supported by separating the keys with the dot or period character ("."). A section may extend or inherit from another section by following the section name with a colon character (":") and the name of the section from which data are to be inherited.


* Note: *

\Yaf\Config\Ini utilizes the » parse_ini_file() PHP function. Please review this documentation to be aware of its specific behaviors, which propagate to \Yaf\Config\Ini, such as how the special values of "TRUE", "FALSE", "yes", "no", and "NULL" are handled.

@@ -2385,8 +2381,7 @@ class Simple extends \Yaf\Config_Abstract implements \Iterator, \Traversable, \A }} namespace Yaf\View { - - /** +/** * \Yaf\View\Simple is the built-in template engine in Yaf, it is a simple but fast template engine, and only support PHP script template. * @link https://secure.php.net/manual/en/class.yaf-view-simple.php * @@ -2535,8 +2530,7 @@ class Simple implements \Yaf\View_Interface }} namespace Yaf\Route { - - /** +/** *

\Yaf\Route\Simple will match the query string, and find the route info.

*
*

all you need to do is tell \Yaf\Route\Simple what key in the $_GET is module, what key is controller, and what key is action.

@@ -2799,8 +2793,7 @@ final class Map implements \Yaf\Route_Interface }} namespace Yaf\Exception { - - /** +/** * @link https://secure.php.net/manual/en/class.yaf-exception-typeerror.php */ class TypeError extends \Yaf\Exception {}/**