Issues (1783)

src/gql/arguments/RetourArguments.php (18 issues)

1
<?php
2
/**
3
 * Retour plugin for Craft CMS
4
 *
5
 * Retour allows you to intelligently redirect legacy URLs, so that you don't
6
 * lose SEO value when rebuilding & restructuring a website
7
 *
8
 * @link      https://nystudio107.com/
0 ignored issues
show
The tag in position 1 should be the @copyright tag
Loading history...
9
 * @copyright Copyright (c) 2019 nystudio107
0 ignored issues
show
@copyright tag must contain a year and the name of the copyright holder
Loading history...
10
 */
0 ignored issues
show
PHP version not specified
Loading history...
Missing @category tag in file comment
Loading history...
Missing @package tag in file comment
Loading history...
Missing @author tag in file comment
Loading history...
Missing @license tag in file comment
Loading history...
11
12
namespace nystudio107\retour\gql\arguments;
13
14
use craft\gql\base\Arguments;
15
use GraphQL\Type\Definition\Type;
16
17
/**
18
 * Class RetourArguments
19
 *
20
 * @author    nystudio107
0 ignored issues
show
The tag in position 1 should be the @package tag
Loading history...
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
Tag value for @author tag indented incorrectly; expected 2 spaces but found 4
Loading history...
21
 * @package   Retour
0 ignored issues
show
Tag value for @package tag indented incorrectly; expected 1 spaces but found 3
Loading history...
22
 * @since     3.1.26
0 ignored issues
show
The tag in position 3 should be the @author tag
Loading history...
Tag value for @since tag indented incorrectly; expected 3 spaces but found 5
Loading history...
23
 */
0 ignored issues
show
Missing @category tag in class comment
Loading history...
Missing @license tag in class comment
Loading history...
Missing @link tag in class comment
Loading history...
24
class RetourArguments extends Arguments
25
{
26
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
27
     * @inheritdoc
28
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
29
    public static function getArguments(): array
30
    {
31
        return [
32
            'uri' => [
33
                'name' => 'uri',
34
                'type' => Type::string(),
35
                'description' => 'The URI to resolve a redirect for.',
36
            ],
37
            'site' => [
38
                'name' => 'site',
39
                'type' => Type::string(),
40
                'description' => 'The site handle to resolve a redirect for.',
41
            ],
42
            'siteId' => [
43
                'name' => 'siteId',
44
                'type' => Type::int(),
45
                'description' => 'The siteId to resolve a redirect for.',
46
            ],
47
        ];
48
    }
49
}
50