Skip to content

Commit 0b9231a

Browse files
Merge branch '4.4' into 5.1
* 4.4: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents fd83055 + ebd0965 commit 0b9231a

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Finder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
*/
3939
class Finder implements \IteratorAggregate, \Countable
4040
{
41-
const IGNORE_VCS_FILES = 1;
42-
const IGNORE_DOT_FILES = 2;
43-
const IGNORE_VCS_IGNORED_FILES = 4;
41+
public const IGNORE_VCS_FILES = 1;
42+
public const IGNORE_DOT_FILES = 2;
43+
public const IGNORE_VCS_IGNORED_FILES = 4;
4444

4545
private $mode = 0;
4646
private $names = [];

Iterator/FileTypeFilterIterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919
class FileTypeFilterIterator extends \FilterIterator
2020
{
21-
const ONLY_FILES = 1;
22-
const ONLY_DIRECTORIES = 2;
21+
public const ONLY_FILES = 1;
22+
public const ONLY_DIRECTORIES = 2;
2323

2424
private $mode;
2525

Iterator/SortableIterator.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
*/
1919
class SortableIterator implements \IteratorAggregate
2020
{
21-
const SORT_BY_NONE = 0;
22-
const SORT_BY_NAME = 1;
23-
const SORT_BY_TYPE = 2;
24-
const SORT_BY_ACCESSED_TIME = 3;
25-
const SORT_BY_CHANGED_TIME = 4;
26-
const SORT_BY_MODIFIED_TIME = 5;
27-
const SORT_BY_NAME_NATURAL = 6;
21+
public const SORT_BY_NONE = 0;
22+
public const SORT_BY_NAME = 1;
23+
public const SORT_BY_TYPE = 2;
24+
public const SORT_BY_ACCESSED_TIME = 3;
25+
public const SORT_BY_CHANGED_TIME = 4;
26+
public const SORT_BY_MODIFIED_TIME = 5;
27+
public const SORT_BY_NAME_NATURAL = 6;
2828

2929
private $iterator;
3030
private $sort;

Tests/Iterator/MockSplFileInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
class MockSplFileInfo extends \SplFileInfo
1515
{
16-
const TYPE_DIRECTORY = 1;
17-
const TYPE_FILE = 2;
18-
const TYPE_UNKNOWN = 3;
16+
public const TYPE_DIRECTORY = 1;
17+
public const TYPE_FILE = 2;
18+
public const TYPE_UNKNOWN = 3;
1919

2020
private $contents = null;
2121
private $mode = null;

0 commit comments

Comments
 (0)