Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PhpdocSingleLineVarFixer.php

function PhpdocSingleLineVarFixer::getDefinition

File

vendor/phar-io/manifest/tools/php-cs-fixer.d/PhpdocSingleLineVarFixer.php, line 21

Class

PhpdocSingleLineVarFixer
Main implementation taken from kubawerlos/php-cs-fixer-customere-fixers Copyright (c) 2018 Kuba Werłos

Namespace

PharIo\CSFixer

Code

public function getDefinition() : FixerDefinition {
    return new FixerDefinition('`@var` annotation must be in single line when is the only content.', [
        new CodeSample('<?php
                    /**
                     * @var string
                     */
                '),
    ]);
}
RSS feed
Powered by Drupal