Completed
Push — master ( e659d7...84abc4 )
by Adam
04:50 queued 01:03
created
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.
src/IPub/Packages/Helpers/PathResolver.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           19.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Helpers;
18 18
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 			throw new Exceptions\InvalidArgumentException(sprintf('Package \'%s\' does not exist.', $package));
82 82
 		}
83 83
 
84
-		$path = $this->repository->findPackage($package)->getPath() . ($localPrefix ? '/' . $localPrefix : '') . ($pos ? substr($path, $pos) : '');
84
+		$path = $this->repository->findPackage($package)->getPath().($localPrefix ? '/'.$localPrefix : '').($pos ? substr($path, $pos) : '');
85 85
 
86 86
 		return Utils\Strings::replace($path, '~\\\~', '/');
87 87
 	}
Please login to merge, or discard this patch.
src/IPub/Packages/DependencyResolver/Solver.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.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\DependencyResolver;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/DependencyResolver/Problem.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.06.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\DependencyResolver;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Exceptions/InvalidArgumentException.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.03.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Exceptions;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Exceptions/InvalidPackageDefinitionException.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\Exceptions;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Exceptions/UnexpectedValueException.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.03.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Exceptions;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Exceptions/LogicException.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.03.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Exceptions;
18 18
 
Please login to merge, or discard this patch.
src/IPub/Packages/Exceptions/NotWritableException.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.03.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\Packages\Exceptions;
18 18
 
Please login to merge, or discard this patch.