rhosocial/yii2-base-models

View on GitHub
traits/config/TimestampConfig.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 18 and the first side effect is on line 18.
Open

<?php

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var string|false Specifies the attribute name that records the last update time.

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

Blank lines are not allowed in a multi-line function declaration
Open


Blank lines are not allowed in a multi-line function declaration
Open


Blank lines are not allowed in a multi-line function declaration
Open


Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var int Determine the type of timestamp.

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * Set this attribute to false if you do not want to record it and know whether the entity has been edited.

Blank lines are not allowed in a multi-line function declaration
Open


Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         */

The first parameter of a multi-line function declaration must be on the line after the opening bracket
Open

        public ?string $createdAtAttribute = 'created_at',

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var int Determine the format of timestamp.

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * Set this attribute to false if you do not want to record it and know whether the entity has been edited.

Blank lines are not allowed in a multi-line function declaration
Open


Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var string|false This attribute determines when the current entity expires.

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * If not set, this function will not be enabled.

There must be a single space between the closing parenthesis and the opening brace of a multi-line function declaration; found 0 spaces
Open

    ){}

Multi-line function declaration not indented correctly; expected 8 spaces but found 0
Open

         * @var string|false Specifies the attribute name that records the creation time.

Arguments with default values must be at the end of the argument list
Open

        public int $timeType = 0,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $updatedAtAttribute = 'updated_at',

Closing brace must be on a line by itself
Open

    ){}

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $createdAtAttribute = 'created_at',

Line indented incorrectly; expected 4 spaces, found 8
Open

        public int $timeType = 0,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public ?string $expiredAfterAttribute = null,

Expected 1 newline at end of file; 0 found
Open

}

Line indented incorrectly; expected 4 spaces, found 8
Open

        public int $timeFormat = 0,

There are no issues that match your filters.

Category
Status