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 ( 3f8250...6c80d1 )
by Андрей
15:00
created
src/DoctrineWorkflowStory/DoctrineWorkflowStory.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
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
 {
18 18
     public function __construct()
19 19
     {
20
-        $this->entityMap['entry'] = ExtEntry::class;
20
+        $this->entityMap[ 'entry' ] = ExtEntry::class;
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
src/Entity/DoctrineWorkflowStory/ObjectInfo.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/workflowService.config.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/DoctrineWorkflowStory/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.
src/Entity/DoctrineWorkflowStory/ExtEntry.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.
Module.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     const CONFIG_KEY = 'workflow_zf2_toolkit';
37 37
 
38 38
     /**
39
-     * @return array
39
+     * @return string[]
40 40
      */
41 41
     public function getModuleDependencies()
42 42
     {
Please login to merge, or discard this patch.
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   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @param array $options
89 89
      */
90
-    public function __construct(array $options = [])
90
+    public function __construct(array $options = [ ])
91 91
     {
92 92
         $initOptions = [
93
-            array_key_exists('entryToObjectsService', $options) ? $options['entryToObjectsService'] : null,
94
-            array_key_exists('moduleOptions', $options) ? $options['moduleOptions'] : null,
95
-            array_key_exists('mvcEvent', $options) ? $options['mvcEvent'] : null
93
+            array_key_exists('entryToObjectsService', $options) ? $options[ 'entryToObjectsService' ] : null,
94
+            array_key_exists('moduleOptions', $options) ? $options[ 'moduleOptions' ] : null,
95
+            array_key_exists('mvcEvent', $options) ? $options[ 'mvcEvent' ] : null
96 96
         ];
97
-        call_user_func_array([$this, 'init'], $initOptions);
97
+        call_user_func_array([ $this, 'init' ], $initOptions);
98 98
     }
99 99
 
100 100
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function attach(EventManagerInterface $events)
119 119
     {
120
-        $events->getSharedManager()->attach(RouteHandler::class, ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, [$this, 'onResolveEntryId'], 80);
120
+        $events->getSharedManager()->attach(RouteHandler::class, ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, [ $this, 'onResolveEntryId' ], 80);
121 121
     }
122 122
 
123 123
     /**
@@ -142,19 +142,19 @@  discard block
 block discarded – undo
142 142
         }
143 143
 
144 144
         $workflowName = $resolveEntryIdEvent->getWorkflowName();
145
-        if (!array_key_exists($workflowName, $index[$managerName]) || !is_array($index[$managerName][$workflowName])) {
145
+        if (!array_key_exists($workflowName, $index[ $managerName ]) || !is_array($index[ $managerName ][ $workflowName ])) {
146 146
             return null;
147 147
         }
148 148
 
149 149
         $routeMatch = $this->getMvcEvent()->getRouteMatch();
150
-        $objectsInfo = [];
151
-        foreach ($index[$managerName][$workflowName] as $entityClassName => $routerParamName) {
150
+        $objectsInfo = [ ];
151
+        foreach ($index[ $managerName ][ $workflowName ] as $entityClassName => $routerParamName) {
152 152
             $entityId = $routeMatch->getParam($routerParamName, null);
153 153
             if (null === $entityId) {
154 154
                 return null;
155 155
             }
156 156
 
157
-            $objectsInfo[$entityClassName] = $entityId;
157
+            $objectsInfo[ $entityClassName ] = $entityId;
158 158
         }
159 159
 
160 160
         $entry = $this->getEntryToObjectsService()->getEntryByObjectsInfo($managerName, $workflowName, $objectsInfo);
@@ -178,35 +178,35 @@  discard block
 block discarded – undo
178 178
         }
179 179
         $metadata = $this->getModuleOptions()->getWorkflowEntryToObjectMetadata();
180 180
 
181
-        $index = [];
181
+        $index = [ ];
182 182
         foreach ($metadata as $metadataItem) {
183 183
             if (!array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem)) {
184 184
                 $errMsg = sprintf('there is no option %s', static::WORKFLOW_MANAGER_NAME);
185 185
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
186 186
             }
187
-            $workflowManagerName = $metadataItem[static::WORKFLOW_MANAGER_NAME];
187
+            $workflowManagerName = $metadataItem[ static::WORKFLOW_MANAGER_NAME ];
188 188
 
189 189
             if (!array_key_exists(static::WORKFLOW_NAME, $metadataItem)) {
190 190
                 $errMsg = sprintf('there is no option %s', static::WORKFLOW_NAME);
191 191
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
192 192
             }
193
-            $workflowName = $metadataItem[static::WORKFLOW_NAME];
193
+            $workflowName = $metadataItem[ static::WORKFLOW_NAME ];
194 194
 
195 195
             if (!array_key_exists(static::MAP, $metadataItem)) {
196 196
                 $errMsg = sprintf('there is no option %s', static::MAP);
197 197
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
198 198
             }
199
-            if (!is_array($metadataItem[static::MAP])) {
199
+            if (!is_array($metadataItem[ static::MAP ])) {
200 200
                 $errMsg = sprintf('option %s is not array', static::MAP);
201 201
                 throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
202 202
             }
203
-            $map = $metadataItem[static::MAP];
203
+            $map = $metadataItem[ static::MAP ];
204 204
 
205 205
             if (!array_key_exists($workflowManagerName, $index)) {
206
-                $index[$workflowManagerName] = [];
206
+                $index[ $workflowManagerName ] = [ ];
207 207
             }
208
-            if (!array_key_exists($workflowName, $index[$workflowManagerName])) {
209
-                $index[$workflowManagerName][$workflowName] = [];
208
+            if (!array_key_exists($workflowName, $index[ $workflowManagerName ])) {
209
+                $index[ $workflowManagerName ][ $workflowName ] = [ ];
210 210
             }
211 211
 
212 212
             foreach ($map as $mapItem) {
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
                     $errMsg = sprintf('there is no option %s', static::ENTITY_CLASS_NAME);
215 215
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
216 216
                 }
217
-                $entityClassName = $mapItem[static::ENTITY_CLASS_NAME];
217
+                $entityClassName = $mapItem[ static::ENTITY_CLASS_NAME ];
218 218
 
219
-                if (array_key_exists($entityClassName, $index[$workflowManagerName][$workflowName])) {
220
-                    $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[static::ENTITY_CLASS_NAME]);
219
+                if (array_key_exists($entityClassName, $index[ $workflowManagerName ][ $workflowName ])) {
220
+                    $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[ static::ENTITY_CLASS_NAME ]);
221 221
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
222 222
                 }
223 223
 
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
                     $errMsg = sprintf('there is no option %s', static::ROUTER_PARAM_NAME);
226 226
                     throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
227 227
                 }
228
-                $routerParamName = $mapItem[static::ROUTER_PARAM_NAME];
228
+                $routerParamName = $mapItem[ static::ROUTER_PARAM_NAME ];
229 229
 
230
-                $index[$workflowManagerName][$workflowName][$entityClassName] = $routerParamName;
230
+                $index[ $workflowManagerName ][ $workflowName ][ $entityClassName ] = $routerParamName;
231 231
             }
232 232
         }
233 233
         $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.