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 — master ( d78b73...b67b4d )
by Андрей
07:01 queued 03:23
created
src/EntryToObjects/EntryToObjectsControllerPlugin.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\DoctrineWorkflowStory;
7 7
 
8 8
 use Zend\Serializer\AdapterPluginManager as SerializerManager;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@
 block discarded – undo
26 26
      *
27 27
      * @param array $options
28 28
      */
29
-    public function __construct(array $options = [])
29
+    public function __construct(array $options = [ ])
30 30
     {
31 31
         $initOptions = [
32
-            array_key_exists('entryToObjectsService', $options) ? $options['entryToObjectsService'] : null
32
+            array_key_exists('entryToObjectsService', $options) ? $options[ 'entryToObjectsService' ] : null
33 33
         ];
34 34
 
35
-        call_user_func_array([$this, 'init'], $initOptions);
35
+        call_user_func_array([ $this, 'init' ], $initOptions);
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/WorkflowRunParams/Exception/RuntimeException.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.
src/EntryToObjects/Exception/RuntimeException.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.
src/EntryToObjects/Exception/InvalidRestoreObjectException.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.
config/controllerPlugins.config.service.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;
7 7
 
8 8
 use OldTown\Workflow\ZF2\Toolkit\Options\ModuleOptions;
Please login to merge, or discard this patch.
src/Options/Exception/InvalidArgumentException.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.
src/EntryToObjects/Exception/InvalidWorkflowStoreException.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.
src/WorkflowRunParams/EntryIdResolver.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -285,8 +285,8 @@
 block discarded – undo
285 285
      *
286 286
      * @param string $routerName
287 287
      * @param string $workflowName
288
-     * @param null   $managerName
289
-     * @param null   $managerAlias
288
+     * @param string   $managerName
289
+     * @param string   $managerAlias
290 290
      *
291 291
      * @return array
292 292
      */
Please login to merge, or discard this 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.
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
      *
163 163
      * @param array $options
164 164
      */
165
-    public function __construct(array $options = [])
165
+    public function __construct(array $options = [ ])
166 166
     {
167 167
         $initOptions = [
168
-            array_key_exists('entryToObjectsService', $options) ? $options['entryToObjectsService'] : null,
169
-            array_key_exists('moduleOptions', $options) ? $options['moduleOptions'] : null,
170
-            array_key_exists('mvcEvent', $options) ? $options['mvcEvent'] : null,
171
-            array_key_exists('log', $options) ? $options['log'] : null
168
+            array_key_exists('entryToObjectsService', $options) ? $options[ 'entryToObjectsService' ] : null,
169
+            array_key_exists('moduleOptions', $options) ? $options[ 'moduleOptions' ] : null,
170
+            array_key_exists('mvcEvent', $options) ? $options[ 'mvcEvent' ] : null,
171
+            array_key_exists('log', $options) ? $options[ 'log' ] : null
172 172
         ];
173
-        call_user_func_array([$this, 'init'], $initOptions);
173
+        call_user_func_array([ $this, 'init' ], $initOptions);
174 174
     }
175 175
 
176 176
     /**
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function attach(EventManagerInterface $events)
198 198
     {
199
-        $events->getSharedManager()->attach(RouteHandler::class, ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, [$this, 'onResolveEntryId'], 80);
199
+        $events->getSharedManager()->attach(RouteHandler::class, ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, [ $this, 'onResolveEntryId' ], 80);
200 200
     }
201 201
 
202 202
     /**
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         $metadata = null;
232 232
         foreach ($indexKeys as $indexKey) {
233 233
             if (array_key_exists($indexKey, $index)) {
234
-                $metadata = $index[$indexKey];
234
+                $metadata = $index[ $indexKey ];
235 235
                 break;
236 236
             }
237 237
         }
@@ -243,13 +243,13 @@  discard block
 block discarded – undo
243 243
             return null;
244 244
         }
245 245
 
246
-        $objectsInfo = [];
246
+        $objectsInfo = [ ];
247 247
 
248 248
         foreach ($metadata as $entityClassName => $metadataItem) {
249
-            $objectsInfo[$entityClassName] = [];
249
+            $objectsInfo[ $entityClassName ] = [ ];
250 250
             foreach ($metadataItem as $propertyName => $info) {
251
-                $mode = $info[static::MODE];
252
-                $paramName = $info[static::PARAM_NAME];
251
+                $mode = $info[ static::MODE ];
252
+                $paramName = $info[ static::PARAM_NAME ];
253 253
 
254 254
                 $idValue = null;
255 255
                 if (static::MODE_ROUTER_PARAM === $mode) {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
                     $errMsg = sprintf('Error getting the primary identifier for the entity\'s key. Source: %s. Value: %s', $mode, $paramName);
268 268
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
269 269
                 }
270
-                $objectsInfo[$entityClassName][$propertyName] = $idValue;
270
+                $objectsInfo[ $entityClassName ][ $propertyName ] = $idValue;
271 271
             }
272 272
         }
273 273
 
@@ -292,27 +292,27 @@  discard block
 block discarded – undo
292 292
      */
293 293
     public function buildIndexKeys($routerName, $workflowName, $managerName = null, $managerAlias = null)
294 294
     {
295
-        $keys = [];
295
+        $keys = [ ];
296 296
 
297
-        $prefixes =[];
297
+        $prefixes = [ ];
298 298
         if (null !== $managerAlias) {
299
-            $prefixes[] = sprintf('alias_%s_%s_', $managerAlias, $workflowName);
299
+            $prefixes[ ] = sprintf('alias_%s_%s_', $managerAlias, $workflowName);
300 300
         }
301 301
         if (null !== $managerName) {
302
-            $prefixes[] = sprintf('name_%s_%s_', $managerName, $workflowName);
302
+            $prefixes[ ] = sprintf('name_%s_%s_', $managerName, $workflowName);
303 303
         }
304 304
 
305
-        $prepareRouteParts = [];
305
+        $prepareRouteParts = [ ];
306 306
         $stackRouteParts = explode('/', $routerName);
307 307
 
308 308
         for ($i = count($stackRouteParts); $i >= 1; $i--) {
309 309
             $routeParts = array_slice($stackRouteParts, 0, $i);
310
-            $prepareRouteParts[] = implode('/', $routeParts);
310
+            $prepareRouteParts[ ] = implode('/', $routeParts);
311 311
         }
312 312
 
313 313
         foreach ($prefixes as $prefix) {
314 314
             foreach ($prepareRouteParts as $prepareRoutePart) {
315
-                $keys[] = $prefix . $prepareRoutePart;
315
+                $keys[ ] = $prefix . $prepareRoutePart;
316 316
             }
317 317
         }
318 318
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         }
332 332
         $metadata = $this->getModuleOptions()->getWorkflowEntryToObjectMetadata();
333 333
 
334
-        $index = [];
334
+        $index = [ ];
335 335
         foreach ($metadata as $metadataItem) {
336 336
             if (!array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && !array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) {
337 337
                 $errMsg = sprintf(
@@ -355,21 +355,21 @@  discard block
 block discarded – undo
355 355
                 $errMsg = sprintf('there is no option %s', static::WORKFLOW_NAME);
356 356
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
357 357
             }
358
-            $workflowName = $metadataItem[static::WORKFLOW_NAME];
358
+            $workflowName = $metadataItem[ static::WORKFLOW_NAME ];
359 359
 
360 360
             if (!array_key_exists(static::ROUTER_NAME, $metadataItem)) {
361 361
                 $errMsg = sprintf('there is no option %s', static::ROUTER_NAME);
362 362
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
363 363
             }
364
-            $routerName = $metadataItem[static::ROUTER_NAME];
364
+            $routerName = $metadataItem[ static::ROUTER_NAME ];
365 365
 
366 366
             $prefix = '';
367 367
             if (array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem)) {
368
-                $prefix = 'name_' . $metadataItem[static::WORKFLOW_MANAGER_NAME] . '_';
368
+                $prefix = 'name_' . $metadataItem[ static::WORKFLOW_MANAGER_NAME ] . '_';
369 369
             }
370 370
 
371 371
             if (array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) {
372
-                $prefix = 'alias_' . $metadataItem[static::WORKFLOW_MANAGER_ALIAS] . '_';
372
+                $prefix = 'alias_' . $metadataItem[ static::WORKFLOW_MANAGER_ALIAS ] . '_';
373 373
             }
374 374
 
375 375
             $uniqueKey = $prefix . $workflowName . '_' . $routerName;
@@ -379,71 +379,71 @@  discard block
 block discarded – undo
379 379
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
380 380
             }
381 381
 
382
-            $index[$uniqueKey] = [];
382
+            $index[ $uniqueKey ] = [ ];
383 383
 
384 384
 
385 385
             if (!array_key_exists(static::MAP, $metadataItem)) {
386 386
                 $errMsg = sprintf('there is no option %s', static::MAP);
387 387
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
388 388
             }
389
-            if (!is_array($metadataItem[static::MAP])) {
389
+            if (!is_array($metadataItem[ static::MAP ])) {
390 390
                 $errMsg = sprintf('option %s is not array', static::MAP);
391 391
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
392 392
             }
393
-            $map = $metadataItem[static::MAP];
393
+            $map = $metadataItem[ static::MAP ];
394 394
 
395 395
             foreach ($map as $mapItem) {
396 396
                 if (!array_key_exists(static::ENTITY_CLASS_NAME, $mapItem)) {
397 397
                     $errMsg = sprintf('there is no option %s', static::ENTITY_CLASS_NAME);
398 398
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
399 399
                 }
400
-                $entityClassName = $mapItem[static::ENTITY_CLASS_NAME];
400
+                $entityClassName = $mapItem[ static::ENTITY_CLASS_NAME ];
401 401
 
402
-                if (array_key_exists($entityClassName, $index[$uniqueKey])) {
403
-                    $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[static::ENTITY_CLASS_NAME]);
402
+                if (array_key_exists($entityClassName, $index[ $uniqueKey ])) {
403
+                    $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[ static::ENTITY_CLASS_NAME ]);
404 404
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
405 405
                 }
406
-                $index[$uniqueKey][$entityClassName] = [];
406
+                $index[ $uniqueKey ][ $entityClassName ] = [ ];
407 407
 
408 408
                 if (!array_key_exists(static::IDENTIFIERS_MAP, $mapItem)) {
409 409
                     $errMsg = sprintf('there is no option %s', static::IDENTIFIERS_MAP);
410 410
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
411 411
                 }
412
-                if (!is_array($mapItem[static::IDENTIFIERS_MAP])) {
412
+                if (!is_array($mapItem[ static::IDENTIFIERS_MAP ])) {
413 413
                     $errMsg = sprintf('option %s is not array', static::IDENTIFIERS_MAP);
414 414
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
415 415
                 }
416 416
 
417
-                $identifiersMap = $mapItem[static::IDENTIFIERS_MAP];
417
+                $identifiersMap = $mapItem[ static::IDENTIFIERS_MAP ];
418 418
 
419 419
                 foreach ($identifiersMap as $identifierItem) {
420 420
                     if (!array_key_exists(static::PROPERTY_NAME, $identifierItem)) {
421 421
                         $errMsg = sprintf('there is no option %s', static::PROPERTY_NAME);
422 422
                         throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
423 423
                     }
424
-                    $propertyName = $identifierItem[static::PROPERTY_NAME];
424
+                    $propertyName = $identifierItem[ static::PROPERTY_NAME ];
425 425
 
426
-                    if (array_key_exists($propertyName, $index[$uniqueKey][$entityClassName])) {
426
+                    if (array_key_exists($propertyName, $index[ $uniqueKey ][ $entityClassName ])) {
427 427
                         $errMsg = sprintf('Metadata for property already exist %s', $propertyName);
428 428
                         throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
429 429
                     }
430
-                    $index[$uniqueKey][$entityClassName][$propertyName] = [];
430
+                    $index[ $uniqueKey ][ $entityClassName ][ $propertyName ] = [ ];
431 431
 
432
-                    $modeOriginal = array_key_exists(static::MODE, $identifierItem) ? $identifierItem[static::MODE] : static ::MODE_ROUTER_PARAM;
432
+                    $modeOriginal = array_key_exists(static::MODE, $identifierItem) ? $identifierItem[ static::MODE ] : static ::MODE_ROUTER_PARAM;
433 433
                     $mode = strtolower($modeOriginal);
434 434
 
435 435
                     if (!array_key_exists($mode, $this->accessMode)) {
436 436
                         $errMsg = sprintf('Invalid value for the "mode" %s', $mode);
437 437
                         throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
438 438
                     }
439
-                    $index[$uniqueKey][$entityClassName][$propertyName][static::MODE] = $mode;
439
+                    $index[ $uniqueKey ][ $entityClassName ][ $propertyName ][ static::MODE ] = $mode;
440 440
 
441 441
                     if (!array_key_exists(static::PARAM_NAME, $identifierItem)) {
442 442
                         $errMsg = sprintf('there is no option %s', static::PARAM_NAME);
443 443
                         throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
444 444
                     }
445
-                    $paramName = $identifierItem[static::PARAM_NAME];
446
-                    $index[$uniqueKey][$entityClassName][$propertyName][static::PARAM_NAME] = $paramName;
445
+                    $paramName = $identifierItem[ static::PARAM_NAME ];
446
+                    $index[ $uniqueKey ][ $entityClassName ][ $propertyName ][ static::PARAM_NAME ] = $paramName;
447 447
                 }
448 448
             }
449 449
         }
Please login to merge, or discard this patch.
src/WorkflowRunParams/Exception/InvalidArgumentException.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.