Skip to content

Commit

Permalink
Optimised stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudboon committed Jan 21, 2020
1 parent e61310c commit 8f98719
Show file tree
Hide file tree
Showing 258 changed files with 23 additions and 836 deletions.
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<ImplementedParamTypeMismatch errorLevel="info" />
<MismatchingDocblockParamType errorLevel="info" />
<UndefinedDocblockClass errorLevel="info" />
<PropertyNotSetInConstructor errorLevel="info" />
<PropertyNotSetInConstructor errorLevel="suppress" />
<UndefinedClass errorLevel="info" />
<OverriddenPropertyAccess errorLevel="info" />
<InvalidPropertyAssignmentValue errorLevel="info" />
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Acl/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Acl\Adapter;

use Phalcon\Events\ManagerInterface;
use Phalcon\Events\EventsAwareInterface;

/**
* Adapter for Phalcon\Acl adapters
Expand Down
3 changes: 0 additions & 3 deletions src/Phalcon/Acl/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*/
namespace Phalcon\Acl\Adapter;

use Phalcon\Acl\ComponentInterface;
use Phalcon\Acl\RoleInterface;

/**
* Interface for Phalcon\Acl adapters
*/
Expand Down
9 changes: 0 additions & 9 deletions src/Phalcon/Acl/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@
namespace Phalcon\Acl\Adapter;

use Phalcon\Acl\Enum;
use Phalcon\Acl\Role;
use Phalcon\Acl\RoleInterface;
use Phalcon\Acl\Component;
use Phalcon\Acl\Exception;
use Phalcon\Events\Manager as EventsManager;
use Phalcon\Acl\RoleAware;
use Phalcon\Acl\ComponentAware;
use Phalcon\Acl\ComponentInterface;
use ReflectionFunction;

/**
* Manages ACL lists in memory
Expand Down
5 changes: 2 additions & 3 deletions src/Phalcon/Annotations/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reader;
use Phalcon\Annotations\Exception;
use Phalcon\Annotations\Collection;
use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\Reader;
use Phalcon\Annotations\ReaderInterface;
use Phalcon\Annotations\Reflection;

/**
* This is the base class for Phalcon\Annotations adapters
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Annotations/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\Collection;
use Phalcon\Annotations\ReaderInterface;
use Phalcon\Annotations\Reflection;

/**
* This interface must be implemented by adapters in Phalcon\Annotations
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Annotations/Adapter/Apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;

/**
* Stores the parsed annotations in APCu. This adapter is suitable for production
*
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Annotations/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;

/**
* Stores the parsed annotations in memory. This adapter is the suitable
* development/testing
Expand Down
4 changes: 0 additions & 4 deletions src/Phalcon/Annotations/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\Exception;
use RuntimeException;

/**
* Stores the parsed annotations in files. This adapter is suitable for production
*
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Annotations/AnnotationsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Phalcon\Annotations\Adapter\AdapterInterface;
use Phalcon\Factory\AbstractFactory;
use Phalcon\Helper\Arr;

/**
* Factory to create annotations components
Expand Down
3 changes: 0 additions & 3 deletions src/Phalcon/Annotations/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*/
namespace Phalcon\Annotations;

use Countable;
use Iterator;

/**
* Represents a collection of annotations. This class allows to traverse a group
* of annotations easily
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Annotations/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Annotations;

use ReflectionClass;

/**
* Parses docblocks returning an array with the found annotations
*/
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Application/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Phalcon\Di\DiInterface;
use Phalcon\Di\Injectable;
use Phalcon\Events\EventsAwareInterface;
use Phalcon\Events\ManagerInterface;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Asset/Css.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Asset;

use Phalcon\Assets\Asset as AssetBase;

/**
* Represents CSS assets
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Asset/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Asset;

use Phalcon\Assets\Asset as AssetBase;

/**
* Represents Javascript assets
*/
Expand Down
7 changes: 0 additions & 7 deletions src/Phalcon/Assets/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
*/
namespace Phalcon\Assets;

use Countable;
use Iterator;
use Phalcon\Assets\Asset\Css as AssetCss;
use Phalcon\Assets\Asset\Js as AssetJs;
use Phalcon\Assets\Inline\Js as InlineJs;
use Phalcon\Assets\Inline\Css as InlineCss;

/**
* Represents a collection of assets
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Filters/Cssmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Minify the css - removes comments removes newlines and line feeds keeping
* removes last semicolon from last property
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Filters/Jsmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Deletes the characters which are insignificant to JavaScript. Comments will
* be removed. Tabs will be replaced with spaces. Carriage returns will be
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Filters/None.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Returns the content without make any modification to the original source
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Inline/Css.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Inline;

use Phalcon\Assets\Inline as InlineBase;

/**
* Represents an inlined CSS
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Assets/Inline/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Assets\Inline;

use Phalcon\Assets\Inline as InlineBase;

/**
* Represents an inline JavaScript
*/
Expand Down
6 changes: 0 additions & 6 deletions src/Phalcon/Assets/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
*/
namespace Phalcon\Assets;

use Phalcon\Tag;
use Phalcon\Assets\Asset\Js as AssetJs;
use Phalcon\Assets\Asset\Css as AssetCss;
use Phalcon\Assets\Inline\Css as InlineCss;
use Phalcon\Assets\Inline\Js as InlineJs;
use Phalcon\Di\DiInterface;
use Phalcon\Di\AbstractInjectionAware;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
namespace Phalcon;

use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache\Exception\Exception;
use Phalcon\Cache\Exception\InvalidArgumentException;
use Psr\SimpleCache\CacheInterface;
use Traversable;

/**
* This component offers caching capabilities for your application.
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cache/Adapter/Apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Apcu as StorageApcu;

/**
* Apcu adapter
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cache/Adapter/Libmemcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Libmemcached as StorageLibmemcached;

/**
* Libmemcached adapter
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cache/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Memory as StorageMemory;

/**
* Memory adapter
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cache/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Redis as StorageRedis;

/**
* Redis adapter
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cache/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Stream as StorageStream;

/**
* Stream adapter
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cache/AdapterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cache;

use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache\Exception\Exception;
use Phalcon\Factory\AbstractFactory;
use Phalcon\Storage\SerializerFactory;

Expand Down
5 changes: 0 additions & 5 deletions src/Phalcon/Cache/CacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
*/
namespace Phalcon\Cache;

use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache;
use Psr\SimpleCache\CacheInterface;
use Phalcon\Cache\Exception\Exception;
use Phalcon\Config;
use Phalcon\Helper\Arr;

/**
* Creates a new Cache class
Expand Down
4 changes: 0 additions & 4 deletions src/Phalcon/Cli/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
namespace Phalcon\Cli;

use Phalcon\Application\AbstractApplication;
use Phalcon\Cli\Router\Route;
use Phalcon\Cli\Console\Exception;
use Phalcon\Di\DiInterface;
use Phalcon\Events\ManagerInterface;

/**
* This component allows to create CLI applications using Phalcon
Expand Down
5 changes: 0 additions & 5 deletions src/Phalcon/Cli/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
*/
namespace Phalcon\Cli;

use Phalcon\Cli\Dispatcher\Exception;
use Phalcon\Dispatcher\AbstractDispatcher as CliDispatcher;
use Phalcon\Events\ManagerInterface;
use Phalcon\Filter\FilterInterface;

/**
* Dispatching is the process of taking the command-line arguments, extracting
* the module name, task name, action name, and optional parameters contained in
Expand Down
5 changes: 1 addition & 4 deletions src/Phalcon/Cli/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
*/
namespace Phalcon\Cli;

use Phalcon\Di\DiInterface;
use Phalcon\Di\AbstractInjectionAware;
use Phalcon\Cli\Router\Route;
use Phalcon\Cli\Router\Exception;
use Phalcon\Cli\Router\RouteInterface;
use Phalcon\Di\AbstractInjectionAware;

/**
* Phalcon\Cli\Router is the standard framework router. Routing is the process
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Cli/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Cli;

use Phalcon\Di\Injectable;
use Phalcon\Events\EventsAwareInterface;
use Phalcon\Events\ManagerInterface;

/**
Expand Down
7 changes: 0 additions & 7 deletions src/Phalcon/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
*/
namespace Phalcon;

use ArrayAccess;
use ArrayIterator;
use Countable;
use IteratorAggregate;
use JsonSerializable;
use Phalcon\Helper\Json;
use Serializable;
use Traversable;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Phalcon/Collection/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace Phalcon\Collection;

use Throwable;

/**
* Exceptions for the Collection object
*/
Expand Down
3 changes: 0 additions & 3 deletions src/Phalcon/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*/
namespace Phalcon;

use Phalcon\Collection;
use Phalcon\Config\Exception;

/**
* `Phalcon\Config` is designed to simplify the access to, and the use of,
* configuration data within applications. It provides a nested object property
Expand Down
3 changes: 0 additions & 3 deletions src/Phalcon/Config/Adapter/Grouped.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Config\Exception;
use Phalcon\Factory\Exception as FactoryException;
use Phalcon\Config\ConfigFactory;

/**
* Reads multiple files (or arrays) and merges them all together.
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Config/Adapter/Ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Config\Exception;

/**
* Reads ini files and converts them to Phalcon\Config objects.
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Config/Adapter/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Helper\Json as JsonHelper;

/**
* Reads JSON files and converts them to Phalcon\Config objects.
Expand Down
Loading

0 comments on commit 8f98719

Please sign in to comment.