diff options
-rw-r--r-- | scrutinizer.yml | 4 | ||||
-rw-r--r-- | src/AbstractCsv.php | 14 | ||||
-rw-r--r-- | src/Config/Controls.php | 12 | ||||
-rw-r--r-- | src/Config/StreamFilter.php | 6 | ||||
-rw-r--r-- | src/Iterator/SortBy.php | 2 | ||||
-rw-r--r-- | src/Reader.php | 2 | ||||
-rw-r--r-- | src/Writer.php | 6 |
7 files changed, 21 insertions, 25 deletions
diff --git a/scrutinizer.yml b/scrutinizer.yml index 364c371..90099c3 100644 --- a/scrutinizer.yml +++ b/scrutinizer.yml @@ -26,7 +26,7 @@ tools: paths: ['src'] php_loc: enabled: true - excluded_dirs: [vendor, test] + excluded_dirs: [vendor, test, examples] php_cpd: enabled: true - excluded_dirs: [vendor, test]
\ No newline at end of file + excluded_dirs: [vendor, test, examples]
\ No newline at end of file diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index 56a78e7..610e9a8 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -12,18 +12,18 @@ */ namespace League\Csv; +use CallbackFilterIterator; use DomDocument; -use JsonSerializable; -use SplFileInfo; -use SplFileObject; -use SplTempFileObject; -use RuntimeException; use InvalidArgumentException; use IteratorAggregate; -use LimitIterator; -use CallbackFilterIterator; +use JsonSerializable; use League\Csv\Config\StreamFilter; use League\Csv\Config\Controls; +use LimitIterator; +use RuntimeException; +use SplFileInfo; +use SplFileObject; +use SplTempFileObject; /** * An abstract class to enable basic CSV manipulation diff --git a/src/Config/Controls.php b/src/Config/Controls.php index 61bbe77..963851d 100644 --- a/src/Config/Controls.php +++ b/src/Config/Controls.php @@ -12,10 +12,10 @@ */ namespace League\Csv\Config; -use Traversable; -use SplFileObject; use InvalidArgumentException; use League\Csv\Iterator\MapIterator; +use SplFileObject; +use Traversable; /** * A trait to configure and check CSV file and content @@ -177,9 +177,7 @@ trait Controls } /** - * DEPRECATION WARNING! This method will be removed in the next major point release - * - * @deprecated deprecated since version 5.5 + * Set the CSV encoding charset * * @param string $str * @@ -191,9 +189,7 @@ trait Controls } /** - * DEPRECATION WARNING! This method will be removed in the next major point release - * - * @deprecated deprecated since version 5.5 + * Get the CSV encoding charset * * @return string */ diff --git a/src/Config/StreamFilter.php b/src/Config/StreamFilter.php index 244646c..dabc62c 100644 --- a/src/Config/StreamFilter.php +++ b/src/Config/StreamFilter.php @@ -12,11 +12,11 @@ */ namespace League\Csv\Config; -use SplFileInfo; -use SplTempFileObject; use InvalidArgumentException; -use RuntimeException; use OutOfBoundsException; +use RuntimeException; +use SplFileInfo; +use SplTempFileObject; /** * A Trait to ease PHP Stream Filters manipulation diff --git a/src/Iterator/SortBy.php b/src/Iterator/SortBy.php index ad462d2..d4363dd 100644 --- a/src/Iterator/SortBy.php +++ b/src/Iterator/SortBy.php @@ -12,8 +12,8 @@ */ namespace League\Csv\Iterator; -use Iterator; use ArrayIterator; +use Iterator; /** * A Trait to sort an Iterator against diff --git a/src/Reader.php b/src/Reader.php index dca0a3f..68ab647 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -12,9 +12,9 @@ */ namespace League\Csv; +use CallbackFilterIterator; use InvalidArgumentException; use Iterator; -use CallbackFilterIterator; use League\Csv\Iterator\MapIterator; use League\Csv\Iterator\Filter; use League\Csv\Iterator\SortBy; diff --git a/src/Writer.php b/src/Writer.php index ab0bfb4..a8eac9d 100644 --- a/src/Writer.php +++ b/src/Writer.php @@ -12,11 +12,11 @@ */ namespace League\Csv; -use Traversable; -use SplFileObject; use InvalidArgumentException; -use RuntimeException; use OutOfBoundsException; +use RuntimeException; +use SplFileObject; +use Traversable; /** * A class to manage data insertion into a CSV |