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.

VendorTranslationSpec   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 41
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A it_extends_abstract_translation() 0 3 1
A it_has_no_id_by_default() 0 3 1
A it_is_initializable() 0 3 1
A it_implements_vendor_translation_interface() 0 3 1
A it_implements_translation_interface() 0 3 1
A it_implements_resource_interface() 0 3 1
A it_has_no_description_by_default() 0 3 1
A it_allows_access_via_properties() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace spec\Odiseo\SyliusVendorPlugin\Entity;
6
7
use Odiseo\SyliusVendorPlugin\Entity\VendorTranslation;
8
use Odiseo\SyliusVendorPlugin\Entity\VendorTranslationInterface;
9
use PhpSpec\ObjectBehavior;
10
use Sylius\Component\Resource\Model\AbstractTranslation;
11
use Sylius\Component\Resource\Model\ResourceInterface;
12
use Sylius\Component\Resource\Model\TranslationInterface;
13
14
final class VendorTranslationSpec extends ObjectBehavior
15
{
16
    function it_is_initializable()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
    {
18
        $this->shouldHaveType(VendorTranslation::class);
19
    }
20
21
    function it_extends_abstract_translation()
22
    {
23
        $this->shouldHaveType(AbstractTranslation::class);
24
    }
25
26
    function it_implements_translation_interface(): void
27
    {
28
        $this->shouldImplement(TranslationInterface::class);
29
    }
30
31
    function it_implements_vendor_translation_interface(): void
32
    {
33
        $this->shouldImplement(VendorTranslationInterface::class);
34
    }
35
36
    function it_implements_resource_interface(): void
37
    {
38
        $this->shouldImplement(ResourceInterface::class);
39
    }
40
41
    function it_has_no_id_by_default(): void
42
    {
43
        $this->getId()->shouldReturn(null);
0 ignored issues
show
Bug introduced by
The method getId() does not exist on spec\Odiseo\SyliusVendor...y\VendorTranslationSpec. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

43
        $this->/** @scrutinizer ignore-call */ 
44
               getId()->shouldReturn(null);
Loading history...
44
    }
45
46
    function it_has_no_description_by_default(): void
47
    {
48
        $this->getDescription()->shouldReturn(null);
0 ignored issues
show
Bug introduced by
The method getDescription() does not exist on spec\Odiseo\SyliusVendor...y\VendorTranslationSpec. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

48
        $this->/** @scrutinizer ignore-call */ 
49
               getDescription()->shouldReturn(null);
Loading history...
49
    }
50
51
    function it_allows_access_via_properties(): void
52
    {
53
        $this->setDescription('Vendor description');
0 ignored issues
show
Bug introduced by
The method setDescription() does not exist on spec\Odiseo\SyliusVendor...y\VendorTranslationSpec. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

53
        $this->/** @scrutinizer ignore-call */ 
54
               setDescription('Vendor description');
Loading history...
54
        $this->getDescription()->shouldReturn('Vendor description');;
55
    }
56
}
57