Skip to content

Commit c749151

Browse files
authored
Enhancement: Enable phpdoc_line_span fixer (#203)
* Enhancement: Enable phpdoc_line_span fixer * Fix: Run 'make cs'
1 parent 465eb00 commit c749151

File tree

7 files changed

+40
-13
lines changed

7 files changed

+40
-13
lines changed

.php_cs.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ return $config
111111
'phpdoc_align' => true,
112112
'phpdoc_indent' => true,
113113
'phpdoc_inline_tag_normalizer' => true,
114+
'phpdoc_line_span' => true,
114115
'phpdoc_no_alias_tag' => [
115116
'replacements' => [
116117
'type' => 'var',

src/Faker/Calculator/Ean.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88
class Ean
99
{
10-
/** @var string EAN validation pattern */
10+
/**
11+
* @var string EAN validation pattern
12+
*/
1113
public const PATTERN = '/^(?:\d{8}|\d{13})$/';
1214

1315
/**

src/Faker/Calculator/Isbn.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88
class Isbn
99
{
10-
/** @var string ISBN-10 validation pattern */
10+
/**
11+
* @var string ISBN-10 validation pattern
12+
*/
1113
public const PATTERN = '/^\d{9}[0-9X]$/';
1214

1315
/**

src/Faker/ORM/Doctrine/Populator.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,34 @@
1111
*/
1212
class Populator
1313
{
14-
/** @var int */
14+
/**
15+
* @var int
16+
*/
1517
protected $batchSize;
1618

17-
/** @var Generator */
19+
/**
20+
* @var Generator
21+
*/
1822
protected $generator;
1923

20-
/** @var ObjectManager|null */
24+
/**
25+
* @var ObjectManager|null
26+
*/
2127
protected $manager;
2228

23-
/** @var array */
29+
/**
30+
* @var array
31+
*/
2432
protected $entities = [];
2533

26-
/** @var array */
34+
/**
35+
* @var array
36+
*/
2737
protected $quantities = [];
2838

29-
/** @var array */
39+
/**
40+
* @var array
41+
*/
3042
protected $generateId = [];
3143

3244
/**

src/Faker/Provider/Image.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88
class Image extends Base
99
{
10-
/** @var string */
10+
/**
11+
* @var string
12+
*/
1113
public const BASE_URL = 'https://via.placeholder.com';
1214

1315
/**

src/Faker/Provider/pt_PT/Address.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ class Address extends \Faker\Provider\Address
2020
'{{streetName}}, {{buildingNumber}}, {{secondaryAddress}}',
2121
];
2222

23-
/** @link http://www.univ-ab.pt/PINTAC/carta_normas.htm address example in letters **/
23+
/**
24+
* @link http://www.univ-ab.pt/PINTAC/carta_normas.htm address example in letters *
25+
*/
2426
protected static $addressFormats = [
2527
'{{streetAddress}} {{postcode}} {{city}}',
2628
];
2729

28-
/** @link http://www.mapadeportugal.net/indicecidades.asp **/
30+
/**
31+
* @link http://www.mapadeportugal.net/indicecidades.asp *
32+
*/
2933
private static $cities = [
3034
'Abrantes', 'Agualva-Cacém', 'Águeda', 'Albufeira', 'Alcácer do Sal', 'Alcobaça', 'Almada', 'Almeirim', 'Alverca do Ribatejo', 'Amadora', 'Amarante', 'Amora', 'Anadia', 'Angra do Heroísmo', 'Aveiro', 'Barcelos', 'Barreiro',
3135
'Beja', 'Braga', 'Bragança', 'Caldas da Rainha', 'Camara de Lobos', 'Cantanhede', 'Cartaxo', 'Castelo Branco', 'Chaves', 'Coimbra', 'Covilhã', 'Elvas', 'Entroncamento', 'Ermesinde', 'Esmoriz', 'Espinho', 'Esposende', 'Estarreja',
@@ -62,7 +66,9 @@ public static function secondaryAddress()
6266
return static::numerify(static::randomElement(static::$secondaryAddressFormats));
6367
}
6468

65-
/** @link http://www.indexmundi.com/pt/ **/
69+
/**
70+
* @link http://www.indexmundi.com/pt/ *
71+
*/
6672
protected static $country = [
6773
'Afeganistão', 'África do Sul', 'Albânia', 'Alemanha', 'Andorra',
6874
'Angola', 'Antigua e Barbuda', 'Arabia Saudita', 'Argélia',

src/Faker/Provider/pt_PT/Person.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class Person extends \Faker\Provider\Person
2626
'{{firstNameFemale}} {{firstNameFemale}} {{lastName}} {{lastName}} {{lastName}}',
2727
];
2828

29-
/** @link http://goo.gl/v6bScG document with all pt abreviations **/
29+
/**
30+
* @link http://goo.gl/v6bScG document with all pt abreviations *
31+
*/
3032
protected static $titleMale = ['Sr.', 'Dr.', 'Exmo.', 'Eng.', 'Eng.º', 'Ex.', 'Exº'];
3133
protected static $titleFemale = ['Sra.', 'Dra.', 'Exma', 'Eng.ª', 'Exª'];
3234

0 commit comments

Comments
 (0)