{"action":"created","comment":{"url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/comments/93052666","pull_request_review_id":13573800,"id":93052666,"diff_hunk":"@@ -1,2 +1,24 @@\n <?php\n+error_reporting(-1);\n+define('YII_ENABLE_ERROR_HANDLER',false);\n+define('YII_DEBUG',true);\n+\n // This is global bootstrap for autoloading \n+require_once __DIR__ . '/../vendor/autoload.php';\n+require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';\n+\n+/**\n+ * Auoloaded for classes\n+ * @param string $class_name\n+ */\n+function autoload_class_dir($class_name)\n+{\n+    $fileName = 'Classes/' . $class_name . '.php';\n+    if(file_exists($fileName))","path":"tests/_bootstrap.php","position":17,"original_position":17,"commit_id":"633baf24c8a8781f251ceeae2b8526efff89fbac","original_commit_id":"633baf24c8a8781f251ceeae2b8526efff89fbac","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars.githubusercontent.com/u/12626182?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"- Expected 1 space after IF keyword; 0 found\n- Expected 1 space after closing parenthesis; found 5\n","created_at":"2016-12-19T15:26:58Z","updated_at":"2016-12-19T15:26:58Z","html_url":"https://github.com/subdee/yii2-soap-server/pull/17#discussion_r93052666","pull_request_url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/comments/93052666"},"html":{"href":"https://github.com/subdee/yii2-soap-server/pull/17#discussion_r93052666"},"pull_request":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17","id":98584190,"html_url":"https://github.com/subdee/yii2-soap-server/pull/17","diff_url":"https://github.com/subdee/yii2-soap-server/pull/17.diff","patch_url":"https://github.com/subdee/yii2-soap-server/pull/17.patch","issue_url":"https://api.github.com/repos/subdee/yii2-soap-server/issues/17","number":17,"state":"open","locked":false,"title":"Use validators in wsdl output","user":{"login":"zbrag","id":1644844,"avatar_url":"https://avatars.githubusercontent.com/u/1644844?v=3","gravatar_id":"","url":"https://api.github.com/users/zbrag","html_url":"https://github.com/zbrag","followers_url":"https://api.github.com/users/zbrag/followers","following_url":"https://api.github.com/users/zbrag/following{/other_user}","gists_url":"https://api.github.com/users/zbrag/gists{/gist_id}","starred_url":"https://api.github.com/users/zbrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbrag/subscriptions","organizations_url":"https://api.github.com/users/zbrag/orgs","repos_url":"https://api.github.com/users/zbrag/repos","events_url":"https://api.github.com/users/zbrag/events{/privacy}","received_events_url":"https://api.github.com/users/zbrag/received_events","type":"User","site_admin":false},"body":"This is a rather large patch, the most important change is the usage of the rules() function of the Model-class of Yii in order to use the same validators which can be used in the Models in the wsdl. For example:\r\n`/**\r\n     * @return array\r\n     */\r\n    public function rules(): array\r\n    {\r\n        return [\r\n            [['street'], 'string', 'on' => self::SCENARIO_WSDL, 'length' => [1, 50]],\r\n            [['houseNumber'], 'string', 'on' => self::SCENARIO_WSDL, 'length' => [1, 6]],\r\n            [['numberAddition'], 'string', 'on' => self::SCENARIO_WSDL, 'length' => [0, 20]],\r\n            [['zipCode'], 'string', 'on' => self::SCENARIO_WSDL, 'length' => [7, 7]],\r\n            [['city'], 'string', 'on' => self::SCENARIO_WSDL, 'length' => [1, 50]],\r\n        ];\r\n    }`\r\n\r\nThis will (amongst other) create the following simpleTypes:\r\n`<xsd:simpleType name=\"mailaddressStreet\">\r\n        <xsd:restriction base=\"xsd:string\">\r\n          <xsd:pattern value=\".{1,50}\"/>\r\n        </xsd:restriction>\r\n      </xsd:simpleType>\r\n      <xsd:simpleType name=\"mailaddressHouseNumber\">\r\n        <xsd:restriction base=\"xsd:string\">\r\n          <xsd:pattern value=\".{1,6}\"/>\r\n        </xsd:restriction>\r\n      </xsd:simpleType>\r\n      <xsd:simpleType name=\"mailaddressNumberAddition\">\r\n        <xsd:restriction base=\"xsd:string\">\r\n          <xsd:pattern value=\".{0,20}\"/>\r\n        </xsd:restriction>\r\n      </xsd:simpleType>\r\n      <xsd:simpleType name=\"mailaddressZipCode\">\r\n        <xsd:restriction base=\"xsd:string\">\r\n          <xsd:pattern value=\".{7,7}\"/>\r\n        </xsd:restriction>\r\n      </xsd:simpleType>\r\n      <xsd:simpleType name=\"mailaddressCity\">\r\n        <xsd:restriction base=\"xsd:string\">\r\n          <xsd:pattern value=\".{1,50}\"/>\r\n        </xsd:restriction>\r\n      </xsd:simpleType>`\r\n\r\nI'm curious to see what you think of this patch 😄 ","created_at":"2016-12-19T15:25:02Z","updated_at":"2016-12-19T15:26:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"714c77eb06bcb3d836359348fb1a87bad7c1e426","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17/commits","review_comments_url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17/comments","review_comment_url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/subdee/yii2-soap-server/issues/17/comments","statuses_url":"https://api.github.com/repos/subdee/yii2-soap-server/statuses/633baf24c8a8781f251ceeae2b8526efff89fbac","head":{"label":"zbrag:master","ref":"master","sha":"633baf24c8a8781f251ceeae2b8526efff89fbac","user":{"login":"zbrag","id":1644844,"avatar_url":"https://avatars.githubusercontent.com/u/1644844?v=3","gravatar_id":"","url":"https://api.github.com/users/zbrag","html_url":"https://github.com/zbrag","followers_url":"https://api.github.com/users/zbrag/followers","following_url":"https://api.github.com/users/zbrag/following{/other_user}","gists_url":"https://api.github.com/users/zbrag/gists{/gist_id}","starred_url":"https://api.github.com/users/zbrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbrag/subscriptions","organizations_url":"https://api.github.com/users/zbrag/orgs","repos_url":"https://api.github.com/users/zbrag/repos","events_url":"https://api.github.com/users/zbrag/events{/privacy}","received_events_url":"https://api.github.com/users/zbrag/received_events","type":"User","site_admin":false},"repo":{"id":71545122,"name":"yii2-soap-server","full_name":"zbrag/yii2-soap-server","owner":{"login":"zbrag","id":1644844,"avatar_url":"https://avatars.githubusercontent.com/u/1644844?v=3","gravatar_id":"","url":"https://api.github.com/users/zbrag","html_url":"https://github.com/zbrag","followers_url":"https://api.github.com/users/zbrag/followers","following_url":"https://api.github.com/users/zbrag/following{/other_user}","gists_url":"https://api.github.com/users/zbrag/gists{/gist_id}","starred_url":"https://api.github.com/users/zbrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbrag/subscriptions","organizations_url":"https://api.github.com/users/zbrag/orgs","repos_url":"https://api.github.com/users/zbrag/repos","events_url":"https://api.github.com/users/zbrag/events{/privacy}","received_events_url":"https://api.github.com/users/zbrag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zbrag/yii2-soap-server","description":"A SOAP server for Yii 2 based on the implementation of Yii 1 framework.","fork":true,"url":"https://api.github.com/repos/zbrag/yii2-soap-server","forks_url":"https://api.github.com/repos/zbrag/yii2-soap-server/forks","keys_url":"https://api.github.com/repos/zbrag/yii2-soap-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zbrag/yii2-soap-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zbrag/yii2-soap-server/teams","hooks_url":"https://api.github.com/repos/zbrag/yii2-soap-server/hooks","issue_events_url":"https://api.github.com/repos/zbrag/yii2-soap-server/issues/events{/number}","events_url":"https://api.github.com/repos/zbrag/yii2-soap-server/events","assignees_url":"https://api.github.com/repos/zbrag/yii2-soap-server/assignees{/user}","branches_url":"https://api.github.com/repos/zbrag/yii2-soap-server/branches{/branch}","tags_url":"https://api.github.com/repos/zbrag/yii2-soap-server/tags","blobs_url":"https://api.github.com/repos/zbrag/yii2-soap-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zbrag/yii2-soap-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zbrag/yii2-soap-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/zbrag/yii2-soap-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zbrag/yii2-soap-server/statuses/{sha}","languages_url":"https://api.github.com/repos/zbrag/yii2-soap-server/languages","stargazers_url":"https://api.github.com/repos/zbrag/yii2-soap-server/stargazers","contributors_url":"https://api.github.com/repos/zbrag/yii2-soap-server/contributors","subscribers_url":"https://api.github.com/repos/zbrag/yii2-soap-server/subscribers","subscription_url":"https://api.github.com/repos/zbrag/yii2-soap-server/subscription","commits_url":"https://api.github.com/repos/zbrag/yii2-soap-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/zbrag/yii2-soap-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/zbrag/yii2-soap-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/zbrag/yii2-soap-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/zbrag/yii2-soap-server/contents/{+path}","compare_url":"https://api.github.com/repos/zbrag/yii2-soap-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zbrag/yii2-soap-server/merges","archive_url":"https://api.github.com/repos/zbrag/yii2-soap-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zbrag/yii2-soap-server/downloads","issues_url":"https://api.github.com/repos/zbrag/yii2-soap-server/issues{/number}","pulls_url":"https://api.github.com/repos/zbrag/yii2-soap-server/pulls{/number}","milestones_url":"https://api.github.com/repos/zbrag/yii2-soap-server/milestones{/number}","notifications_url":"https://api.github.com/repos/zbrag/yii2-soap-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zbrag/yii2-soap-server/labels{/name}","releases_url":"https://api.github.com/repos/zbrag/yii2-soap-server/releases{/id}","deployments_url":"https://api.github.com/repos/zbrag/yii2-soap-server/deployments","created_at":"2016-10-21T08:21:08Z","updated_at":"2016-10-21T08:21:09Z","pushed_at":"2016-12-19T15:18:39Z","git_url":"git://github.com/zbrag/yii2-soap-server.git","ssh_url":"git@github.com:zbrag/yii2-soap-server.git","clone_url":"https://github.com/zbrag/yii2-soap-server.git","svn_url":"https://github.com/zbrag/yii2-soap-server","homepage":"","size":58,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"subdee:master","ref":"master","sha":"29e1c7df225c57c3c9783a0fb884a29a337eb0e1","user":{"login":"subdee","id":1172323,"avatar_url":"https://avatars.githubusercontent.com/u/1172323?v=3","gravatar_id":"","url":"https://api.github.com/users/subdee","html_url":"https://github.com/subdee","followers_url":"https://api.github.com/users/subdee/followers","following_url":"https://api.github.com/users/subdee/following{/other_user}","gists_url":"https://api.github.com/users/subdee/gists{/gist_id}","starred_url":"https://api.github.com/users/subdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subdee/subscriptions","organizations_url":"https://api.github.com/users/subdee/orgs","repos_url":"https://api.github.com/users/subdee/repos","events_url":"https://api.github.com/users/subdee/events{/privacy}","received_events_url":"https://api.github.com/users/subdee/received_events","type":"User","site_admin":false},"repo":{"id":17057218,"name":"yii2-soap-server","full_name":"subdee/yii2-soap-server","owner":{"login":"subdee","id":1172323,"avatar_url":"https://avatars.githubusercontent.com/u/1172323?v=3","gravatar_id":"","url":"https://api.github.com/users/subdee","html_url":"https://github.com/subdee","followers_url":"https://api.github.com/users/subdee/followers","following_url":"https://api.github.com/users/subdee/following{/other_user}","gists_url":"https://api.github.com/users/subdee/gists{/gist_id}","starred_url":"https://api.github.com/users/subdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subdee/subscriptions","organizations_url":"https://api.github.com/users/subdee/orgs","repos_url":"https://api.github.com/users/subdee/repos","events_url":"https://api.github.com/users/subdee/events{/privacy}","received_events_url":"https://api.github.com/users/subdee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/subdee/yii2-soap-server","description":"A SOAP server for Yii 2 based on the implementation of Yii 1 framework.","fork":false,"url":"https://api.github.com/repos/subdee/yii2-soap-server","forks_url":"https://api.github.com/repos/subdee/yii2-soap-server/forks","keys_url":"https://api.github.com/repos/subdee/yii2-soap-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/subdee/yii2-soap-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/subdee/yii2-soap-server/teams","hooks_url":"https://api.github.com/repos/subdee/yii2-soap-server/hooks","issue_events_url":"https://api.github.com/repos/subdee/yii2-soap-server/issues/events{/number}","events_url":"https://api.github.com/repos/subdee/yii2-soap-server/events","assignees_url":"https://api.github.com/repos/subdee/yii2-soap-server/assignees{/user}","branches_url":"https://api.github.com/repos/subdee/yii2-soap-server/branches{/branch}","tags_url":"https://api.github.com/repos/subdee/yii2-soap-server/tags","blobs_url":"https://api.github.com/repos/subdee/yii2-soap-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/subdee/yii2-soap-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/subdee/yii2-soap-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/subdee/yii2-soap-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/subdee/yii2-soap-server/statuses/{sha}","languages_url":"https://api.github.com/repos/subdee/yii2-soap-server/languages","stargazers_url":"https://api.github.com/repos/subdee/yii2-soap-server/stargazers","contributors_url":"https://api.github.com/repos/subdee/yii2-soap-server/contributors","subscribers_url":"https://api.github.com/repos/subdee/yii2-soap-server/subscribers","subscription_url":"https://api.github.com/repos/subdee/yii2-soap-server/subscription","commits_url":"https://api.github.com/repos/subdee/yii2-soap-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/subdee/yii2-soap-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/subdee/yii2-soap-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/subdee/yii2-soap-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/subdee/yii2-soap-server/contents/{+path}","compare_url":"https://api.github.com/repos/subdee/yii2-soap-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/subdee/yii2-soap-server/merges","archive_url":"https://api.github.com/repos/subdee/yii2-soap-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/subdee/yii2-soap-server/downloads","issues_url":"https://api.github.com/repos/subdee/yii2-soap-server/issues{/number}","pulls_url":"https://api.github.com/repos/subdee/yii2-soap-server/pulls{/number}","milestones_url":"https://api.github.com/repos/subdee/yii2-soap-server/milestones{/number}","notifications_url":"https://api.github.com/repos/subdee/yii2-soap-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/subdee/yii2-soap-server/labels{/name}","releases_url":"https://api.github.com/repos/subdee/yii2-soap-server/releases{/id}","deployments_url":"https://api.github.com/repos/subdee/yii2-soap-server/deployments","created_at":"2014-02-21T13:40:44Z","updated_at":"2016-11-13T21:45:36Z","pushed_at":"2016-12-19T15:25:03Z","git_url":"git://github.com/subdee/yii2-soap-server.git","ssh_url":"git@github.com:subdee/yii2-soap-server.git","clone_url":"https://github.com/subdee/yii2-soap-server.git","svn_url":"https://github.com/subdee/yii2-soap-server","homepage":"","size":63,"stargazers_count":16,"watchers_count":16,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":6,"forks":22,"open_issues":6,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17"},"html":{"href":"https://github.com/subdee/yii2-soap-server/pull/17"},"issue":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/issues/17"},"comments":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/subdee/yii2-soap-server/statuses/633baf24c8a8781f251ceeae2b8526efff89fbac"}}}}
{"actor":{"display_login":"Nitpick-CI"}}