diff --git a/.gitignore b/.gitignore index 5938566..093c980 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# PhpStorm /.idea -vendor - +/.phpcs-cache +/phpstan.neon +/vendor diff --git a/.phpcs-cache b/.phpcs-cache index e3559b8..9397f84 100644 --- a/.phpcs-cache +++ b/.phpcs-cache @@ -1 +1 @@ -{"config":{"phpVersion":70113,"tabWidth":4,"encoding":"utf-8","recordErrors":true,"annotations":true,"codeHash":"8626946805eabfffae322109b59409f2","rulesetHash":"ac722f7b9b6abd8706b267c03f0a100d"},"\/home\/lee\/easy-csv\/lib\/EasyCSV\/Writer.php":{"hash":"37196be419c932165852fdac4d94e561","errors":{"16":{"8":[{"message":"Expected \"false|integer\" but found \"false|int\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"14":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"30":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"29":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":30,"81-120":1}},"Line indent":{"values":{"spaces":22}},"PHP keyword case":{"values":{"lower":16}},"Multiple statements on same line":{"values":{"no":9}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"CamelCase method name":{"values":{"yes":2}},"Function opening brace placement":{"values":{"new line":2}},"Function has doc comment":{"values":{"yes":2}},"Spaces after control structure open parenthesis":{"values":[2]},"Spaces before control structure close parenthesis":{"values":[2]},"Blank lines at start of control structure":{"values":[2]},"Blank lines at end of control structure":{"values":[2]},"Control structure defined inline":{"values":{"no":2}},"Adjacent assignments aligned":{"values":{"yes":1}},"Spacing before object operator":{"values":[5]},"Spacing after object operator":{"values":[5]}},"errorCount":4,"warningCount":0,"fixableCount":1,"numTokens":224},"\/home\/lee\/easy-csv\/tests\/EasyCSV\/Tests\/WriterTest.php":{"hash":"d9cf2ae2259e472f5524b6ece5aa2953","errors":{"16":{"12":[{"message":"Missing doc comment for function setUp()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"22":{"12":[{"message":"Missing doc comment for function testWriteRow()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"27":{"12":[{"message":"Missing doc comment for function testWriteRowOnHeaders()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"33":{"12":[{"message":"Missing doc comment for function testWriteBOMRow()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"38":{"12":[{"message":"Missing doc comment for function testWriteFromArray()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"44":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 38 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"42":{"13":[{"message":"Array value not aligned correctly; expected 39 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"43":{"13":[{"message":"Array value not aligned correctly; expected 39 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"51":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 28 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"48":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"49":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"50":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"54":{"12":[{"message":"Missing doc comment for function testWriteBOMFromArray()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"60":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 41 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"58":{"13":[{"message":"Array value not aligned correctly; expected 42 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"59":{"13":[{"message":"Array value not aligned correctly; expected 42 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"67":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 28 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"64":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"65":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"66":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"70":{"12":[{"message":"Missing doc comment for function testReadWrittenFile()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"85":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 20 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"75":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"80":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"76":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"77":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"78":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"81":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"82":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"83":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"89":{"12":[{"message":"Missing doc comment for function testReadWrittenBOMFile()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"104":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 20 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"94":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"99":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"95":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"96":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"97":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"100":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"101":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"102":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":93,"81-120":2}},"Line indent":{"values":{"spaces":86}},"PHP keyword case":{"values":{"lower":31}},"Multiple statements on same line":{"values":{"no":30}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"CamelCase method name":{"values":{"yes":8}},"Function opening brace placement":{"values":{"new line":8}},"Function has doc comment":{"values":{"no":8}},"Spacing before object operator":{"values":[26]},"Spacing after object operator":{"values":[26]},"Adjacent assignments aligned":{"values":{"yes":5}},"Spacing before string concat":{"values":{"1":7}},"Spacing after string concat":{"values":{"1":7}},"PHP constant case":{"values":{"lower":2}},"Short array syntax used":{"values":{"yes":13}},"Array end comma":{"values":{"yes":4}}},"errorCount":42,"warningCount":0,"fixableCount":34,"numTokens":808},"\/home\/lee\/easy-csv\/lib\/EasyCSV\/AbstractBase.php":{"hash":"3f836aa3d4cbc2d0f0986a95e8fd4e68","errors":{"38":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false},{"message":"Doc comment for parameter $initialHeaders does not match actual variable name $path","source":"Squiz.Commenting.FunctionComment.ParamNameNoMatch","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"40":{"12":[{"message":"Expected type hint \"array\"; found \"string\" for $initialHeaders","source":"Squiz.Commenting.FunctionComment.IncorrectTypeHint","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"37":{"5":[{"message":"Doc comment for parameter \"$path\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false},{"message":"Doc comment for parameter \"$mode\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false},{"message":"Doc comment for parameter \"$isNeedBOM\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"53":{"12":[{"message":"Missing doc comment for function __destruct()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"58":{"12":[{"message":"Missing doc comment for function setDelimiter()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"63":{"12":[{"message":"Missing doc comment for function setEnclosure()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"68":{"15":[{"message":"Missing doc comment for function getHandle()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"77":{"13":[{"message":"Missing doc comment for function initializeHandle()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":78}},"Line indent":{"values":{"spaces":66}},"PHP keyword case":{"values":{"lower":37}},"Multiple statements on same line":{"values":{"no":34}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"PHP constant case":{"values":{"lower":6}},"Short array syntax used":{"values":{"yes":3}},"Function has doc comment":{"values":{"yes":1,"no":5}},"Spacing before object operator":{"values":[24]},"Spacing after object operator":{"values":[24]},"Adjacent assignments aligned":{"values":{"yes":1}},"Function opening brace placement":{"values":{"new line":5}},"CamelCase method name":{"values":{"yes":4}},"Spaces after control structure open parenthesis":{"values":[4]},"Spaces before control structure close parenthesis":{"values":[4]},"Blank lines at start of control structure":{"values":[4]},"Blank lines at end of control structure":{"values":[4]},"Control structure defined inline":{"values":{"no":4}},"Spacing before string concat":{"values":{"1":1}},"Spacing after string concat":{"values":{"1":1}}},"errorCount":11,"warningCount":0,"fixableCount":0,"numTokens":651},"\/home\/lee\/easy-csv\/lib\/EasyCSV\/Reader.php":{"hash":"6580201885f3e7c2cf13d8f26c30eb46","errors":{"75":{"65":[{"message":"Function count() should not be referenced via a fallback global name, but via a use statement.","source":"SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFallbackGlobalName","listener":"SlevomatCodingStandard\\Sniffs\\Namespaces\\ReferenceUsedNamesOnlySniff","severity":5,"fixable":true}],"91":[{"message":"Function count() should not be referenced via a fallback global name, but via a use statement.","source":"SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFallbackGlobalName","listener":"SlevomatCodingStandard\\Sniffs\\Namespaces\\ReferenceUsedNamesOnlySniff","severity":5,"fixable":true}]},"36":{"12":[{"message":"Missing doc comment for function __construct()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"44":{"8":[{"message":"Expected \"string[]|boolean\" but found \"string[]|bool\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"54":{"8":[{"message":"Expected \"string[]|boolean\" but found \"string[]|bool\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"78":{"12":[{"message":"Missing doc comment for function isEof()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"96":{"12":[{"message":"Missing doc comment for function getLineNumber()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"102":{"8":[{"message":"Expected \"integer|boolean\" but found \"int|bool\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"134":{"12":[{"message":"Missing doc comment for function advanceTo()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"162":{"12":[{"message":"Missing doc comment for function setHeaderLine()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"180":{"15":[{"message":"Missing doc comment for function init()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"201":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"200":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]}},"warnings":{"75":{"159":[{"message":"Line exceeds 120 characters; contains 159 characters","source":"Generic.Files.LineLength.TooLong","listener":"PHP_CodeSniffer\\Standards\\Generic\\Sniffs\\Files\\LineLengthSniff","severity":5,"fixable":false}]}},"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":164,"81-120":3,"151 or more":1}},"Line indent":{"values":{"spaces":154}},"PHP keyword case":{"values":{"lower":82}},"Multiple statements on same line":{"values":{"no":66}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"PHP constant case":{"values":{"lower":22}},"Function opening brace placement":{"values":{"new line":12}},"Function has doc comment":{"values":{"no":6,"yes":6}},"Spacing before object operator":{"values":[62]},"Spacing after object operator":{"values":[62]},"CamelCase method name":{"values":{"yes":11}},"Spaces after control structure open parenthesis":{"values":[15]},"Spaces before control structure close parenthesis":{"values":[15]},"Blank lines at start of control structure":{"values":[15]},"Blank lines at end of control structure":{"values":[15]},"Control structure defined inline":{"values":{"no":15}},"Adjacent assignments aligned":{"values":{"yes":2}},"Short array syntax used":{"values":{"yes":3}},"Use of ELSE IF or ELSEIF":{"values":{"elseif":2}},"Inline comment style":{"values":{"\/\/ ...":2}}},"errorCount":13,"warningCount":1,"fixableCount":5,"numTokens":1479},"\/home\/lee\/easy-csv\/tests\/EasyCSV\/Tests\/ReaderTest.php":{"hash":"2069beb13d0f0f526be545370acab179","errors":{"15":{"26":[{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"49":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 30 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"19":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"25":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"31":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"37":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"43":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"21":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"22":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"23":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"27":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"28":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"29":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"33":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"34":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"35":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"39":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"40":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"41":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"45":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"46":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"47":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"89":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 38 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"53":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"59":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"65":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"71":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"77":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"83":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"55":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"56":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"57":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"61":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"62":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"63":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"67":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"68":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"69":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"73":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"74":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"75":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"79":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"80":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"81":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"85":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"86":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"87":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"96":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 26 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"93":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"94":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"95":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"103":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 26 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"100":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"101":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"102":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"110":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 26 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"107":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"108":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"109":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"114":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"112":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"125":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"123":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"144":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"142":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"157":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"155":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"165":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"163":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"173":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"171":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"201":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"198":{"13":[{"message":"Array key not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"199":{"13":[{"message":"Array key not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"200":{"13":[{"message":"Array key not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"209":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"207":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"216":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 25 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"213":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"214":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"215":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"221":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 25 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"218":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"219":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"220":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"262":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"259":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"258":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"272":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"269":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"282":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"279":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"292":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"289":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"300":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"298":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"314":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"312":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"330":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"328":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"339":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"337":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"356":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"354":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"355":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"370":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"368":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"14":[{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"369":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"14":[{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"384":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"382":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"383":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":321,"81-120":6}},"Line indent":{"values":{"spaces":317}},"PHP keyword case":{"values":{"lower":61}},"Multiple statements on same line":{"values":{"no":91}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"Short array syntax used":{"values":{"yes":31}},"CamelCase method name":{"values":{"yes":18}},"Function opening brace placement":{"values":{"new line":18}},"Function has doc comment":{"values":{"yes":18}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}},"Spacing before object operator":{"values":[102]},"Spacing after object operator":{"values":[102]},"Inline comment style":{"values":{"\/\/ ...":4}},"Adjacent assignments aligned":{"values":{"yes":1}},"Spacing before string concat":{"values":{"1":6}},"Spacing after string concat":{"values":{"1":6}},"Array end comma":{"values":{"yes":3}},"PHP constant case":{"values":{"lower":2}}},"errorCount":115,"warningCount":0,"fixableCount":84,"numTokens":2564}} \ No newline at end of file +{"config":{"phpVersion":70110,"tabWidth":4,"encoding":"utf-8","recordErrors":true,"annotations":true,"configData":{"installed_paths":"..\/..\/doctrine\/coding-standard\/lib\/,..\/..\/slevomat\/coding-standard\/"},"codeHash":"28565285ded125c2bb51f063fbfe72b8","rulesetHash":"ac722f7b9b6abd8706b267c03f0a100d"},"\/data\/projects\/easy-csv\/lib\/EasyCSV\/Writer.php":{"hash":"37196be419c932165852fdac4d94e561","errors":{"16":{"8":[{"message":"Expected \"false|integer\" but found \"false|int\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"14":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"30":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"29":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":30,"81-120":1}},"Line indent":{"values":{"spaces":22}},"PHP keyword case":{"values":{"lower":15}},"Multiple statements on same line":{"values":{"no":9}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"CamelCase method name":{"values":{"yes":2}},"Function opening brace placement":{"values":{"new line":2}},"Function has doc comment":{"values":{"yes":2}},"Spaces after control structure open parenthesis":{"values":[2]},"Spaces before control structure close parenthesis":{"values":[2]},"Blank lines at start of control structure":{"values":[2]},"Blank lines at end of control structure":{"values":[2]},"Control structure defined inline":{"values":{"no":2}},"Adjacent assignments aligned":{"values":{"yes":1}},"Spacing before object operator":{"values":[5]},"Spacing after object operator":{"values":[5]}},"errorCount":4,"warningCount":0,"fixableCount":1,"numTokens":224},"\/data\/projects\/easy-csv\/lib\/EasyCSV\/AbstractBase.php":{"hash":"3f836aa3d4cbc2d0f0986a95e8fd4e68","errors":{"38":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false},{"message":"Doc comment for parameter $initialHeaders does not match actual variable name $path","source":"Squiz.Commenting.FunctionComment.ParamNameNoMatch","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"40":{"12":[{"message":"Expected type hint \"array\"; found \"string\" for $initialHeaders","source":"Squiz.Commenting.FunctionComment.IncorrectTypeHint","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"37":{"5":[{"message":"Doc comment for parameter \"$path\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false},{"message":"Doc comment for parameter \"$mode\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false},{"message":"Doc comment for parameter \"$isNeedBOM\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"53":{"12":[{"message":"Missing doc comment for function __destruct()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"58":{"12":[{"message":"Missing doc comment for function setDelimiter()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"63":{"12":[{"message":"Missing doc comment for function setEnclosure()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"68":{"15":[{"message":"Missing doc comment for function getHandle()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"77":{"13":[{"message":"Missing doc comment for function initializeHandle()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":78}},"Line indent":{"values":{"spaces":66}},"PHP keyword case":{"values":{"lower":36}},"Multiple statements on same line":{"values":{"no":34}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"PHP constant case":{"values":{"lower":6}},"Short array syntax used":{"values":{"yes":3}},"Function has doc comment":{"values":{"yes":1,"no":5}},"Spacing before object operator":{"values":[24]},"Spacing after object operator":{"values":[24]},"Adjacent assignments aligned":{"values":{"yes":1}},"Function opening brace placement":{"values":{"new line":5}},"CamelCase method name":{"values":{"yes":4}},"Spaces after control structure open parenthesis":{"values":[4]},"Spaces before control structure close parenthesis":{"values":[4]},"Blank lines at start of control structure":{"values":[4]},"Blank lines at end of control structure":{"values":[4]},"Control structure defined inline":{"values":{"no":4}},"Spacing before string concat":{"values":{"1":1}},"Spacing after string concat":{"values":{"1":1}}},"errorCount":11,"warningCount":0,"fixableCount":0,"numTokens":651},"\/data\/projects\/easy-csv\/tests\/EasyCSV\/Tests\/WriterTest.php":{"hash":"d9cf2ae2259e472f5524b6ece5aa2953","errors":{"16":{"12":[{"message":"Missing doc comment for function setUp()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"22":{"12":[{"message":"Missing doc comment for function testWriteRow()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"27":{"12":[{"message":"Missing doc comment for function testWriteRowOnHeaders()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"33":{"12":[{"message":"Missing doc comment for function testWriteBOMRow()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"38":{"12":[{"message":"Missing doc comment for function testWriteFromArray()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"44":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 38 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"42":{"13":[{"message":"Array value not aligned correctly; expected 39 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"43":{"13":[{"message":"Array value not aligned correctly; expected 39 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"51":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 28 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"48":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"49":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"50":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"54":{"12":[{"message":"Missing doc comment for function testWriteBOMFromArray()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"60":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 41 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"58":{"13":[{"message":"Array value not aligned correctly; expected 42 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"59":{"13":[{"message":"Array value not aligned correctly; expected 42 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"67":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 28 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"64":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"25":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"65":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"25":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"66":{"13":[{"message":"Array key not aligned correctly; expected 29 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"25":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"70":{"12":[{"message":"Missing doc comment for function testReadWrittenFile()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"85":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 20 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"75":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"80":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"76":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"77":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"78":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"81":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"82":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"83":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"89":{"12":[{"message":"Missing doc comment for function testReadWrittenBOMFile()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"104":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 20 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"94":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"99":{"13":[{"message":"Array value not aligned correctly; expected 21 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"95":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"29":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"96":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"29":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"97":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"29":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"100":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"29":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"101":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"29":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"102":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"29":[{"message":"Array double arrow not aligned correctly; expected 1 space(s) but found -6","source":"Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":93,"81-120":2}},"Line indent":{"values":{"spaces":86}},"PHP keyword case":{"values":{"lower":31}},"Multiple statements on same line":{"values":{"no":30}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"CamelCase method name":{"values":{"yes":8}},"Function opening brace placement":{"values":{"new line":8}},"Function has doc comment":{"values":{"no":8}},"Spacing before object operator":{"values":[26]},"Spacing after object operator":{"values":[26]},"Adjacent assignments aligned":{"values":{"yes":5}},"Spacing before string concat":{"values":{"1":7}},"Spacing after string concat":{"values":{"1":7}},"PHP constant case":{"values":{"lower":2}},"Short array syntax used":{"values":{"yes":13}},"Array end comma":{"values":{"yes":4}}},"errorCount":51,"warningCount":0,"fixableCount":43,"numTokens":808},"\/data\/projects\/easy-csv\/lib\/EasyCSV\/Reader.php":{"hash":"3f4f8417f6b1b4bfa953dbe2914d399c","errors":{"38":{"12":[{"message":"Missing doc comment for function __construct()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"46":{"8":[{"message":"Expected \"string[]|boolean\" but found \"string[]|bool\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"56":{"8":[{"message":"Expected \"mixed[]|boolean\" but found \"mixed[]|bool\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"88":{"12":[{"message":"Missing doc comment for function isEof()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"106":{"12":[{"message":"Missing doc comment for function getLineNumber()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"112":{"8":[{"message":"Expected \"integer|boolean\" but found \"int|bool\" for function return type","source":"Squiz.Commenting.FunctionComment.InvalidReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":true}]},"148":{"12":[{"message":"Missing doc comment for function advanceTo()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"176":{"12":[{"message":"Missing doc comment for function setHeaderLine()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"194":{"15":[{"message":"Missing doc comment for function init()","source":"Squiz.Commenting.FunctionComment.Missing","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"215":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"214":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":183,"81-120":4}},"Line indent":{"values":{"spaces":171}},"PHP keyword case":{"values":{"lower":93}},"Multiple statements on same line":{"values":{"no":73}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"PHP constant case":{"values":{"lower":23}},"Function opening brace placement":{"values":{"new line":13}},"Function has doc comment":{"values":{"no":6,"yes":7}},"Spacing before object operator":{"values":[64]},"Spacing after object operator":{"values":[64]},"CamelCase method name":{"values":{"yes":12}},"Spaces after control structure open parenthesis":{"values":[18]},"Spaces before control structure close parenthesis":{"values":[18]},"Blank lines at start of control structure":{"values":[18]},"Blank lines at end of control structure":{"values":[18]},"Control structure defined inline":{"values":{"no":18}},"Adjacent assignments aligned":{"values":{"yes":2}},"Short array syntax used":{"values":{"yes":5}},"Use of ELSE IF or ELSEIF":{"values":{"elseif":2}},"Inline comment style":{"values":{"\/\/ ...":2}}},"errorCount":11,"warningCount":0,"fixableCount":3,"numTokens":1620},"\/data\/projects\/easy-csv\/tests\/EasyCSV\/Tests\/ReaderTest.php":{"hash":"2069beb13d0f0f526be545370acab179","errors":{"15":{"26":[{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"49":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 30 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"19":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"25":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"31":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"37":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"43":{"9":[{"message":"Array key not aligned correctly; expected 31 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"21":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"22":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"23":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"27":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"28":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"29":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"33":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"34":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"35":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"39":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"40":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"41":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"45":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"46":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"47":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"89":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 38 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"53":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"59":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"65":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"71":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"77":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"83":{"9":[{"message":"Array key not aligned correctly; expected 39 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"11":[{"message":"Array value not aligned correctly; expected 1 space(s) but found 0","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"55":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"56":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"57":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"61":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"62":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"63":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"67":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"68":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"69":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"73":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"74":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"75":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"79":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"80":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"81":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"85":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"86":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"87":{"17":[{"message":"Array key not aligned correctly; expected 13 spaces but found 16","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"96":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 26 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"93":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"94":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"95":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"103":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 26 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"100":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"101":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"102":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"110":{"5":[{"message":"Closing parenthesis not aligned correctly; expected 26 space(s) but found 4","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"107":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"108":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"109":{"9":[{"message":"Array key not aligned correctly; expected 27 spaces but found 8","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"114":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"112":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"125":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"123":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"144":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"142":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"157":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"155":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"165":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"163":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"173":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"171":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"201":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"198":{"13":[{"message":"Array key not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"199":{"13":[{"message":"Array key not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"200":{"13":[{"message":"Array key not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"209":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"207":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"216":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 25 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"213":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"214":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"215":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"221":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 25 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"218":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"219":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"220":{"13":[{"message":"Array key not aligned correctly; expected 26 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.KeyNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"262":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"259":{"8":[{"message":"Missing parameter comment","source":"Squiz.Commenting.FunctionComment.MissingParamComment","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"258":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"272":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"269":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"282":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"279":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"292":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"289":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"300":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"298":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"314":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"312":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"330":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"328":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"339":{"6":[{"message":"Missing @return tag in function comment","source":"Squiz.Commenting.FunctionComment.MissingReturn","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"337":{"5":[{"message":"Doc comment for parameter \"$reader\" missing","source":"Squiz.Commenting.FunctionComment.MissingParamTag","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Commenting\\FunctionCommentSniff","severity":0,"fixable":false}]},"356":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"354":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"355":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"370":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"368":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"14":[{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"369":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true},{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}],"14":[{"message":"Array with multiple values cannot be declared on a single line","source":"Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"384":{"9":[{"message":"Closing parenthesis not aligned correctly; expected 15 space(s) but found 8","source":"Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"382":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]},"383":{"13":[{"message":"Array value not aligned correctly; expected 16 spaces but found 12","source":"Squiz.Arrays.ArrayDeclaration.ValueNotAligned","listener":"PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\Arrays\\ArrayDeclarationSniff","severity":0,"fixable":true}]}},"warnings":[],"metrics":{"PHP closing tag at end of PHP-only file":{"values":{"no":1}},"Number of newlines at EOF":{"values":{"1":1}},"Declarations and side effects mixed":{"values":{"no":1}},"PHP short open tag used":{"values":{"no":1}},"EOL char":{"values":{"\\n":1}},"Line length":{"values":{"80 or less":321,"81-120":6}},"Line indent":{"values":{"spaces":317}},"PHP keyword case":{"values":{"lower":60}},"Multiple statements on same line":{"values":{"no":91}},"Class opening brace placement":{"values":{"new line":1}},"One class per file":{"values":{"yes":1}},"Class defined in namespace":{"values":{"yes":1}},"CamelCase class name":{"values":{"yes":1}},"Short array syntax used":{"values":{"yes":31}},"CamelCase method name":{"values":{"yes":18}},"Function opening brace placement":{"values":{"new line":18}},"Function has doc comment":{"values":{"yes":18}},"Spaces after control structure open parenthesis":{"values":[1]},"Spaces before control structure close parenthesis":{"values":[1]},"Blank lines at start of control structure":{"values":[1]},"Blank lines at end of control structure":{"values":[1]},"Control structure defined inline":{"values":{"no":1}},"Spacing before object operator":{"values":[102]},"Spacing after object operator":{"values":[102]},"Inline comment style":{"values":{"\/\/ ...":4}},"Adjacent assignments aligned":{"values":{"yes":1}},"Spacing before string concat":{"values":{"1":6}},"Spacing after string concat":{"values":{"1":6}},"Array end comma":{"values":{"yes":3}},"PHP constant case":{"values":{"lower":2}}},"errorCount":126,"warningCount":0,"fixableCount":95,"numTokens":2564}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 0c9514f..55e7459 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,4 +53,4 @@ jobs: - stage: Code Quality env: STATIC_ANALYSIS install: travis_retry composer install --prefer-dist - script: vendor/bin/phpstan analyse -l 7 -c phpstan.neon lib + script: vendor/bin/phpstan analyse diff --git a/composer.json b/composer.json index 8898993..9e1799a 100644 --- a/composer.json +++ b/composer.json @@ -23,8 +23,9 @@ }, "require-dev": { "doctrine/coding-standard": "^4.0", - "phpstan/phpstan": "^0.9.2", - "phpstan/phpstan-strict-rules": "^0.9", + "phpstan/phpstan": "^0.10", + "phpstan/phpstan-deprecation-rules": "^0.10", + "phpstan/phpstan-strict-rules": "^0.10", "phpunit/phpunit": "^5.5|^6.5|^7.0" }, "extra": { diff --git a/composer.lock b/composer.lock index 1092b5f..df4fb29 100644 --- a/composer.lock +++ b/composer.lock @@ -1,12 +1,56 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "003ee38df72a32e97351467e740c57dd", + "content-hash": "5bf20602253bff99b7f534ffeaf017fb", "packages": [], "packages-dev": [ + { + "name": "composer/xdebug-handler", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/c919dc6c62e221fc6406f861ea13433c0aa24f08", + "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0", + "psr/log": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "time": "2018-04-11T15:42:36+00:00" + }, { "name": "dealerdirect/phpcodesniffer-composer-installer", "version": "v0.4.4", @@ -189,16 +233,16 @@ }, { "name": "jean85/pretty-package-versions", - "version": "1.1", + "version": "1.2", "source": { "type": "git", "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "d457344b6a035ef99236bdda4729ad7eeb233f54" + "reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/d457344b6a035ef99236bdda4729ad7eeb233f54", - "reference": "d457344b6a035ef99236bdda4729ad7eeb233f54", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/75c7effcf3f77501d0e0caa75111aff4daa0dd48", + "reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48", "shasum": "" }, "require": { @@ -229,36 +273,39 @@ "email": "alessandro.lai85@gmail.com" } ], - "description": "A wrapper for ocramius/pretty-package-versions to get pretty versions strings", + "description": "A wrapper for ocramius/package-versions to get pretty versions strings", "keywords": [ "composer", "package", "release", "versions" ], - "time": "2018-01-21T13:54:22+00:00" + "time": "2018-06-13T13:22:40+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.7.0", + "version": "1.8.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e" + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", - "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^7.1" + }, + "replace": { + "myclabs/deep-copy": "self.version" }, "require-dev": { "doctrine/collections": "^1.0", "doctrine/common": "^2.6", - "phpunit/phpunit": "^4.1" + "phpunit/phpunit": "^7.1" }, "type": "library", "autoload": { @@ -281,7 +328,7 @@ "object", "object graph" ], - "time": "2017-10-19T19:58:43+00:00" + "time": "2018-06-11T23:09:50+00:00" }, { "name": "nette/bootstrap", @@ -749,24 +796,24 @@ }, { "name": "nikic/php-parser", - "version": "v3.1.5", + "version": "v4.0.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce" + "reference": "35b8caf75e791ba1b2d24fec1552168d72692b12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/bb87e28e7d7b8d9a7fda231d37457c9210faf6ce", - "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/35b8caf75e791ba1b2d24fec1552168d72692b12", + "reference": "35b8caf75e791ba1b2d24fec1552168d72692b12", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.5" + "php": ">=7.0" }, "require-dev": { - "phpunit/phpunit": "~4.0|~5.0" + "phpunit/phpunit": "^6.5 || ^7.0" }, "bin": [ "bin/php-parse" @@ -774,7 +821,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -796,7 +843,7 @@ "parser", "php" ], - "time": "2018-02-28T20:30:58+00:00" + "time": "2018-06-03T11:33:10+00:00" }, { "name": "ocramius/package-versions", @@ -1166,33 +1213,34 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "0.2", + "version": "0.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "02f909f134fe06f0cd4790d8627ee24efbe84d6a" + "reference": "ed3223362174b8067729930439e139794e9e514a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/02f909f134fe06f0cd4790d8627ee24efbe84d6a", - "reference": "02f909f134fe06f0cd4790d8627ee24efbe84d6a", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ed3223362174b8067729930439e139794e9e514a", + "reference": "ed3223362174b8067729930439e139794e9e514a", "shasum": "" }, "require": { - "php": "~7.0" + "php": "~7.1" }, "require-dev": { "consistence/coding-standard": "^2.0.0", "jakub-onderka/php-parallel-lint": "^0.9.2", "phing/phing": "^2.16.0", - "phpstan/phpstan": "^0.9", + "phpstan/phpstan": "^0.10@dev", "phpunit/phpunit": "^6.3", - "slevomat/coding-standard": "^3.3.0" + "slevomat/coding-standard": "^3.3.0", + "symfony/process": "^3.4 || ^4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.1-dev" + "dev-master": "0.3-dev" } }, "autoload": { @@ -1207,46 +1255,50 @@ "MIT" ], "description": "PHPDoc parser with support for nullable, intersection and generic types", - "time": "2018-01-13T18:19:41+00:00" + "time": "2018-06-20T17:48:01+00:00" }, { "name": "phpstan/phpstan", - "version": "0.9.2", + "version": "0.10", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e59541bcc7cac9b35ca54db6365bf377baf4a488" + "reference": "86b9f9a4421d282f3c18e0d4d1426f330c1ef21d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e59541bcc7cac9b35ca54db6365bf377baf4a488", - "reference": "e59541bcc7cac9b35ca54db6365bf377baf4a488", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/86b9f9a4421d282f3c18e0d4d1426f330c1ef21d", + "reference": "86b9f9a4421d282f3c18e0d4d1426f330c1ef21d", "shasum": "" }, "require": { + "composer/xdebug-handler": "^1.0", "jean85/pretty-package-versions": "^1.0.3", "nette/bootstrap": "^2.4 || ^3.0", "nette/di": "^2.4.7 || ^3.0", "nette/robot-loader": "^3.0.1", "nette/utils": "^2.4.5 || ^3.0", - "nikic/php-parser": "^3.1", - "php": "~7.0", - "phpstan/phpdoc-parser": "^0.2", + "nikic/php-parser": "^4.0.2", + "php": "~7.1", + "phpstan/phpdoc-parser": "^0.3", "symfony/console": "~3.2 || ~4.0", "symfony/finder": "~3.2 || ~4.0" }, "require-dev": { - "consistence/coding-standard": "2.2.1", + "brianium/paratest": "^2.0", + "consistence/coding-standard": "^3.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", "ext-gd": "*", "ext-intl": "*", "ext-mysqli": "*", - "jakub-onderka/php-parallel-lint": "^0.9.2", + "ext-zip": "*", + "jakub-onderka/php-parallel-lint": "^1.0", "phing/phing": "^2.16.0", - "phpstan/phpstan-php-parser": "^0.9", - "phpstan/phpstan-phpunit": "^0.9.3", - "phpstan/phpstan-strict-rules": "^0.9", - "phpunit/phpunit": "^6.5.4", - "slevomat/coding-standard": "4.0.0" + "phpstan/phpstan-php-parser": "^0.10", + "phpstan/phpstan-phpunit": "^0.10", + "phpstan/phpstan-strict-rules": "^0.10", + "phpunit/phpunit": "^7.0", + "slevomat/coding-standard": "^4.6.2" }, "bin": [ "bin/phpstan" @@ -1254,7 +1306,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.9-dev" + "dev-master": "0.10-dev" } }, "autoload": { @@ -1270,38 +1322,86 @@ "MIT" ], "description": "PHPStan - PHP Static Analysis Tool", - "time": "2018-01-28T13:22:19+00:00" + "time": "2018-06-24T17:49:58+00:00" + }, + { + "name": "phpstan/phpstan-deprecation-rules", + "version": "0.10", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", + "reference": "ae3a84298c5d93ff82783d2ae8c5a5859dd94c2a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/ae3a84298c5d93ff82783d2ae8c5a5859dd94c2a", + "reference": "ae3a84298c5d93ff82783d2ae8c5a5859dd94c2a", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.0", + "php": "~7.1", + "phpstan/phpstan": "^0.10" + }, + "require-dev": { + "consistence/coding-standard": "^3.0.1", + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", + "jakub-onderka/php-parallel-lint": "^1.0", + "phing/phing": "^2.16.0", + "phpstan/phpstan-phpunit": "^0.10", + "phpunit/phpunit": "^7.0", + "slevomat/coding-standard": "^4.5.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.10-dev" + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", + "time": "2018-06-24T16:51:04+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "0.9", + "version": "0.10", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "15be9090622c6b85c079922308f831018d8d9e23" + "reference": "bffdf03fc70602833936dccf6c2eb3be58ed78d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/15be9090622c6b85c079922308f831018d8d9e23", - "reference": "15be9090622c6b85c079922308f831018d8d9e23", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/bffdf03fc70602833936dccf6c2eb3be58ed78d6", + "reference": "bffdf03fc70602833936dccf6c2eb3be58ed78d6", "shasum": "" }, "require": { - "php": "~7.0", - "phpstan/phpstan": "^0.9" + "nikic/php-parser": "^4.0", + "php": "~7.1", + "phpstan/phpstan": "^0.10" }, "require-dev": { - "consistence/coding-standard": "^2.0.0", - "jakub-onderka/php-parallel-lint": "^0.9.2", + "consistence/coding-standard": "^3.0.1", + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", + "jakub-onderka/php-parallel-lint": "^1.0", "phing/phing": "^2.16.0", - "phpstan/phpstan-phpunit": "^0.9", - "phpunit/phpunit": "^6.4", - "slevomat/coding-standard": "^3.3.0" + "phpstan/phpstan-phpunit": "^0.10", + "phpunit/phpunit": "^7.0", + "slevomat/coding-standard": "^4.5.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.9-dev" + "dev-master": "0.10-dev" } }, "autoload": { @@ -1314,27 +1414,27 @@ "MIT" ], "description": "Extra strict and opinionated rules for PHPStan", - "time": "2017-11-26T20:12:30+00:00" + "time": "2018-06-22T18:09:47+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "6.0.4", + "version": "6.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "52187754b0eed0b8159f62a6fa30073327e8c2ca" + "reference": "865662550c384bc1db7e51d29aeda1c2c161d69a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/52187754b0eed0b8159f62a6fa30073327e8c2ca", - "reference": "52187754b0eed0b8159f62a6fa30073327e8c2ca", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/865662550c384bc1db7e51d29aeda1c2c161d69a", + "reference": "865662550c384bc1db7e51d29aeda1c2c161d69a", "shasum": "" }, "require": { "ext-dom": "*", "ext-xmlwriter": "*", "php": "^7.1", - "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-file-iterator": "^2.0", "phpunit/php-text-template": "^1.2.1", "phpunit/php-token-stream": "^3.0", "sebastian/code-unit-reverse-lookup": "^1.0.1", @@ -1377,29 +1477,29 @@ "testing", "xunit" ], - "time": "2018-04-29T14:59:09+00:00" + "time": "2018-06-01T07:51:50+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "1.4.5", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + "reference": "cecbc684605bb0cc288828eb5d65d93d5c676d3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cecbc684605bb0cc288828eb5d65d93d5c676d3c", + "reference": "cecbc684605bb0cc288828eb5d65d93d5c676d3c", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -1414,7 +1514,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -1424,7 +1524,7 @@ "filesystem", "iterator" ], - "time": "2017-11-27T13:52:08+00:00" + "time": "2018-06-11T11:44:00+00:00" }, { "name": "phpunit/php-text-template", @@ -1567,34 +1667,34 @@ }, { "name": "phpunit/phpunit", - "version": "7.1.5", + "version": "7.2.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "ca64dba53b88aba6af32aebc6b388068db95c435" + "reference": "400a3836ee549ae6f665323ac3f21e27eac7155f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ca64dba53b88aba6af32aebc6b388068db95c435", - "reference": "ca64dba53b88aba6af32aebc6b388068db95c435", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/400a3836ee549ae6f665323ac3f21e27eac7155f", + "reference": "400a3836ee549ae6f665323ac3f21e27eac7155f", "shasum": "" }, "require": { + "doctrine/instantiator": "^1.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", - "myclabs/deep-copy": "^1.6.1", + "myclabs/deep-copy": "^1.7", "phar-io/manifest": "^1.0.1", "phar-io/version": "^1.0", "php": "^7.1", "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^6.0.1", - "phpunit/php-file-iterator": "^1.4.3", + "phpunit/php-code-coverage": "^6.0.7", + "phpunit/php-file-iterator": "^2.0.1", "phpunit/php-text-template": "^1.2.1", "phpunit/php-timer": "^2.0", - "phpunit/phpunit-mock-objects": "^6.1.1", "sebastian/comparator": "^3.0", "sebastian/diff": "^3.0", "sebastian/environment": "^3.1", @@ -1604,10 +1704,14 @@ "sebastian/resource-operations": "^1.0", "sebastian/version": "^2.0.1" }, + "conflict": { + "phpunit/phpunit-mock-objects": "*" + }, "require-dev": { "ext-pdo": "*" }, "suggest": { + "ext-soap": "*", "ext-xdebug": "*", "phpunit/php-invoker": "^2.0" }, @@ -1617,7 +1721,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.1-dev" + "dev-master": "7.2-dev" } }, "autoload": { @@ -1643,63 +1747,54 @@ "testing", "xunit" ], - "time": "2018-04-29T15:09:19+00:00" + "time": "2018-06-21T13:13:39+00:00" }, { - "name": "phpunit/phpunit-mock-objects", - "version": "6.1.1", + "name": "psr/log", + "version": "1.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157" + "url": "https://github.com/php-fig/log.git", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/70c740bde8fd9ea9ea295be1cd875dd7b267e157", - "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.0.5", - "php": "^7.1", - "phpunit/php-text-template": "^1.2.1", - "sebastian/exporter": "^3.1" - }, - "require-dev": { - "phpunit/phpunit": "^7.0" - }, - "suggest": { - "ext-soap": "*" + "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.1-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", "keywords": [ - "mock", - "xunit" + "log", + "psr", + "psr-3" ], - "time": "2018-04-11T04:50:36+00:00" + "time": "2016-10-10T12:19:37+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -1748,16 +1843,16 @@ }, { "name": "sebastian/comparator", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "ed5fd2281113729f1ebcc64d101ad66028aeb3d5" + "reference": "591a30922f54656695e59b1f39501aec513403da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/ed5fd2281113729f1ebcc64d101ad66028aeb3d5", - "reference": "ed5fd2281113729f1ebcc64d101ad66028aeb3d5", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/591a30922f54656695e59b1f39501aec513403da", + "reference": "591a30922f54656695e59b1f39501aec513403da", "shasum": "" }, "require": { @@ -1808,20 +1903,20 @@ "compare", "equality" ], - "time": "2018-04-18T13:33:00+00:00" + "time": "2018-06-14T15:05:28+00:00" }, { "name": "sebastian/diff", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8" + "reference": "366541b989927187c4ca70490a35615d3fef2dce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/e09160918c66281713f1c324c1f4c4c3037ba1e8", - "reference": "e09160918c66281713f1c324c1f4c4c3037ba1e8", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/366541b989927187c4ca70490a35615d3fef2dce", + "reference": "366541b989927187c4ca70490a35615d3fef2dce", "shasum": "" }, "require": { @@ -1864,7 +1959,7 @@ "unidiff", "unified diff" ], - "time": "2018-02-01T13:45:15+00:00" + "time": "2018-06-10T07:54:39+00:00" }, { "name": "sebastian/environment", @@ -2266,16 +2361,16 @@ }, { "name": "slevomat/coding-standard", - "version": "4.6.0", + "version": "4.6.2", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "95436f14d4a6fe8638bcba09d3a8e19266846ee4" + "reference": "d43b9a627cdcb7ce837a1d85a79b52645cdf44bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/95436f14d4a6fe8638bcba09d3a8e19266846ee4", - "reference": "95436f14d4a6fe8638bcba09d3a8e19266846ee4", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/d43b9a627cdcb7ce837a1d85a79b52645cdf44bc", + "reference": "d43b9a627cdcb7ce837a1d85a79b52645cdf44bc", "shasum": "" }, "require": { @@ -2288,7 +2383,7 @@ "phpstan/phpstan": "0.9.2", "phpstan/phpstan-phpunit": "0.9.4", "phpstan/phpstan-strict-rules": "0.9", - "phpunit/phpunit": "7.1.5" + "phpunit/phpunit": "7.2.4" }, "type": "phpcodesniffer-standard", "autoload": { @@ -2301,20 +2396,20 @@ "MIT" ], "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", - "time": "2018-05-15T21:21:12+00:00" + "time": "2018-06-12T21:23:15+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.2.3", + "version": "3.3.0", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "4842476c434e375f9d3182ff7b89059583aa8b27" + "reference": "d86873af43b4aa9d1f39a3601cc0cfcf02b25266" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/4842476c434e375f9d3182ff7b89059583aa8b27", - "reference": "4842476c434e375f9d3182ff7b89059583aa8b27", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/d86873af43b4aa9d1f39a3601cc0cfcf02b25266", + "reference": "d86873af43b4aa9d1f39a3601cc0cfcf02b25266", "shasum": "" }, "require": { @@ -2352,20 +2447,20 @@ "phpcs", "standards" ], - "time": "2018-02-20T21:35:23+00:00" + "time": "2018-06-06T23:58:19+00:00" }, { "name": "symfony/console", - "version": "v4.0.10", + "version": "v4.1.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "058f120b8e06ebcd7b211de5ffae07b2db00fbdd" + "reference": "70591cda56b4b47c55776ac78e157c4bb6c8b43f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/058f120b8e06ebcd7b211de5ffae07b2db00fbdd", - "reference": "058f120b8e06ebcd7b211de5ffae07b2db00fbdd", + "url": "https://api.github.com/repos/symfony/console/zipball/70591cda56b4b47c55776ac78e157c4bb6c8b43f", + "reference": "70591cda56b4b47c55776ac78e157c4bb6c8b43f", "shasum": "" }, "require": { @@ -2393,7 +2488,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "4.1-dev" } }, "autoload": { @@ -2420,20 +2515,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2018-05-16T09:05:32+00:00" + "time": "2018-05-31T10:17:53+00:00" }, { "name": "symfony/finder", - "version": "v4.0.10", + "version": "v4.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "8c633f5a815903a1fe6e3fc135f207267a8a79af" + "reference": "84714b8417d19e4ba02ea78a41a975b3efaafddb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/8c633f5a815903a1fe6e3fc135f207267a8a79af", - "reference": "8c633f5a815903a1fe6e3fc135f207267a8a79af", + "url": "https://api.github.com/repos/symfony/finder/zipball/84714b8417d19e4ba02ea78a41a975b3efaafddb", + "reference": "84714b8417d19e4ba02ea78a41a975b3efaafddb", "shasum": "" }, "require": { @@ -2442,7 +2537,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "4.1-dev" } }, "autoload": { @@ -2469,7 +2564,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-05-16T09:05:32+00:00" + "time": "2018-06-19T21:38:16+00:00" }, { "name": "symfony/polyfill-mbstring", diff --git a/lib/EasyCSV/Reader.php b/lib/EasyCSV/Reader.php index ae5c2b2..f459cde 100644 --- a/lib/EasyCSV/Reader.php +++ b/lib/EasyCSV/Reader.php @@ -9,6 +9,7 @@ use function array_filter; use function count; use function is_array; +use function is_string; use function mb_strpos; use function sprintf; use function str_getcsv; @@ -52,7 +53,7 @@ public function getHeaders() } /** - * @return string[]|bool + * @return mixed[]|bool */ public function getRow() { @@ -73,7 +74,15 @@ public function getRow() return ($this->headers !== false && is_array($this->headers)) ? array_combine($this->headers, $row) : $row; } - return (isset($this->headers) && is_array($this->headers)) && (count($this->headers) !== count($row)) ? $this->getRow() : array_combine($this->headers, $row); + if ((isset($this->headers) && is_array($this->headers)) && (count($this->headers) !== count($row))) { + return $this->getRow(); + } + + if (is_array($this->headers)) { + return array_combine($this->headers, $row); + } + + return false; } public function isEof() : bool @@ -82,7 +91,7 @@ public function isEof() : bool } /** - * @return string[][] + * @return mixed[] */ public function getAll() : array { @@ -123,6 +132,10 @@ public function getCurrentRow() : array { $current = $this->getHandle()->current(); + if (! is_string($current)) { + return []; + } + if ($this->isNeedBOMRemove && mb_strpos($current, "\xEF\xBB\xBF", 0, 'utf-8') === 0) { $this->isNeedBOMRemove = false; @@ -173,7 +186,7 @@ public function setHeaderLine(int $lineNumber) : bool $this->getHandle()->seek($lineNumber); // get headers - $this->headers = $this->getRow(); + $this->headers = $this->getHeadersFromRow(); return true; } @@ -194,7 +207,7 @@ protected function init() : void $this->headerLine = 0; - $this->headers = $this->getRow(); + $this->headers = $this->getHeadersFromRow(); } /** @@ -218,4 +231,14 @@ protected function rowIsEmpty(array $row) : bool return $isEmpty; } + + /** + * @return string[] + */ + private function getHeadersFromRow() : array + { + $row = $this->getRow(); + + return is_array($row) ? $row : []; + } } diff --git a/phpstan.neon b/phpstan.neon deleted file mode 100644 index 17511e5..0000000 --- a/phpstan.neon +++ /dev/null @@ -1,3 +0,0 @@ -includes: - - vendor/phpstan/phpstan-strict-rules/rules.neon - diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..0b73467 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,8 @@ +parameters: + level: 7 + paths: + - %currentWorkingDirectory%/lib + +includes: + - vendor/phpstan/phpstan-deprecation-rules/rules.neon + - vendor/phpstan/phpstan-strict-rules/rules.neon