{"action":"created","comment":{"url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/comments/38266449","id":38266449,"diff_hunk":"@@ -108,45 +112,44 @@ public static function generateImage($height)\n \t\t\t}\n \t\t}\n \t\t\n+\t\t$radius_main_lamp = 3.5;\n+\t\t$radius_small_lamp = 2.25;\n+\t\t\n \t\t$image = '\n-\t\t\t<g transform=\"translate(0 ' . $height . ')\">\n+\t\t\t<g transform=\"translate(0 ' . $translation_height . ')\">\n \t\t\t\t<g>\n-\t\t\t\t\t<polygon style=\"&background;\" points=\"6,1 34,1 34,59 6,59\"/>\n+\t\t\t\t\t<polygon style=\"&background;\" points=\"6,1 ' . $width-6 . ',1 ' . $width-6 . ',' . $height+1 . ' 6,' . $height+1 . '\"/>","path":"functions/signals/ks_main.php","position":33,"original_position":33,"commit_id":"f6ab9da33e385abc40dfd7d875a9f1bba21a3686","original_commit_id":"f6ab9da33e385abc40dfd7d875a9f1bba21a3686","user":{"login":"sb12","id":5783139,"avatar_url":"https://avatars.githubusercontent.com/u/5783139?v=3","gravatar_id":"","url":"https://api.github.com/users/sb12","html_url":"https://github.com/sb12","followers_url":"https://api.github.com/users/sb12/followers","following_url":"https://api.github.com/users/sb12/following{/other_user}","gists_url":"https://api.github.com/users/sb12/gists{/gist_id}","starred_url":"https://api.github.com/users/sb12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb12/subscriptions","organizations_url":"https://api.github.com/users/sb12/orgs","repos_url":"https://api.github.com/users/sb12/repos","events_url":"https://api.github.com/users/sb12/events{/privacy}","received_events_url":"https://api.github.com/users/sb12/received_events","type":"User","site_admin":false},"body":"You need parantheses around the `+` and `-` operations e.g. `' . ( $width - 6 ) . '`","created_at":"2015-08-29T22:06:40Z","updated_at":"2015-08-29T22:06:40Z","html_url":"https://github.com/sb12/OSMTrainRouteAnalysis/pull/93#discussion_r38266449","pull_request_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/comments/38266449"},"html":{"href":"https://github.com/sb12/OSMTrainRouteAnalysis/pull/93#discussion_r38266449"},"pull_request":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93","id":43701961,"html_url":"https://github.com/sb12/OSMTrainRouteAnalysis/pull/93","diff_url":"https://github.com/sb12/OSMTrainRouteAnalysis/pull/93.diff","patch_url":"https://github.com/sb12/OSMTrainRouteAnalysis/pull/93.patch","issue_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues/93","number":93,"state":"open","locked":false,"title":"Change appearance of Ks main signal","user":{"login":"PeterDRS","id":13511519,"avatar_url":"https://avatars.githubusercontent.com/u/13511519?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDRS","html_url":"https://github.com/PeterDRS","followers_url":"https://api.github.com/users/PeterDRS/followers","following_url":"https://api.github.com/users/PeterDRS/following{/other_user}","gists_url":"https://api.github.com/users/PeterDRS/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDRS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDRS/subscriptions","organizations_url":"https://api.github.com/users/PeterDRS/orgs","repos_url":"https://api.github.com/users/PeterDRS/repos","events_url":"https://api.github.com/users/PeterDRS/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDRS/received_events","type":"User","site_admin":false},"body":"The other signals can follow later.","created_at":"2015-08-29T21:06:31Z","updated_at":"2015-08-29T22:06:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecddae28a7ec065e58fa57586499201dcc31dc5f","assignee":null,"milestone":{"url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/milestones/1","html_url":"https://github.com/sb12/OSMTrainRouteAnalysis/milestones/v1.1","labels_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/milestones/1/labels","id":1267875,"number":1,"title":"v1.1","description":"","creator":{"login":"sb12","id":5783139,"avatar_url":"https://avatars.githubusercontent.com/u/5783139?v=3","gravatar_id":"","url":"https://api.github.com/users/sb12","html_url":"https://github.com/sb12","followers_url":"https://api.github.com/users/sb12/followers","following_url":"https://api.github.com/users/sb12/following{/other_user}","gists_url":"https://api.github.com/users/sb12/gists{/gist_id}","starred_url":"https://api.github.com/users/sb12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb12/subscriptions","organizations_url":"https://api.github.com/users/sb12/orgs","repos_url":"https://api.github.com/users/sb12/repos","events_url":"https://api.github.com/users/sb12/events{/privacy}","received_events_url":"https://api.github.com/users/sb12/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":10,"state":"open","created_at":"2015-08-23T08:09:28Z","updated_at":"2015-08-29T21:30:58Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93/commits","review_comments_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93/comments","review_comment_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues/93/comments","statuses_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/statuses/f6ab9da33e385abc40dfd7d875a9f1bba21a3686","head":{"label":"PeterDRS:patch-35","ref":"patch-35","sha":"f6ab9da33e385abc40dfd7d875a9f1bba21a3686","user":{"login":"PeterDRS","id":13511519,"avatar_url":"https://avatars.githubusercontent.com/u/13511519?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDRS","html_url":"https://github.com/PeterDRS","followers_url":"https://api.github.com/users/PeterDRS/followers","following_url":"https://api.github.com/users/PeterDRS/following{/other_user}","gists_url":"https://api.github.com/users/PeterDRS/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDRS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDRS/subscriptions","organizations_url":"https://api.github.com/users/PeterDRS/orgs","repos_url":"https://api.github.com/users/PeterDRS/repos","events_url":"https://api.github.com/users/PeterDRS/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDRS/received_events","type":"User","site_admin":false},"repo":{"id":39791079,"name":"OSMTrainRouteAnalysis","full_name":"PeterDRS/OSMTrainRouteAnalysis","owner":{"login":"PeterDRS","id":13511519,"avatar_url":"https://avatars.githubusercontent.com/u/13511519?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDRS","html_url":"https://github.com/PeterDRS","followers_url":"https://api.github.com/users/PeterDRS/followers","following_url":"https://api.github.com/users/PeterDRS/following{/other_user}","gists_url":"https://api.github.com/users/PeterDRS/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDRS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDRS/subscriptions","organizations_url":"https://api.github.com/users/PeterDRS/orgs","repos_url":"https://api.github.com/users/PeterDRS/repos","events_url":"https://api.github.com/users/PeterDRS/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDRS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterDRS/OSMTrainRouteAnalysis","description":"Analysis of Train Routes Based on OpenStreetMap Data","fork":true,"url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis","forks_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/forks","keys_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/teams","hooks_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/hooks","issue_events_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/issues/events{/number}","events_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/events","assignees_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/assignees{/user}","branches_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/branches{/branch}","tags_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/tags","blobs_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/languages","stargazers_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/stargazers","contributors_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/contributors","subscribers_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/subscribers","subscription_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/subscription","commits_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/contents/{+path}","compare_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/merges","archive_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/downloads","issues_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/issues{/number}","pulls_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/labels{/name}","releases_url":"https://api.github.com/repos/PeterDRS/OSMTrainRouteAnalysis/releases{/id}","created_at":"2015-07-27T18:31:33Z","updated_at":"2015-07-27T18:31:34Z","pushed_at":"2015-08-29T21:40:08Z","git_url":"git://github.com/PeterDRS/OSMTrainRouteAnalysis.git","ssh_url":"git@github.com:PeterDRS/OSMTrainRouteAnalysis.git","clone_url":"https://github.com/PeterDRS/OSMTrainRouteAnalysis.git","svn_url":"https://github.com/PeterDRS/OSMTrainRouteAnalysis","homepage":null,"size":2044,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sb12:master","ref":"master","sha":"8e53dff012237f15d7cb71ad38d198cfe5821804","user":{"login":"sb12","id":5783139,"avatar_url":"https://avatars.githubusercontent.com/u/5783139?v=3","gravatar_id":"","url":"https://api.github.com/users/sb12","html_url":"https://github.com/sb12","followers_url":"https://api.github.com/users/sb12/followers","following_url":"https://api.github.com/users/sb12/following{/other_user}","gists_url":"https://api.github.com/users/sb12/gists{/gist_id}","starred_url":"https://api.github.com/users/sb12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb12/subscriptions","organizations_url":"https://api.github.com/users/sb12/orgs","repos_url":"https://api.github.com/users/sb12/repos","events_url":"https://api.github.com/users/sb12/events{/privacy}","received_events_url":"https://api.github.com/users/sb12/received_events","type":"User","site_admin":false},"repo":{"id":24589173,"name":"OSMTrainRouteAnalysis","full_name":"sb12/OSMTrainRouteAnalysis","owner":{"login":"sb12","id":5783139,"avatar_url":"https://avatars.githubusercontent.com/u/5783139?v=3","gravatar_id":"","url":"https://api.github.com/users/sb12","html_url":"https://github.com/sb12","followers_url":"https://api.github.com/users/sb12/followers","following_url":"https://api.github.com/users/sb12/following{/other_user}","gists_url":"https://api.github.com/users/sb12/gists{/gist_id}","starred_url":"https://api.github.com/users/sb12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb12/subscriptions","organizations_url":"https://api.github.com/users/sb12/orgs","repos_url":"https://api.github.com/users/sb12/repos","events_url":"https://api.github.com/users/sb12/events{/privacy}","received_events_url":"https://api.github.com/users/sb12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sb12/OSMTrainRouteAnalysis","description":"Analysis of Train Routes Based on OpenStreetMap Data","fork":false,"url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis","forks_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/forks","keys_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/teams","hooks_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/hooks","issue_events_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues/events{/number}","events_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/events","assignees_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/assignees{/user}","branches_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/branches{/branch}","tags_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/tags","blobs_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/statuses/{sha}","languages_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/languages","stargazers_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/stargazers","contributors_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/contributors","subscribers_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/subscribers","subscription_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/subscription","commits_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/contents/{+path}","compare_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/merges","archive_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/downloads","issues_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues{/number}","pulls_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls{/number}","milestones_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/milestones{/number}","notifications_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/labels{/name}","releases_url":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/releases{/id}","created_at":"2014-09-29T09:54:53Z","updated_at":"2015-08-02T15:11:23Z","pushed_at":"2015-08-29T21:40:27Z","git_url":"git://github.com/sb12/OSMTrainRouteAnalysis.git","ssh_url":"git@github.com:sb12/OSMTrainRouteAnalysis.git","clone_url":"https://github.com/sb12/OSMTrainRouteAnalysis.git","svn_url":"https://github.com/sb12/OSMTrainRouteAnalysis","homepage":null,"size":2401,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":49,"forks":3,"open_issues":49,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93"},"html":{"href":"https://github.com/sb12/OSMTrainRouteAnalysis/pull/93"},"issue":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues/93"},"comments":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/sb12/OSMTrainRouteAnalysis/statuses/f6ab9da33e385abc40dfd7d875a9f1bba21a3686"}}}}