GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — dev ( 4095d1...89bae3 )
by Андрей
04:02
created
src/EntityRepository/DoctrineWorkflowStory/ExtEntryRepository.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link  https://github.com/old-town/workflow-zf2-toolkit
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link  https://github.com/old-town/workflow-zf2-toolkit
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Toolkit\Validator;
7 7
 
8 8
 use Zend\Validator\AbstractValidator;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @throws \Doctrine\ORM\NonUniqueResultException
26 26
      * @throws \Doctrine\ORM\NoResultException
27 27
      */
28
-    public function findEntryByObjectInfo($workflowName, array $objectHash = [])
28
+    public function findEntryByObjectInfo($workflowName, array $objectHash = [ ])
29 29
     {
30 30
         $entryClassName = ExtEntry::class;
31 31
 
Please login to merge, or discard this patch.
src/WorkflowRunParams/EntryIdResolver.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link  https://github.com/old-town/workflow-zf2-toolkit
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link  https://github.com/old-town/workflow-zf2-toolkit
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Toolkit\Validator;
7 7
 
8 8
 use Zend\Validator\AbstractValidator;
Please login to merge, or discard this patch.
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -103,16 +103,16 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @param array $options
105 105
      */
106
-    public function __construct(array $options = [])
106
+    public function __construct(array $options = [ ])
107 107
     {
108 108
         $initOptions = [
109
-            array_key_exists('doctrineWorkflowStoryService', $options) ? $options['doctrineWorkflowStoryService'] : null,
110
-            array_key_exists('moduleOptions', $options) ? $options['moduleOptions'] : null,
111
-            array_key_exists('workflowService', $options) ? $options['workflowService'] : null,
112
-            array_key_exists('mvcEvent', $options) ? $options['mvcEvent'] : null,
113
-            array_key_exists('serializer', $options) ? $options['serializer'] : null,
109
+            array_key_exists('doctrineWorkflowStoryService', $options) ? $options[ 'doctrineWorkflowStoryService' ] : null,
110
+            array_key_exists('moduleOptions', $options) ? $options[ 'moduleOptions' ] : null,
111
+            array_key_exists('workflowService', $options) ? $options[ 'workflowService' ] : null,
112
+            array_key_exists('mvcEvent', $options) ? $options[ 'mvcEvent' ] : null,
113
+            array_key_exists('serializer', $options) ? $options[ 'serializer' ] : null,
114 114
         ];
115
-        call_user_func_array([$this, 'init'], $initOptions);
115
+        call_user_func_array([ $this, 'init' ], $initOptions);
116 116
     }
117 117
 
118 118
     /**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function attach(EventManagerInterface $events)
143 143
     {
144
-        $events->getSharedManager()->attach(RouteHandler::class, ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, [$this, 'onResolveEntryId'], 80);
144
+        $events->getSharedManager()->attach(RouteHandler::class, ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, [ $this, 'onResolveEntryId' ], 80);
145 145
     }
146 146
 
147 147
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         }
171 171
 
172 172
         $workflowName = $resolveEntryIdEvent->getWorkflowName();
173
-        if (!array_key_exists($workflowName, $index[$managerName]) || !is_array($index[$managerName][$workflowName])) {
173
+        if (!array_key_exists($workflowName, $index[ $managerName ]) || !is_array($index[ $managerName ][ $workflowName ])) {
174 174
             return null;
175 175
         }
176 176
 
@@ -183,12 +183,12 @@  discard block
 block discarded – undo
183 183
         }
184 184
         $em = $store->getEntityManager();
185 185
 
186
-        $objectHash = [];
186
+        $objectHash = [ ];
187 187
         $routeMatch = $this->getMvcEvent()->getRouteMatch();
188 188
 
189 189
         $serializer = $this->getSerializer();
190 190
 
191
-        foreach ($index[$managerName][$workflowName] as $entityClassName => $routerParamName) {
191
+        foreach ($index[ $managerName ][ $workflowName ] as $entityClassName => $routerParamName) {
192 192
             $entityId = $routeMatch->getParam($routerParamName, null);
193 193
             if (null === $entityId) {
194 194
                 return null;
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
             $identifierFieldName = $em->getClassMetadata($entityClassName)->getSingleIdentifierFieldName();
198 198
             $id = [
199
-                $identifierFieldName => (string)$entityId
199
+                $identifierFieldName => (string) $entityId
200 200
             ];
201 201
 
202 202
             $serializedId = $serializer->serialize($id);
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
             $hash = $entityClassName . '_' . $serializedId;
205 205
             $base64Hash = base64_encode($hash);
206 206
 
207
-            $objectHash[$base64Hash] = $base64Hash;
207
+            $objectHash[ $base64Hash ] = $base64Hash;
208 208
         }
209 209
 
210 210
         $extEntryClassName = $this->getModuleOptions()->getEntityClassName('DoctrineWorkflowStory\ExtEntry');
@@ -231,35 +231,35 @@  discard block
 block discarded – undo
231 231
         }
232 232
         $metadata = $this->getModuleOptions()->getWorkflowEntryToObjectMetadata();
233 233
 
234
-        $index = [];
234
+        $index = [ ];
235 235
         foreach ($metadata as $metadataItem) {
236 236
             if (!array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem)) {
237 237
                 $errMsg = sprintf('there is no option %s', static::WORKFLOW_MANAGER_NAME);
238 238
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
239 239
             }
240
-            $workflowManagerName = $metadataItem[static::WORKFLOW_MANAGER_NAME];
240
+            $workflowManagerName = $metadataItem[ static::WORKFLOW_MANAGER_NAME ];
241 241
 
242 242
             if (!array_key_exists(static::WORKFLOW_NAME, $metadataItem)) {
243 243
                 $errMsg = sprintf('there is no option %s', static::WORKFLOW_NAME);
244 244
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
245 245
             }
246
-            $workflowName = $metadataItem[static::WORKFLOW_NAME];
246
+            $workflowName = $metadataItem[ static::WORKFLOW_NAME ];
247 247
 
248 248
             if (!array_key_exists(static::MAP, $metadataItem)) {
249 249
                 $errMsg = sprintf('there is no option %s', static::MAP);
250 250
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
251 251
             }
252
-            if (!is_array($metadataItem[static::MAP])) {
252
+            if (!is_array($metadataItem[ static::MAP ])) {
253 253
                 $errMsg = sprintf('option %s is not array', static::MAP);
254 254
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
255 255
             }
256
-            $map = $metadataItem[static::MAP];
256
+            $map = $metadataItem[ static::MAP ];
257 257
 
258 258
             if (!array_key_exists($workflowManagerName, $index)) {
259
-                $index[$workflowManagerName] = [];
259
+                $index[ $workflowManagerName ] = [ ];
260 260
             }
261
-            if (!array_key_exists($workflowName, $index[$workflowManagerName])) {
262
-                $index[$workflowManagerName][$workflowName] = [];
261
+            if (!array_key_exists($workflowName, $index[ $workflowManagerName ])) {
262
+                $index[ $workflowManagerName ][ $workflowName ] = [ ];
263 263
             }
264 264
 
265 265
             foreach ($map as $mapItem) {
@@ -267,10 +267,10 @@  discard block
 block discarded – undo
267 267
                     $errMsg = sprintf('there is no option %s', static::ENTITY_CLASS_NAME);
268 268
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
269 269
                 }
270
-                $entityClassName = $mapItem[static::ENTITY_CLASS_NAME];
270
+                $entityClassName = $mapItem[ static::ENTITY_CLASS_NAME ];
271 271
 
272
-                if (array_key_exists($entityClassName, $index[$workflowManagerName][$workflowName])) {
273
-                    $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[static::ENTITY_CLASS_NAME]);
272
+                if (array_key_exists($entityClassName, $index[ $workflowManagerName ][ $workflowName ])) {
273
+                    $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[ static::ENTITY_CLASS_NAME ]);
274 274
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
275 275
                 }
276 276
 
@@ -278,9 +278,9 @@  discard block
 block discarded – undo
278 278
                     $errMsg = sprintf('there is no option %s', static::ROUTER_PARAM_NAME);
279 279
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
280 280
                 }
281
-                $routerParamName = $mapItem[static::ROUTER_PARAM_NAME];
281
+                $routerParamName = $mapItem[ static::ROUTER_PARAM_NAME ];
282 282
 
283
-                $index[$workflowManagerName][$workflowName][$entityClassName] = $routerParamName;
283
+                $index[ $workflowManagerName ][ $workflowName ][ $entityClassName ] = $routerParamName;
284 284
             }
285 285
         }
286 286
         $this->indexMetadata = $index;
Please login to merge, or discard this patch.
src/WorkflowRunParams/EntryIdResolverFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link    https://github.com/old-town/workflow-zf2-toolkit
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link    https://github.com/old-town/workflow-zf2-toolkit
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Toolkit\DoctrineWorkflowStory;
7 7
 
8 8
 use Zend\Serializer\AdapterPluginManager as SerializerManager;
Please login to merge, or discard this patch.
src/WorkflowRunParams/Exception/ExceptionInterface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link  https://github.com/old-town/workflow-zf2-toolkit
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link  https://github.com/old-town/workflow-zf2-toolkit
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Toolkit\Validator;
7 7
 
8 8
 use Zend\Validator\AbstractValidator;
Please login to merge, or discard this patch.
Exception/InvalidWorkflowEntryToObjectMetadataException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link  https://github.com/old-town/workflow-zf2-toolkit
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link  https://github.com/old-town/workflow-zf2-toolkit
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Toolkit\Validator;
7 7
 
8 8
 use Zend\Validator\AbstractValidator;
Please login to merge, or discard this patch.