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 ( a3afb5...70d7cd )
by Андрей
03:27
created

DoctrineWorkflowStory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * @link  https://github.com/old-town/workflow-zf2-toolkit
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\Toolkit\DoctrineWorkflowStory;
7
8
use OldTown\Workflow\Spi\Doctrine\DoctrineWorkflowStory as BaseDoctrineWorkflowStory;
9
use OldTown\Workflow\ZF2\Toolkit\Entity\DoctrineWorkflowStory\Entry;
10
11
/**
12
 * Class DoctrineWorkflowStory
13
 *
14
 * @package OldTown\Workflow\ZF2\Toolkit\DoctrineWorkflowStory
15
 */
16
class DoctrineWorkflowStory extends BaseDoctrineWorkflowStory
17
{
18
    public function __construct()
19
    {
20
        $this->entityMap['entry'] = Entry::class;
0 ignored issues
show
Bug introduced by
The property entityMap does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
21
    }
22
23
}
24