{"action":"reopened","number":210,"pull_request":{"url":"https://api.github.com/repos/oyejorge/less.php/pulls/210","id":31268664,"html_url":"https://github.com/oyejorge/less.php/pull/210","diff_url":"https://github.com/oyejorge/less.php/pull/210.diff","patch_url":"https://github.com/oyejorge/less.php/pull/210.patch","issue_url":"https://api.github.com/repos/oyejorge/less.php/issues/210","number":210,"state":"open","locked":false,"title":"Throw meaningful errors when encountering invalid color statements","user":{"login":"ravisorg","id":1596725,"avatar_url":"https://avatars.githubusercontent.com/u/1596725?v=3","gravatar_id":"","url":"https://api.github.com/users/ravisorg","html_url":"https://github.com/ravisorg","followers_url":"https://api.github.com/users/ravisorg/followers","following_url":"https://api.github.com/users/ravisorg/following{/other_user}","gists_url":"https://api.github.com/users/ravisorg/gists{/gist_id}","starred_url":"https://api.github.com/users/ravisorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravisorg/subscriptions","organizations_url":"https://api.github.com/users/ravisorg/orgs","repos_url":"https://api.github.com/users/ravisorg/repos","events_url":"https://api.github.com/users/ravisorg/events{/privacy}","received_events_url":"https://api.github.com/users/ravisorg/received_events","type":"User","site_admin":false},"body":"Applied the color validation check from Less_Functions::darken to all of the other color modification methods in Less_Functions, making it much easier to debug invalid LESS color statements (Less.php now throws errors on invalid color statements, giving you clues as to what went wrong, instead of just crashing).\r\n\r\nSide note:\r\nPersonally I would have written it as if (!$color instanceof Less_Tree_color) { } instead of placing each of the methods' entire code inside an if statement, but since darken was already done that way I figured it might be the chosen coding style. Feel free to change if desired.","created_at":"2015-03-16T18:04:19Z","updated_at":"2015-03-16T23:02:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66ccb09cbc3a3cc2dc733edb22d386bf93b8c39b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oyejorge/less.php/pulls/210/commits","review_comments_url":"https://api.github.com/repos/oyejorge/less.php/pulls/210/comments","review_comment_url":"https://api.github.com/repos/oyejorge/less.php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oyejorge/less.php/issues/210/comments","statuses_url":"https://api.github.com/repos/oyejorge/less.php/statuses/db3ca46e85b579a6a5fbf32d1bd1afa7d310ab0a","head":{"label":"ravisorg:master","ref":"master","sha":"db3ca46e85b579a6a5fbf32d1bd1afa7d310ab0a","user":{"login":"ravisorg","id":1596725,"avatar_url":"https://avatars.githubusercontent.com/u/1596725?v=3","gravatar_id":"","url":"https://api.github.com/users/ravisorg","html_url":"https://github.com/ravisorg","followers_url":"https://api.github.com/users/ravisorg/followers","following_url":"https://api.github.com/users/ravisorg/following{/other_user}","gists_url":"https://api.github.com/users/ravisorg/gists{/gist_id}","starred_url":"https://api.github.com/users/ravisorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravisorg/subscriptions","organizations_url":"https://api.github.com/users/ravisorg/orgs","repos_url":"https://api.github.com/users/ravisorg/repos","events_url":"https://api.github.com/users/ravisorg/events{/privacy}","received_events_url":"https://api.github.com/users/ravisorg/received_events","type":"User","site_admin":false},"repo":{"id":32342667,"name":"less.php","full_name":"ravisorg/less.php","owner":{"login":"ravisorg","id":1596725,"avatar_url":"https://avatars.githubusercontent.com/u/1596725?v=3","gravatar_id":"","url":"https://api.github.com/users/ravisorg","html_url":"https://github.com/ravisorg","followers_url":"https://api.github.com/users/ravisorg/followers","following_url":"https://api.github.com/users/ravisorg/following{/other_user}","gists_url":"https://api.github.com/users/ravisorg/gists{/gist_id}","starred_url":"https://api.github.com/users/ravisorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravisorg/subscriptions","organizations_url":"https://api.github.com/users/ravisorg/orgs","repos_url":"https://api.github.com/users/ravisorg/repos","events_url":"https://api.github.com/users/ravisorg/events{/privacy}","received_events_url":"https://api.github.com/users/ravisorg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ravisorg/less.php","description":"less.js ported to PHP.","fork":true,"url":"https://api.github.com/repos/ravisorg/less.php","forks_url":"https://api.github.com/repos/ravisorg/less.php/forks","keys_url":"https://api.github.com/repos/ravisorg/less.php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravisorg/less.php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravisorg/less.php/teams","hooks_url":"https://api.github.com/repos/ravisorg/less.php/hooks","issue_events_url":"https://api.github.com/repos/ravisorg/less.php/issues/events{/number}","events_url":"https://api.github.com/repos/ravisorg/less.php/events","assignees_url":"https://api.github.com/repos/ravisorg/less.php/assignees{/user}","branches_url":"https://api.github.com/repos/ravisorg/less.php/branches{/branch}","tags_url":"https://api.github.com/repos/ravisorg/less.php/tags","blobs_url":"https://api.github.com/repos/ravisorg/less.php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravisorg/less.php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravisorg/less.php/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravisorg/less.php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravisorg/less.php/statuses/{sha}","languages_url":"https://api.github.com/repos/ravisorg/less.php/languages","stargazers_url":"https://api.github.com/repos/ravisorg/less.php/stargazers","contributors_url":"https://api.github.com/repos/ravisorg/less.php/contributors","subscribers_url":"https://api.github.com/repos/ravisorg/less.php/subscribers","subscription_url":"https://api.github.com/repos/ravisorg/less.php/subscription","commits_url":"https://api.github.com/repos/ravisorg/less.php/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravisorg/less.php/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravisorg/less.php/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravisorg/less.php/issues/comments{/number}","contents_url":"https://api.github.com/repos/ravisorg/less.php/contents/{+path}","compare_url":"https://api.github.com/repos/ravisorg/less.php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravisorg/less.php/merges","archive_url":"https://api.github.com/repos/ravisorg/less.php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravisorg/less.php/downloads","issues_url":"https://api.github.com/repos/ravisorg/less.php/issues{/number}","pulls_url":"https://api.github.com/repos/ravisorg/less.php/pulls{/number}","milestones_url":"https://api.github.com/repos/ravisorg/less.php/milestones{/number}","notifications_url":"https://api.github.com/repos/ravisorg/less.php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravisorg/less.php/labels{/name}","releases_url":"https://api.github.com/repos/ravisorg/less.php/releases{/id}","created_at":"2015-03-16T17:51:41Z","updated_at":"2015-03-16T18:02:52Z","pushed_at":"2015-03-16T18:02:52Z","git_url":"git://github.com/ravisorg/less.php.git","ssh_url":"git@github.com:ravisorg/less.php.git","clone_url":"https://github.com/ravisorg/less.php.git","svn_url":"https://github.com/ravisorg/less.php","homepage":"http://lessphp.gpeasy.com","size":5482,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"oyejorge:master","ref":"master","sha":"6e08ecb07e6f6d9170c23e8744c58fdd822ad0de","user":{"login":"oyejorge","id":1043524,"avatar_url":"https://avatars.githubusercontent.com/u/1043524?v=3","gravatar_id":"","url":"https://api.github.com/users/oyejorge","html_url":"https://github.com/oyejorge","followers_url":"https://api.github.com/users/oyejorge/followers","following_url":"https://api.github.com/users/oyejorge/following{/other_user}","gists_url":"https://api.github.com/users/oyejorge/gists{/gist_id}","starred_url":"https://api.github.com/users/oyejorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyejorge/subscriptions","organizations_url":"https://api.github.com/users/oyejorge/orgs","repos_url":"https://api.github.com/users/oyejorge/repos","events_url":"https://api.github.com/users/oyejorge/events{/privacy}","received_events_url":"https://api.github.com/users/oyejorge/received_events","type":"User","site_admin":false},"repo":{"id":11926344,"name":"less.php","full_name":"oyejorge/less.php","owner":{"login":"oyejorge","id":1043524,"avatar_url":"https://avatars.githubusercontent.com/u/1043524?v=3","gravatar_id":"","url":"https://api.github.com/users/oyejorge","html_url":"https://github.com/oyejorge","followers_url":"https://api.github.com/users/oyejorge/followers","following_url":"https://api.github.com/users/oyejorge/following{/other_user}","gists_url":"https://api.github.com/users/oyejorge/gists{/gist_id}","starred_url":"https://api.github.com/users/oyejorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyejorge/subscriptions","organizations_url":"https://api.github.com/users/oyejorge/orgs","repos_url":"https://api.github.com/users/oyejorge/repos","events_url":"https://api.github.com/users/oyejorge/events{/privacy}","received_events_url":"https://api.github.com/users/oyejorge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oyejorge/less.php","description":"less.js ported to PHP.","fork":false,"url":"https://api.github.com/repos/oyejorge/less.php","forks_url":"https://api.github.com/repos/oyejorge/less.php/forks","keys_url":"https://api.github.com/repos/oyejorge/less.php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oyejorge/less.php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oyejorge/less.php/teams","hooks_url":"https://api.github.com/repos/oyejorge/less.php/hooks","issue_events_url":"https://api.github.com/repos/oyejorge/less.php/issues/events{/number}","events_url":"https://api.github.com/repos/oyejorge/less.php/events","assignees_url":"https://api.github.com/repos/oyejorge/less.php/assignees{/user}","branches_url":"https://api.github.com/repos/oyejorge/less.php/branches{/branch}","tags_url":"https://api.github.com/repos/oyejorge/less.php/tags","blobs_url":"https://api.github.com/repos/oyejorge/less.php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oyejorge/less.php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oyejorge/less.php/git/refs{/sha}","trees_url":"https://api.github.com/repos/oyejorge/less.php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oyejorge/less.php/statuses/{sha}","languages_url":"https://api.github.com/repos/oyejorge/less.php/languages","stargazers_url":"https://api.github.com/repos/oyejorge/less.php/stargazers","contributors_url":"https://api.github.com/repos/oyejorge/less.php/contributors","subscribers_url":"https://api.github.com/repos/oyejorge/less.php/subscribers","subscription_url":"https://api.github.com/repos/oyejorge/less.php/subscription","commits_url":"https://api.github.com/repos/oyejorge/less.php/commits{/sha}","git_commits_url":"https://api.github.com/repos/oyejorge/less.php/git/commits{/sha}","comments_url":"https://api.github.com/repos/oyejorge/less.php/comments{/number}","issue_comment_url":"https://api.github.com/repos/oyejorge/less.php/issues/comments{/number}","contents_url":"https://api.github.com/repos/oyejorge/less.php/contents/{+path}","compare_url":"https://api.github.com/repos/oyejorge/less.php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oyejorge/less.php/merges","archive_url":"https://api.github.com/repos/oyejorge/less.php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oyejorge/less.php/downloads","issues_url":"https://api.github.com/repos/oyejorge/less.php/issues{/number}","pulls_url":"https://api.github.com/repos/oyejorge/less.php/pulls{/number}","milestones_url":"https://api.github.com/repos/oyejorge/less.php/milestones{/number}","notifications_url":"https://api.github.com/repos/oyejorge/less.php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oyejorge/less.php/labels{/name}","releases_url":"https://api.github.com/repos/oyejorge/less.php/releases{/id}","created_at":"2013-08-06T14:42:39Z","updated_at":"2015-03-16T10:03:35Z","pushed_at":"2015-03-10T18:16:48Z","git_url":"git://github.com/oyejorge/less.php.git","ssh_url":"git@github.com:oyejorge/less.php.git","clone_url":"https://github.com/oyejorge/less.php.git","svn_url":"https://github.com/oyejorge/less.php","homepage":"http://lessphp.gpeasy.com","size":5482,"stargazers_count":422,"watchers_count":422,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":47,"forks":108,"open_issues":47,"watchers":422,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oyejorge/less.php/pulls/210"},"html":{"href":"https://github.com/oyejorge/less.php/pull/210"},"issue":{"href":"https://api.github.com/repos/oyejorge/less.php/issues/210"},"comments":{"href":"https://api.github.com/repos/oyejorge/less.php/issues/210/comments"},"review_comments":{"href":"https://api.github.com/repos/oyejorge/less.php/pulls/210/comments"},"review_comment":{"href":"https://api.github.com/repos/oyejorge/less.php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oyejorge/less.php/pulls/210/commits"},"statuses":{"href":"https://api.github.com/repos/oyejorge/less.php/statuses/db3ca46e85b579a6a5fbf32d1bd1afa7d310ab0a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"commits":1,"additions":171,"deletions":68,"changed_files":1}}