Completed
Push — master ( 52d21c...db66d7 )
by Adam
02:02
created
src/IPub/Flysystem/DI/FlysystemExtension.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			// Check if filesystem is with cache
67 67
 			if (array_key_exists('cache', $filesystem)) {
68 68
 				// Create adapter name
69
-				$adapterName = 'cached_' . $filesystem['adapter'] . '_' . $filesystem['cache'] . '_' . uniqid();
69
+				$adapterName = 'cached_'.$filesystem['adapter'].'_'.$filesystem['cache'].'_'.uniqid();
70 70
 
71 71
 				// Create cached adapter
72 72
 				$this->registerService(
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 					Flysystem\Cached\CachedAdapter::class,
76 76
 					'IPub\Flysystem\Factories\Adapters\CachedFactory::create',
77 77
 					[
78
-						'adapterServiceName' => $this->prefix('adapters.' . $filesystem['adapter']),
79
-						'cacheServiceName'   => $this->prefix('cache.' . $filesystem['cache']),
78
+						'adapterServiceName' => $this->prefix('adapters.'.$filesystem['adapter']),
79
+						'cacheServiceName'   => $this->prefix('cache.'.$filesystem['cache']),
80 80
 					]
81 81
 				);
82 82
 
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
 				$adapterName = $filesystem['adapter'];
85 85
 			}
86 86
 
87
-			$builder->addDefinition($this->prefix('filesystem.' . $name))
87
+			$builder->addDefinition($this->prefix('filesystem.'.$name))
88 88
 				->setType(Flysystem\Filesystem::class)
89
-				->setArguments(['adapter' => '@' . $this->prefix('adapters.' . $adapterName)])
89
+				->setArguments(['adapter' => '@'.$this->prefix('adapters.'.$adapterName)])
90 90
 				->addTag('ipub.flysystem.filesystem');
91 91
 
92
-			$mountManager->addSetup('?->mountFilesystem(?, ?)', [$mountManager, $name, '@' . $this->prefix('filesystem.' . $name)]);
92
+			$mountManager->addSetup('?->mountFilesystem(?, ?)', [$mountManager, $name, '@'.$this->prefix('filesystem.'.$name)]);
93 93
 		}
94 94
 	}
95 95
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		$neonAdapter = new Loaders\NeonFileLoader;
106 106
 
107 107
 		// Load adapters factories list
108
-		$definitions = $neonAdapter->load(__DIR__ . DIRECTORY_SEPARATOR . $type . '.neon');
108
+		$definitions = $neonAdapter->load(__DIR__.DIRECTORY_SEPARATOR.$type.'.neon');
109 109
 
110 110
 		foreach ($services as $serviceName => $configuration) {
111 111
 			if (isset($configuration['type']) && array_key_exists($configuration['type'], $definitions)) {
@@ -141,11 +141,11 @@  discard block
 block discarded – undo
141 141
 		/** @var DI\ContainerBuilder $builder */
142 142
 		$builder = $this->getContainerBuilder();
143 143
 
144
-		$builder->addDefinition($this->prefix($type . '.' . $name))
144
+		$builder->addDefinition($this->prefix($type.'.'.$name))
145 145
 			->setType($class)
146 146
 			->setFactory($factory)
147 147
 			->setArguments($arguments)
148
-			->addTag('ipub.flysystem.' . $type);
148
+			->addTag('ipub.flysystem.'.$type);
149 149
 	}
150 150
 
151 151
 	/**
Please login to merge, or discard this patch.