Issues (194)

src/base/GeneratorInterface.php (22 issues)

1
<?php
2
/**
3
 * Autocomplete module for Craft CMS
4
 *
5
 * Provides Twig template IDE autocomplete of Craft CMS & plugin variables
6
 *
7
 * @link      https://nystudio107.com
0 ignored issues
show
The tag in position 1 should be the @copyright tag
Loading history...
8
 * @link      https://putyourlightson.com
9
 * @copyright Copyright (c) nystudio107
0 ignored issues
show
@copyright tag must contain a year and the name of the copyright holder
Loading history...
10
 * @copyright Copyright (c) PutYourLightsOn
0 ignored issues
show
@copyright tag must contain a year and the name of the copyright holder
Loading history...
11
 */
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...
12
13
namespace nystudio107\autocomplete\base;
14
15
/**
0 ignored issues
show
Missing short description in doc comment
Loading history...
16
 * @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...
17
 * @package   autocomplete
0 ignored issues
show
Package name "autocomplete" is not valid; consider "Autocomplete" instead
Loading history...
Tag value for @package tag indented incorrectly; expected 1 spaces but found 3
Loading history...
18
 * @since     1.0.0
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...
19
 */
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...
20
interface GeneratorInterface
21
{
22
    // Constants
23
    // =========================================================================
24
25
    public const TEMPLATE_EXTENSION = '.php';
26
    public const STUBS_EXTENSION = '.php.stub';
27
    public const STUBS_DIR = DIRECTORY_SEPARATOR . 'stubs';
28
29
    // Public Static Methods
30
    // =========================================================================
31
32
    /**
33
     * Return the name of the generator
34
     *
35
     * @return string
36
     */
37
    public static function getGeneratorName(): string;
38
39
    /**
40
     * Return a file system path to the generator stubs directory
41
     *
42
     * @return string
43
     */
44
    public static function getGeneratorStubsPath(): string;
45
46
    /**
47
     * Generate the autocomplete class if it doesn't exist already
48
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
49
    public static function generate();
50
51
    /**
52
     * Regenerate the autocomplete classes from scratch
53
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
54
    public static function regenerate();
55
56
    /**
57
     * Delete the autocomplete classes
58
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
59
    public static function delete();
60
}
61