mirror of
				https://github.com/OpenAPITools/openapi-generator.git
				synced 2025-11-04 02:33:54 +00:00 
			
		
		
		
	* php-nextgen first commit * [php] Set minimal PHP version to ^8.0 (#14500) * Set minimal PHP version to ^8.0 * Fix php-nextgen config * Change stability to BETA * Add phplint package (#15054) * [php-nextgen] Rename folders to follow PDS skeleton (#15102) * Change lib -> src, test -> tests folder This will make build compliant to PHP-PDS skeleton. Ref: https://github.com/php-pds/skeleton * Refresh samples * Exclude composer.lock from codebase (#15105) Since client generator is library and not a project it makes sense to exclude composer.lock from codebase by default. Ref: http://getcomposer.org/doc/02-libraries.md#lock-file * Add @generated tag to DocBlocks (#15106) This tag in draft status right now(PSR-19), but I think we can leverage from it already. Ref: https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md#55-generated * update samples, doc * update samples --------- Co-authored-by: Yuriy Belenko <yura-bely@mail.ru>
		
			
				
	
	
		
			30 lines
		
	
	
		
			770 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			770 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
/**
 | 
						|
 * @generated
 | 
						|
 * @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
 | 
						|
 */
 | 
						|
$finder = PhpCsFixer\Finder::create()
 | 
						|
    ->in(__DIR__)
 | 
						|
    ->exclude('vendor')
 | 
						|
    ->exclude('test')
 | 
						|
    ->exclude('tests')
 | 
						|
;
 | 
						|
 | 
						|
$config = new PhpCsFixer\Config();
 | 
						|
return $config->setRules([
 | 
						|
        '@PSR12' => true,
 | 
						|
        'phpdoc_order' => true,
 | 
						|
        'array_syntax' => [ 'syntax' => 'short' ],
 | 
						|
        'strict_comparison' => true,
 | 
						|
        'strict_param' => true,
 | 
						|
        'no_trailing_whitespace' => false,
 | 
						|
        'no_trailing_whitespace_in_comment' => false,
 | 
						|
        'braces' => false,
 | 
						|
        'single_blank_line_at_eof' => false,
 | 
						|
        'blank_line_after_namespace' => false,
 | 
						|
        'no_leading_import_slash' => false,
 | 
						|
    ])
 | 
						|
    ->setFinder($finder)
 | 
						|
;
 |