Skip to content

Commit 6150bf2

Browse files
Fix CS/WS issues
1 parent a923bb1 commit 6150bf2

File tree

3 files changed

+19
-34
lines changed

3 files changed

+19
-34
lines changed

src/Facade.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
* RecursiveDirectoryIterator for each given path. The list of unique
1515
* files is returned as an array.
1616
*
17-
* @author Sebastian Bergmann <[email protected]>
18-
* @copyright Sebastian Bergmann <[email protected]>
19-
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
20-
* @version Release: @package_version@
21-
* @link http://github.com/sebastianbergmann/php-file-iterator/tree
2217
* @since Class available since Release 1.3.0
2318
*/
2419
class File_Iterator_Facade
@@ -28,7 +23,7 @@ class File_Iterator_Facade
2823
* @param array|string $suffixes
2924
* @param array|string $prefixes
3025
* @param array $exclude
31-
* @param boolean $commonPath
26+
* @param bool $commonPath
3227
* @return array
3328
*/
3429
public function getFilesAsArray($paths, $suffixes = '', $prefixes = '', array $exclude = array(), $commonPath = FALSE)
@@ -74,7 +69,7 @@ public function getFilesAsArray($paths, $suffixes = '', $prefixes = '', array $e
7469
/**
7570
* Returns the common path of a set of files.
7671
*
77-
* @param array $files
72+
* @param array $files
7873
* @return string
7974
*/
8075
protected function getCommonPath(array $files)

src/Factory.php

+4-9
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@
1313
* an AppendIterator that contains an RecursiveDirectoryIterator for each given
1414
* path.
1515
*
16-
* @author Sebastian Bergmann <[email protected]>
17-
* @copyright Sebastian Bergmann <[email protected]>
18-
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
19-
* @version Release: @package_version@
20-
* @link http://github.com/sebastianbergmann/php-file-iterator/tree
2116
* @since Class available since Release 1.1.0
2217
*/
2318
class File_Iterator_Factory
2419
{
2520
/**
26-
* @param array|string $paths
27-
* @param array|string $suffixes
28-
* @param array|string $prefixes
29-
* @param array $exclude
21+
* @param array|string $paths
22+
* @param array|string $suffixes
23+
* @param array|string $prefixes
24+
* @param array $exclude
3025
* @return AppendIterator
3126
*/
3227
public function getFileIterator($paths, $suffixes = '', $prefixes = '', array $exclude = array())

src/Iterator.php

+13-18
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
* FilterIterator implementation that filters files based on prefix(es) and/or
1313
* suffix(es). Hidden files and files from hidden directories are also filtered.
1414
*
15-
* @author Sebastian Bergmann <[email protected]>
16-
* @copyright Sebastian Bergmann <[email protected]>
17-
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
18-
* @version Release: @package_version@
19-
* @link http://github.com/sebastianbergmann/php-file-iterator/tree
2015
* @since Class available since Release 1.0.0
2116
*/
2217
class File_Iterator extends FilterIterator
@@ -45,11 +40,11 @@ class File_Iterator extends FilterIterator
4540
protected $basepath;
4641

4742
/**
48-
* @param Iterator $iterator
49-
* @param array $suffixes
50-
* @param array $prefixes
51-
* @param array $exclude
52-
* @param string $basepath
43+
* @param Iterator $iterator
44+
* @param array $suffixes
45+
* @param array $prefixes
46+
* @param array $exclude
47+
* @param string $basepath
5348
*/
5449
public function __construct(Iterator $iterator, array $suffixes = array(), array $prefixes = array(), array $exclude = array(), $basepath = NULL)
5550
{
@@ -76,7 +71,7 @@ public function __construct(Iterator $iterator, array $suffixes = array(), array
7671
}
7772

7873
/**
79-
* @return boolean
74+
* @return bool
8075
*/
8176
public function accept()
8277
{
@@ -100,7 +95,7 @@ public function accept()
10095

10196
/**
10297
* @param string $path
103-
* @return boolean
98+
* @return bool
10499
* @since Method available since Release 1.1.0
105100
*/
106101
protected function acceptPath($path)
@@ -116,7 +111,7 @@ protected function acceptPath($path)
116111

117112
/**
118113
* @param string $filename
119-
* @return boolean
114+
* @return bool
120115
* @since Method available since Release 1.1.0
121116
*/
122117
protected function acceptPrefix($filename)
@@ -126,7 +121,7 @@ protected function acceptPrefix($filename)
126121

127122
/**
128123
* @param string $filename
129-
* @return boolean
124+
* @return bool
130125
* @since Method available since Release 1.1.0
131126
*/
132127
protected function acceptSuffix($filename)
@@ -135,10 +130,10 @@ protected function acceptSuffix($filename)
135130
}
136131

137132
/**
138-
* @param string $filename
139-
* @param array $subString
140-
* @param integer $type
141-
* @return boolean
133+
* @param string $filename
134+
* @param array $subString
135+
* @param int $type
136+
* @return bool
142137
* @since Method available since Release 1.1.0
143138
*/
144139
protected function acceptSubString($filename, array $subStrings, $type)

0 commit comments

Comments
 (0)