{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/552","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/552/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/552/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/552","id":68752475,"number":552,"title":"Invalid detection of boolean operators in PEAR.ControlStructures.MultiLineCondition","user":{"login":"Konafets","id":363363,"avatar_url":"https://avatars.githubusercontent.com/u/363363?v=3","gravatar_id":"","url":"https://api.github.com/users/Konafets","html_url":"https://github.com/Konafets","followers_url":"https://api.github.com/users/Konafets/followers","following_url":"https://api.github.com/users/Konafets/following{/other_user}","gists_url":"https://api.github.com/users/Konafets/gists{/gist_id}","starred_url":"https://api.github.com/users/Konafets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konafets/subscriptions","organizations_url":"https://api.github.com/users/Konafets/orgs","repos_url":"https://api.github.com/users/Konafets/repos","events_url":"https://api.github.com/users/Konafets/events{/privacy}","received_events_url":"https://api.github.com/users/Konafets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T18:18:53Z","updated_at":"2015-04-15T18:27:04Z","closed_at":null,"body":"The code example raise the error below\r\n\r\n```\r\nif (($tokens[$commentBeforeCase]['line'])\r\n    !== ($tokens[$afterNextCase]['line'] - 1)\r\n) {\r\n...\r\n}\r\n```\r\n\r\n```\r\nEach line in a multi-line IF statement must begin with a boolean operator\r\n(PEAR.ControlStructures.MultiLineCondition.StartWithBoolean)\r\n```\r\n\r\nI found the reason inside ```CodeSniffer/Tokens.php``` where I added ```T_IS_NOT_IDENTICAL``` and ```T_IS_IDENTICAL```.\r\n```\r\n    /**\r\n     * Tokens that perform boolean operations.\r\n     *\r\n     * @var array(int)\r\n     */\r\n    public static $booleanOperators = array(\r\n                                       T_BOOLEAN_AND         => T_BOOLEAN_AND,\r\n                                       T_BOOLEAN_OR          => T_BOOLEAN_OR, \r\n                                       T_LOGICAL_AND         => T_LOGICAL_AND, \r\n                                       T_LOGICAL_OR          => T_LOGICAL_OR,\r\n                                       T_LOGICAL_XOR         => T_LOGICAL_XOR,\r\n                                       T_IS_NOT_IDENTICAL    => T_IS_NOT_IDENTICAL,\r\n                                       T_IS_IDENTICAL        => T_IS_IDENTICAL,\r\n                                      );\r\n```\r\n\r\nIs this behavior intended?  Could this be the solution? What is with the ```T_IS_NOT_EQUAL```, ```T_IS_GREATER_OR_EQUAL``` and ```T_IS_SMALLER_OR_EQUAL```."},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/93521812","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/552#issuecomment-93521812","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/552","id":93521812,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T18:27:04Z","updated_at":"2015-04-15T18:27:04Z","body":"I think, that there are equality tokens array where these 2 are listed."}}