Passed
Push — master ( a2423b...c3434c )
by Adam
43s queued 12s
created
src/IPub/Flysystem/Factories/Adapters/MemoryFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\Flysystem\Factories\Adapters;
18 18
 
19 19
 use Nette\Utils;
20
-
21 20
 use League\Flysystem\Memory;
22 21
 
23 22
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           23.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Adapters;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Flysystem/Factories/Adapters/NullFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\Flysystem\Factories\Adapters;
18 18
 
19 19
 use Nette\Utils;
20
-
21 20
 use League\Flysystem\Adapter;
22 21
 
23 22
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           23.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Adapters;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Flysystem/Factories/Cache/MemoryFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
19 19
 use Nette\Utils;
20
-
21 20
 use League\Flysystem\Cached;
22 21
 
23 22
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           23.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Flysystem/Loaders/NeonFileLoader.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 	use Nette\SmartObject;
39 39
 
40 40
 	/**
41
-	 * @param $resource
41
+	 * @param string $resource
42 42
 	 *
43 43
 	 * @return array
44 44
 	 */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Nette;
20 20
 use Nette\Neon;
21 21
 use Nette\Utils;
22
-
23 22
 use IPub\Flysystem\Exceptions;
24 23
 
25 24
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           12.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Loaders;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Flysystem/Factories/Cache/NoopFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
19 19
 use Nette\Utils;
20
-
21 20
 use League\Flysystem\Cached;
22 21
 
23 22
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           26.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Flysystem/DI/FlysystemExtension.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,7 @@
 block discarded – undo
19 19
 use Nette;
20 20
 use Nette\DI;
21 21
 use Nette\Utils;
22
-
23 22
 use League\Flysystem;
24
-
25 23
 use IPub\Flysystem\Exceptions;
26 24
 use IPub\Flysystem\Factories;
27 25
 use IPub\Flysystem\Loaders;
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           05.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\DI;
18 18
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 			// Check if filesystem is with cache
72 72
 			if (array_key_exists('cache', $filesystem)) {
73 73
 				// Create adapter name
74
-				$adapterName = 'cached_' . $filesystem['adapter'] . '_' . $filesystem['cache'] . '_' . uniqid();
74
+				$adapterName = 'cached_'.$filesystem['adapter'].'_'.$filesystem['cache'].'_'.uniqid();
75 75
 
76 76
 				// Create cached adapter
77 77
 				$this->registerService(
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 					Flysystem\Cached\CachedAdapter::class,
81 81
 					'IPub\Flysystem\Factories\Adapters\CachedFactory::create',
82 82
 					[
83
-						'adapterServiceName' => $this->prefix('adapters.' . $filesystem['adapter']),
84
-						'cacheServiceName'   => $this->prefix('cache.' . $filesystem['cache']),
83
+						'adapterServiceName' => $this->prefix('adapters.'.$filesystem['adapter']),
84
+						'cacheServiceName'   => $this->prefix('cache.'.$filesystem['cache']),
85 85
 					]
86 86
 				);
87 87
 
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
 				$adapterName = $filesystem['adapter'];
90 90
 			}
91 91
 
92
-			$builder->addDefinition($this->prefix('filesystem.' . $name))
92
+			$builder->addDefinition($this->prefix('filesystem.'.$name))
93 93
 				->setType(Flysystem\Filesystem::class)
94
-				->setArguments(['adapter' => '@' . $this->prefix('adapters.' . $adapterName)])
94
+				->setArguments(['adapter' => '@'.$this->prefix('adapters.'.$adapterName)])
95 95
 				->addTag('ipub.flysystem.filesystem');
96 96
 
97
-			$mountManager->addSetup('?->mountFilesystem(?, ?)', [$mountManager, $name, '@' . $this->prefix('filesystem.' . $name)]);
97
+			$mountManager->addSetup('?->mountFilesystem(?, ?)', [$mountManager, $name, '@'.$this->prefix('filesystem.'.$name)]);
98 98
 		}
99 99
 	}
100 100
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		$neonAdapter = new Loaders\NeonFileLoader;
113 113
 
114 114
 		// Load adapters factories list
115
-		$definitions = $neonAdapter->load(__DIR__ . DIRECTORY_SEPARATOR . $type . '.neon');
115
+		$definitions = $neonAdapter->load(__DIR__.DIRECTORY_SEPARATOR.$type.'.neon');
116 116
 
117 117
 		foreach ($services as $serviceName => $configuration) {
118 118
 			if (isset($configuration['type']) && array_key_exists($configuration['type'], $definitions)) {
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
 		/** @var DI\ContainerBuilder $builder */
149 149
 		$builder = $this->getContainerBuilder();
150 150
 
151
-		$builder->addDefinition($this->prefix($type . '.' . $name))
151
+		$builder->addDefinition($this->prefix($type.'.'.$name))
152 152
 			->setType($class)
153 153
 			->setFactory($factory)
154 154
 			->setArguments($arguments)
155
-			->addTag('ipub.flysystem.' . $type);
155
+			->addTag('ipub.flysystem.'.$type);
156 156
 	}
157 157
 
158 158
 	/**
Please login to merge, or discard this patch.
src/IPub/Flysystem/Factories/Cache/AdapterFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           26.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	public static function create(Utils\ArrayHash $parameters, DI\Container $container) : Cached\Storage\Adapter
41 41
 	{
42 42
 		/** @var Flysystem\AdapterInterface $adapter */
43
-		$adapter = $container->getService($parameters->extensionPrefix . '.adapters.' . $parameters->adapter);
43
+		$adapter = $container->getService($parameters->extensionPrefix.'.adapters.'.$parameters->adapter);
44 44
 
45 45
 		return new Cached\Storage\Adapter($adapter, $parameters->file, $parameters->expires);
46 46
 	}
Please login to merge, or discard this patch.
src/IPub/Flysystem/Factories/Cache/StashFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           26.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Flysystem/Factories/Cache/PredisFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           26.04.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Flysystem\Factories\Cache;
18 18
 
Please login to merge, or discard this patch.