Completed
Push — develop ( 20327f...69b019 )
by Neomerx
10:22 queued 02:22
created
src/Validation/JsonApi/ValidatorWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     protected function setWrapperErrors(array $wrapperErrors): self
163 163
     {
164 164
         if (empty($wrapperErrors) === false) {
165
-            assert(call_user_func(function () use ($wrapperErrors) : bool {
165
+            assert(call_user_func(function() use ($wrapperErrors) : bool {
166 166
                 $allAreErrors = true;
167 167
 
168 168
                 foreach ($wrapperErrors as $error) {
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/ExistInDbTableMultipleWithDoctrine.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,8 +105,7 @@
 block discarded – undo
105 105
         }
106 106
 
107 107
         $reply = $count > 0 ?
108
-            BlockReplies::createSuccessReply($values) :
109
-            BlockReplies::createErrorReply($context, $values, ErrorCodes::EXIST_IN_DATABASE_MULTIPLE);
108
+            BlockReplies::createSuccessReply($values) : BlockReplies::createErrorReply($context, $values, ErrorCodes::EXIST_IN_DATABASE_MULTIPLE);
110 109
 
111 110
         return $reply;
112 111
     }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/ToManyRelationshipTypeChecker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,7 @@
 block discarded – undo
86 86
         }
87 87
 
88 88
         $reply = $foundInvalidType === null ?
89
-            BlockReplies::createSuccessReply($indexes) :
90
-            BlockReplies::createErrorReply($context, $foundInvalidType, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
89
+            BlockReplies::createSuccessReply($indexes) : BlockReplies::createErrorReply($context, $foundInvalidType, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
91 90
 
92 91
         return $reply;
93 92
     }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/ToOneRelationshipTypeChecker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@
 block discarded – undo
77 77
         assert(is_scalar($index) === true && is_scalar($type) === true);
78 78
         $expectedType = $context->getProperties()->getProperty(self::PROPERTY_RESOURCE_TYPE);
79 79
         $reply = $type === $expectedType ?
80
-            BlockReplies::createSuccessReply($index) :
81
-            BlockReplies::createErrorReply($context, $type, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
80
+            BlockReplies::createSuccessReply($index) : BlockReplies::createErrorReply($context, $type, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
82 81
 
83 82
         return $reply;
84 83
     }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/UniqueInDbTableSingleWithDoctrine.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
         }
102 102
 
103 103
         $reply = $count <= 0 ?
104
-            BlockReplies::createSuccessReply($value) :
105
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::UNIQUE_IN_DATABASE_SINGLE);
104
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::UNIQUE_IN_DATABASE_SINGLE);
106 105
 
107 106
         return $reply;
108 107
     }
Please login to merge, or discard this patch.
src/Validation/JsonApi/Rules/ExistInDbTableSingleWithDoctrine.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
         }
102 102
 
103 103
         $reply = $count > 0 ?
104
-            BlockReplies::createSuccessReply($value) :
105
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
104
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
106 105
 
107 106
         return $reply;
108 107
     }
Please login to merge, or discard this patch.
src/Package/FluteContainerConfigurator.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -54,22 +54,22 @@  discard block
 block discarded – undo
54 54
 
55 55
         $container[FactoryInterface::class] = $factory;
56 56
 
57
-        $container[JsonSchemesInterface::class] = function (PsrContainerInterface $container) use ($factory) {
57
+        $container[JsonSchemesInterface::class] = function(PsrContainerInterface $container) use ($factory) {
58 58
             $settings     = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class);
59 59
             $modelSchemes = $container->get(ModelSchemeInfoInterface::class);
60 60
 
61 61
             return $factory->createJsonSchemes($settings[FluteSettings::KEY_MODEL_TO_SCHEME_MAP], $modelSchemes);
62 62
         };
63 63
 
64
-        $container[QueryParserInterface::class] = function (PsrContainerInterface $container) {
64
+        $container[QueryParserInterface::class] = function(PsrContainerInterface $container) {
65 65
             return new QueryParser($container->get(PaginationStrategyInterface::class));
66 66
         };
67 67
 
68
-        $container[ParametersMapperInterface::class] = function (PsrContainerInterface $container) {
68
+        $container[ParametersMapperInterface::class] = function(PsrContainerInterface $container) {
69 69
             return new ParametersMapper($container->get(JsonSchemesInterface::class));
70 70
         };
71 71
 
72
-        $container[EncoderInterface::class] = function (PsrContainerInterface $container) use ($factory) {
72
+        $container[EncoderInterface::class] = function(PsrContainerInterface $container) use ($factory) {
73 73
             /** @var JsonSchemesInterface $jsonSchemes */
74 74
             $jsonSchemes = $container->get(JsonSchemesInterface::class);
75 75
             $settings    = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return $encoder;
85 85
         };
86 86
 
87
-        $container[PaginationStrategyInterface::class] = function (PsrContainerInterface $container) {
87
+        $container[PaginationStrategyInterface::class] = function(PsrContainerInterface $container) {
88 88
             $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class);
89 89
 
90 90
             return new PaginationStrategy(
@@ -93,19 +93,19 @@  discard block
 block discarded – undo
93 93
             );
94 94
         };
95 95
 
96
-        $container[JsonApiValidatorFactoryInterface::class] = function (PsrContainerInterface $container) {
96
+        $container[JsonApiValidatorFactoryInterface::class] = function(PsrContainerInterface $container) {
97 97
             $factory = new JsonApiValidatorFactory($container);
98 98
 
99 99
             return $factory;
100 100
         };
101 101
 
102
-        $container[FormValidatorFactoryInterface::class] = function (PsrContainerInterface $container) {
102
+        $container[FormValidatorFactoryInterface::class] = function(PsrContainerInterface $container) {
103 103
             $factory = new FormValidatorFactory($container);
104 104
 
105 105
             return $factory;
106 106
         };
107 107
 
108
-        $container[QueryValidatorFactoryInterface::class] = function (PsrContainerInterface $container) {
108
+        $container[QueryValidatorFactoryInterface::class] = function(PsrContainerInterface $container) {
109 109
             /** @var PaginationStrategyInterface $paginationStrategy */
110 110
             $paginationStrategy = $container->get(PaginationStrategyInterface::class);
111 111
             $settings           = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public static function configureExceptionHandler(LimoncelloContainerInterface $container)
139 139
     {
140
-        $container[ThrowableHandlerInterface::class] = function (PsrContainerInterface $container) {
140
+        $container[ThrowableHandlerInterface::class] = function(PsrContainerInterface $container) {
141 141
             /** @var CacheSettingsProviderInterface $provider */
142 142
             $provider      = $container->get(CacheSettingsProviderInterface::class);
143 143
             $appConfig     = $provider->getApplicationConfiguration();
Please login to merge, or discard this patch.
src/Package/FluteSettings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,9 +133,9 @@
 block discarded – undo
133 133
         );
134 134
         assert(empty($formsValFileMask) === false, "Invalid Forms Validators file mask `$formsValFileMask`.");
135 135
 
136
-        $schemesPath         = $schemesFolder . DIRECTORY_SEPARATOR . $schemesFileMask;
137
-        $jsonValidatorsPath  = $jsonValFolder . DIRECTORY_SEPARATOR . $jsonValFileMask;
138
-        $formsValidatorsPath = $formsValFolder . DIRECTORY_SEPARATOR . $formsValFileMask;
136
+        $schemesPath         = $schemesFolder.DIRECTORY_SEPARATOR.$schemesFileMask;
137
+        $jsonValidatorsPath  = $jsonValFolder.DIRECTORY_SEPARATOR.$jsonValFileMask;
138
+        $formsValidatorsPath = $formsValFolder.DIRECTORY_SEPARATOR.$formsValFileMask;
139 139
 
140 140
         $requireUniqueTypes = $defaults[static::KEY_SCHEMES_REQUIRE_UNIQUE_TYPES] ?? true;
141 141
 
Please login to merge, or discard this patch.