Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
- Yet another code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 18, 2018
1 parent a719109 commit a2423b5
Show file tree
Hide file tree
Showing 32 changed files with 40 additions and 35 deletions.
10 changes: 8 additions & 2 deletions src/IPub/Flysystem/DI/FlysystemExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage DI
* @since 1.0.0
Expand All @@ -19,7 +19,6 @@
use Nette;
use Nette\DI;
use Nette\Utils;
use Nette\PhpGenerator as Code;

use League\Flysystem;

Expand All @@ -46,6 +45,11 @@ class FlysystemExtension extends DI\CompilerExtension
'filesystems' => [],
];

/**
* @void
*
* @throws Utils\AssertionException
*/
public function loadConfiguration() : void
{
/** @var DI\ContainerBuilder $builder */
Expand Down Expand Up @@ -98,6 +102,8 @@ public function loadConfiguration() : void
* @param string $type
*
* @return void
*
* @throws Utils\AssertionException
*/
private function loadServices(array $services, string $type) : void
{
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/DI/adapters.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# @copyright More in license.md
# @license https://www.ipublikuj.eu
# @author Adam Kadlec https://www.ipublikuj.eu
# @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
# @package iPublikuj:Flysystem!
# @subpackage DI
# @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/DI/cache.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# @copyright More in license.md
# @license https://www.ipublikuj.eu
# @author Adam Kadlec https://www.ipublikuj.eu
# @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
# @package iPublikuj:Flysystem!
# @subpackage DI
# @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Exceptions/IException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Exceptions/InvalidAdapterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Exceptions/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Exceptions/InvalidResourceException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Exceptions
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/AwsS3v2Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/AwsS3v3Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/AzureFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
5 changes: 2 additions & 3 deletions src/IPub/Flysystem/Factories/Adapters/CachedFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand All @@ -17,7 +17,6 @@
namespace IPub\Flysystem\Factories\Adapters;

use Nette\DI;
use Nette\Utils;

use League\Flysystem\Cached;

Expand All @@ -34,7 +33,7 @@ class CachedFactory
/**
* @param string $adapterServiceName
* @param string $cacheServiceName
* @param Nette\DI\Container $container
* @param DI\Container $container
*
* @return Cached\CachedAdapter
*/
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/DropboxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/FtpFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/GridFSFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/LocalFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/MemoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/NullFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/RackspaceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/SftpFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/WebDAVFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Adapters/ZipFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Adapters
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Cache/AdapterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Cache
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Cache/MemcachedFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Cache
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Cache/MemoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Cache
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Cache/NoopFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Cache
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Cache/PredisFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Cache
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Factories/Cache/StashFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Cache
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Flysystem/Loaders/NeonFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Loaders
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion tests/IPubTests/Flysystem/ExtensionTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Tests
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion tests/IPubTests/Flysystem/FilesystemTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @copyright More in license.md
* @license https://www.ipublikuj.eu
* @author Adam Kadlec https://www.ipublikuj.eu
* @author Adam Kadlec <adam.kadlec@ipublikuj.eu>
* @package iPublikuj:Flysystem!
* @subpackage Tests
* @since 1.0.0
Expand Down

0 comments on commit a2423b5

Please sign in to comment.