Passed
Push — master ( b4eada...a03493 )
by Tomáš
04:06
created
packages/rabbitmq-symfony/tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 require_once __DIR__ . '/../vendor/autoload.php';
Please login to merge, or discard this patch.
packages/doctrine/tests/Adapter/Nette/Tracy/HelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\Doctrine\Tests\Adapter\Nette\Tracy;
4 4
 
Please login to merge, or discard this patch.
packages/doctrine/tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 require_once __DIR__ . '/../vendor/autoload.php';
Please login to merge, or discard this patch.
packages/doctrine/src/Contract/Provider/EntitySourceProviderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\Doctrine\Contract\Provider;
4 4
 
Please login to merge, or discard this patch.
packages/doctrine/src/Adapter/Nette/DI/DoctrineExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\Doctrine\Adapter\Nette\DI;
4 4
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
 	protected function processSecondLevelCache(string $name, stdClass $config): void
296 296
 	{
297
-		if (! $config->enabled) {
297
+		if ( ! $config->enabled) {
298 298
 			return;
299 299
 		}
300 300
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 			}
453 453
 
454 454
 			$helperSets = $containerBuilder->findByType(HelperSet::class);
455
-			if (! empty($helperSets)) {
455
+			if ( ! empty($helperSets)) {
456 456
 				/** @var ServiceDefinition $helperSet */
457 457
 				$helperSet = reset($helperSets);
458 458
 				$helperSet->addSetup('set', [new Statement(EntityManagerHelper::class), 'em']);
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/Schema/SchemaCacheProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL\Schema;
4 4
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
 	private function getTypesCacheFile(string $cacheKey): string
104 104
 	{
105
-		if (! file_exists($this->cacheDir)) {
105
+		if ( ! file_exists($this->cacheDir)) {
106 106
 			mkdir($this->cacheDir, 0777, true);
107 107
 		}
108 108
 		return $this->cacheDir . '/types-' . $cacheKey . '.php';
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
 	private function getSchemaCacheFile(string $cacheKey): string
113 113
 	{
114
-		if (! file_exists($this->cacheDir)) {
114
+		if ( ! file_exists($this->cacheDir)) {
115 115
 			mkdir($this->cacheDir, 0777, true);
116 116
 		}
117 117
 		return $this->cacheDir . '/schema-' . $cacheKey . '.php';
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
 
121 121
 	private function getTypeConfigDecorator(): Closure
122 122
 	{
123
-		return function (array $typeConfig) {
124
-			$typeConfig['resolveField'] = function ($value, $args, $context, ResolveInfo $info) use ($typeConfig) {
123
+		return function(array $typeConfig) {
124
+			$typeConfig['resolveField'] = function($value, $args, $context, ResolveInfo $info) use ($typeConfig) {
125 125
 				$fieldName = (string) $info->fieldName;
126 126
 
127 127
 				switch ($typeConfig['name']) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 				}
166 166
 			};
167 167
 
168
-			$typeConfig['parseValue'] = function ($value) use ($typeConfig) {
168
+			$typeConfig['parseValue'] = function($value) use ($typeConfig) {
169 169
 				$customType = Types::findByName($typeConfig['name']);
170 170
 				if ($customType instanceof ScalarType) {
171 171
 					return $customType->parseValue($value);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 				return $value;
175 175
 			};
176 176
 
177
-			$typeConfig['parseLiteral'] = function ($valueNode, ?array $variables = null) use ($typeConfig) {
177
+			$typeConfig['parseLiteral'] = function($valueNode, ?array $variables = null) use ($typeConfig) {
178 178
 				$customType = Types::findByName($typeConfig['name']);
179 179
 				if ($customType instanceof ScalarType) {
180 180
 					return $customType->parseLiteral($valueNode, $variables);
Please login to merge, or discard this patch.
packages/graphql/src/GraphQL/Type/Scalar/DateType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Portiny\GraphQL\GraphQL\Type\Scalar;
4 4
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function serialize($value): string
30 30
 	{
31
-		if (! $value instanceof DateTimeInterface) {
31
+		if ( ! $value instanceof DateTimeInterface) {
32 32
 			$printedValue = Utils::printSafe($value);
33 33
 			throw new InvariantViolation('DateTime is not an instance of DateTimeImmutable: ' . $printedValue);
34 34
 		}
Please login to merge, or discard this patch.