Test Failed
Push — master ( 4fb840...dcd993 )
by Adam
01:52
created
src/IPub/Packages/Entities/IPackage.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           27.09.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Entities;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Entities/VirtualPackage.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           21.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Entities;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Entities/Package.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           27.09.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Entities;
18 18
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		$this->composerData = $composerData;
50 50
 
51 51
 		if (!isset($composerData['name'])) {
52
-			throw new Exceptions\UnexpectedValueException('Unknown package, has no name defined (' . json_encode($composerData) . ').');
52
+			throw new Exceptions\UnexpectedValueException('Unknown package, has no name defined ('.json_encode($composerData).').');
53 53
 		}
54 54
 	}
55 55
 
Please login to merge, or discard this patch.
src/IPub/Packages/Scripts/ConfigurationScript.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           25.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Scripts;
18 18
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 	 */
185 185
 	private function getConfigPath() : string
186 186
 	{
187
-		return $this->configDir . DIRECTORY_SEPARATOR . $this->configFile;
187
+		return $this->configDir.DIRECTORY_SEPARATOR.$this->configFile;
188 188
 	}
189 189
 
190 190
 	/**
Please login to merge, or discard this patch.
src/IPub/Packages/Scripts/IScript.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           25.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Scripts;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Installers/IInstaller.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           25.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Installers;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Repository/Repository.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           30.05.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Repository;
18 18
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 		$this->packages = [];
229 229
 
230 230
 		foreach ($this->paths as $path) {
231
-			$files = glob($path . DIRECTORY_SEPARATOR . '*' . DIRECTORY_SEPARATOR . '*' . DIRECTORY_SEPARATOR . 'composer.json', GLOB_NOSORT) ?: [];
231
+			$files = glob($path.DIRECTORY_SEPARATOR.'*'.DIRECTORY_SEPARATOR.'*'.DIRECTORY_SEPARATOR.'composer.json', GLOB_NOSORT) ?: [];
232 232
 
233 233
 			foreach ($files as $file) {
234 234
 				/** @var Entities\IPackage $package */
Please login to merge, or discard this patch.
src/IPub/Packages/Repository/IRepository.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         30.05.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Repository;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/PackagesManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           30.05.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages;
18 18
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 			throw new \RuntimeException('Package path is missing.');
175 175
 		}
176 176
 
177
-		if (!file_exists($file = $path . DIRECTORY_SEPARATOR . 'composer.json')) {
177
+		if (!file_exists($file = $path.DIRECTORY_SEPARATOR.'composer.json')) {
178 178
 			throw new \RuntimeException('\'composer.json\' is missing.');
179 179
 		}
180 180
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 			return $packageData['version'];
185 185
 		}
186 186
 
187
-		if (file_exists($file = $this->vendorDir . DIRECTORY_SEPARATOR . 'composer' . DIRECTORY_SEPARATOR . 'installed.json')) {
187
+		if (file_exists($file = $this->vendorDir.DIRECTORY_SEPARATOR.'composer'.DIRECTORY_SEPARATOR.'installed.json')) {
188 188
 			$installed = Utils\Json::decode(file_get_contents($file), Utils\Json::FORCE_ARRAY);
189 189
 
190 190
 			foreach ($installed as $packageData) {
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 
581 581
 		// Check if package is registered
582 582
 		if (!$packagesConfig->offsetExists($package->getName())) {
583
-			throw new Exceptions\InvalidStateException(sprintf('Package "%s" is not registered. Please call ' . get_called_class() . '::registerAvailable first.', $package->getName()));
583
+			throw new Exceptions\InvalidStateException(sprintf('Package "%s" is not registered. Please call '.get_called_class().'::registerAvailable first.', $package->getName()));
584 584
 		}
585 585
 
586 586
 		$packagesConfig[$package->getName()][self::PACKAGE_STATUS] = $status;
@@ -666,6 +666,6 @@  discard block
 block discarded – undo
666 666
 	 */
667 667
 	private function getPackageConfigPath() : string
668 668
 	{
669
-		return $this->configDir . DIRECTORY_SEPARATOR . 'packages.php';
669
+		return $this->configDir.DIRECTORY_SEPARATOR.'packages.php';
670 670
 	}
671 671
 }
Please login to merge, or discard this patch.