{"action":"created","comment":{"url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/comments/66024621","id":66024621,"diff_hunk":"@@ -0,0 +1,297 @@\n+<?php\n+namespace App\\Http\\Controllers\\Backend;\n+\n+use Illuminate\\Http\\Request;\n+use App\\Http\\Requests;\n+use App\\Http\\Controllers\\Controller;\n+use App\\Models\\Backend\\Permission;\n+\n+class PermissionsController extends Controller\n+{\n+    /**\n+     * Display a listing of the Permissions.\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function index()\n+    {\n+        $data['data'] = Permission::all();\n+        return view('backend.permissions.index')->with($data);\n+    }\n+\n+    /**\n+     * Show the form for creating a new Permissions.\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function create()\n+    {\n+        $modules['modules'] = $this->getModule();\n+        return view('backend.permissions.create')->with($modules);\n+    }\n+\n+    /**\n+     * Store a newly created Permissions in storage.\n+     *\n+     * @param \\Illuminate\\Http\\Request $request request create\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function store(Request $request)\n+    {\n+        // check permission is exists?\n+        if (!$this->checkPermissionExisted($request)) {\n+            // create new permission\n+            $newRole = new Permission;\n+            $newRole->module = $request->module;\n+            \n+            // set permission\n+            $arrRole = $this->setPermission($request);\n+            $newRole->see     = $arrRole['see'];\n+            $newRole->inset   = $arrRole['inset'];\n+            $newRole->edit    = $arrRole['edit'];\n+            $newRole->destroy = $arrRole['destroy'];\n+\n+            // check save successfull?\n+            if ($newRole->save()) {\n+                $request->session()->flash('message', trans('labels.MessageAddRoleOk'));\n+            } else {\n+                $request->session()->flash('message', trans('labels.MessageAddRoleNotOk'));\n+            }\n+        } else {\n+            $request->session()->flash('message', trans('labels.MessageRoleExists'));\n+        }\n+        return redirect()->route('admin.permissions.index');\n+    }\n+\n+    /**\n+     * Show the form for editing the specified Permissions.\n+     *\n+     * @param int                      $id      id\n+     * @param \\Illuminate\\Http\\Request $request request\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function edit($id, Request $request)\n+    {\n+        $data['modules']    = $this->getModule();\n+        $data['permission'] = Permission::find($id);\n+\n+        // check permission is exists\n+        if (empty($data['permission'])) {\n+            $request->session()->flash('message', trans('labels.LabelError'));\n+            return redirect('admin/permissions');\n+        }\n+\n+        return view('backend.permissions.edit')->with($data);\n+    }\n+\n+    /**\n+     * Update the specified Permissions in storage.\n+     *\n+     * @param \\Illuminate\\Http\\Request $request request\n+     * @param int                      $id      id\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function update(Request $request, $id)\n+    {\n+        if (!$this->checkPermissionExisted($request)) {\n+\n+            // get permission with id\n+            $role = Permission::find($id);\n+\n+            // check role is exists?\n+            if (empty($role)) {\n+                $request->session()->flash('message', trans('labels.LabelError'));\n+                return redirect('admin/permissions');\n+            }\n+            \n+            $role->module = $request->module;\n+\n+            // set permission\n+            $arrRole = $this->setPermission($request);\n+            $role->see     = $arrRole['see'];\n+            $role->inset   = $arrRole['inset'];\n+            $role->edit    = $arrRole['edit'];\n+            $role->destroy = $arrRole['destroy'];\n+            \n+            // check save successfull?\n+            if ($role->save()) {\n+                $request->session()->flash('message', trans('labels.MessageEditRoleOk'));\n+            } else {\n+                $request->session()->flash('message', trans('labels.MessageEditRoleNotOk'));\n+            }\n+        } else {\n+            $request->session()->flash('message', trans('labels.MessageRoleExists'));\n+        }\n+        return redirect()->route('admin.permissions.index');\n+    }\n+\n+    /**\n+     * Remove the specified Permissions from storage.\n+     *\n+     * @param int                      $id      id\n+     * @param \\Illuminate\\Http\\Request $request request for delete\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    public function destroy($id, Request $request)\n+    {\n+        $permission = Permission::find($id);\n+\n+        // check permission is exists?\n+        if (empty($permission)) {\n+            $request->session()->flash('message', trans('labels.LabelError'));\n+            return redirect('admin/permissions');\n+        }\n+\n+        // check delete permission ok?\n+        if ($permission->delete()) {\n+            $request->session()->flash('message', trans('labels.MessageDelRoleOk'));\n+        } else {\n+            $request->session()->flash('message', trans('labels.MessageDelRoleNotOk'));\n+        }\n+\n+        return redirect()->route('admin.permissions.index');\n+    }\n+\n+    /**\n+     * Auto get list Module.\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    private function getModule()\n+    {\n+        $modules = [];\n+        $routes = \\Route::getRoutes()->getRoutes();\n+\n+        foreach ($routes as $route) {\n+\n+            // get list all routes\n+            $action     = $route->getAction();\n+            $controller = config('app.get_controller');\n+            \n+            // get route have string 'controller'\n+            if (array_key_exists($controller, $action)) {\n+                \n+                // only get controller in folder Backend\n+                $backend = config('app.get_controller_backend');\n+\n+                if (strpos($action['controller'], $backend) !== false) {\n+                    \n+                    // only get controller with action index\n+                    $index = config('app.get_action_index');\n+                    \n+                    if (strpos($action['controller'], $index) !== false) {\n+                        \n+                        // get route => App\\Http\\Controllers\\Backend\\BrandsController@index\n+                        $route = $action['controller'];\n+                        \n+                        // get position start name Controller\n+                        $positionStart = strrpos($route, config('app.get_controller_action')) + 1;\n+\n+                        // get position end name Controller\n+                        $positionEnd   = strpos($route, config('app.get_length_controller')) + 1;\n+\n+                        // get length of name Controller\n+                        $lengthController = $positionEnd - $positionStart;\n+\n+                        // get controller => BrandsController\n+                        $controller = substr($route, $positionStart, $lengthController);\n+\n+                        // length of module form first name Controller to position start string 'Controller'\n+                        $lengthModule = strpos($controller, config('app.get_module'));\n+\n+                        // get modules in string controller (remove 'Controller') and set value for array modules\n+                        $modules[] = substr($controller, 0, $lengthModule);\n+                    }\n+                }\n+            }\n+        }\n+        // remove module except without array\n+        $modules = array_diff($modules, config('app.except_module'));\n+        \n+        return $modules;\n+    }\n+\n+    /**\n+     * Check permission is exists.\n+     *\n+     * @param \\Illuminate\\Http\\Request $request request\n+     *\n+     * @return \\Illuminate\\Http\\Response\n+     */\n+    private function checkPermissionExisted($request)\n+    {\n+        // set condition where\n+        $arrRole = $this->setPermission($request);\n+\n+        $see  = $arrRole['see'];\n+        $add  = $arrRole['inset'];\n+        $edit = $arrRole['edit'];\n+        $del  = $arrRole['destroy'];\n+\n+        $where = \"module = '$request->module' and see = $see and inset = $add and edit = $edit and destroy = $del\";","path":"app/Http/Controllers/Backend/PermissionsController.php","position":235,"original_position":235,"commit_id":"725e30398c4a2bb682ce40083befef727263be37","original_commit_id":"725e30398c4a2bb682ce40083befef727263be37","user":{"login":"at-vienlm","id":16182754,"avatar_url":"https://avatars.githubusercontent.com/u/16182754?v=3","gravatar_id":"","url":"https://api.github.com/users/at-vienlm","html_url":"https://github.com/at-vienlm","followers_url":"https://api.github.com/users/at-vienlm/followers","following_url":"https://api.github.com/users/at-vienlm/following{/other_user}","gists_url":"https://api.github.com/users/at-vienlm/gists{/gist_id}","starred_url":"https://api.github.com/users/at-vienlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-vienlm/subscriptions","organizations_url":"https://api.github.com/users/at-vienlm/orgs","repos_url":"https://api.github.com/users/at-vienlm/repos","events_url":"https://api.github.com/users/at-vienlm/events{/privacy}","received_events_url":"https://api.github.com/users/at-vienlm/received_events","type":"User","site_admin":false},"body":"why don't you use Laravel QueryBuilder, may this code have `SQL injection`","created_at":"2016-06-07T07:55:54Z","updated_at":"2016-06-07T07:55:54Z","html_url":"https://github.com/AT-PHPIntership/phone-ec/pull/103#discussion_r66024621","pull_request_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/comments/66024621"},"html":{"href":"https://github.com/AT-PHPIntership/phone-ec/pull/103#discussion_r66024621"},"pull_request":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103","id":72592317,"html_url":"https://github.com/AT-PHPIntership/phone-ec/pull/103","diff_url":"https://github.com/AT-PHPIntership/phone-ec/pull/103.diff","patch_url":"https://github.com/AT-PHPIntership/phone-ec/pull/103.patch","issue_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/103","number":103,"state":"open","locked":false,"title":"Permission Manager","user":{"login":"at-tuanpn","id":18674807,"avatar_url":"https://avatars.githubusercontent.com/u/18674807?v=3","gravatar_id":"","url":"https://api.github.com/users/at-tuanpn","html_url":"https://github.com/at-tuanpn","followers_url":"https://api.github.com/users/at-tuanpn/followers","following_url":"https://api.github.com/users/at-tuanpn/following{/other_user}","gists_url":"https://api.github.com/users/at-tuanpn/gists{/gist_id}","starred_url":"https://api.github.com/users/at-tuanpn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-tuanpn/subscriptions","organizations_url":"https://api.github.com/users/at-tuanpn/orgs","repos_url":"https://api.github.com/users/at-tuanpn/repos","events_url":"https://api.github.com/users/at-tuanpn/events{/privacy}","received_events_url":"https://api.github.com/users/at-tuanpn/received_events","type":"User","site_admin":false},"body":"I finished function Permission Manager.\r\n- create view Permission manager.\r\n- create model (model, migrate, seed).\r\n- create controller (PermissionController).\r\n- create unitest permission manager.\r\n@at-dungnh Please review for me.","created_at":"2016-06-04T04:08:17Z","updated_at":"2016-06-07T07:55:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61fcbdbb9691cc543a4453f6b8018d2b4efa3437","assignee":{"login":"at-dungnh","id":12025853,"avatar_url":"https://avatars.githubusercontent.com/u/12025853?v=3","gravatar_id":"","url":"https://api.github.com/users/at-dungnh","html_url":"https://github.com/at-dungnh","followers_url":"https://api.github.com/users/at-dungnh/followers","following_url":"https://api.github.com/users/at-dungnh/following{/other_user}","gists_url":"https://api.github.com/users/at-dungnh/gists{/gist_id}","starred_url":"https://api.github.com/users/at-dungnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-dungnh/subscriptions","organizations_url":"https://api.github.com/users/at-dungnh/orgs","repos_url":"https://api.github.com/users/at-dungnh/repos","events_url":"https://api.github.com/users/at-dungnh/events{/privacy}","received_events_url":"https://api.github.com/users/at-dungnh/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103/commits","review_comments_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103/comments","review_comment_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/103/comments","statuses_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/statuses/725e30398c4a2bb682ce40083befef727263be37","head":{"label":"AT-PHPIntership:PermissionManager","ref":"PermissionManager","sha":"725e30398c4a2bb682ce40083befef727263be37","user":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars.githubusercontent.com/u/17865237?v=3","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"repo":{"id":56130148,"name":"phone-ec","full_name":"AT-PHPIntership/phone-ec","owner":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars.githubusercontent.com/u/17865237?v=3","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AT-PHPIntership/phone-ec","description":"Simple EC site","fork":false,"url":"https://api.github.com/repos/AT-PHPIntership/phone-ec","forks_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/forks","keys_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/teams","hooks_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/hooks","issue_events_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/events{/number}","events_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/events","assignees_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/assignees{/user}","branches_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/branches{/branch}","tags_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/tags","blobs_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/refs{/sha}","trees_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/statuses/{sha}","languages_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/languages","stargazers_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/stargazers","contributors_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/contributors","subscribers_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/subscribers","subscription_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/subscription","commits_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/commits{/sha}","git_commits_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/commits{/sha}","comments_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/comments{/number}","issue_comment_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/comments{/number}","contents_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/contents/{+path}","compare_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/merges","archive_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/downloads","issues_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues{/number}","pulls_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls{/number}","milestones_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/milestones{/number}","notifications_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/labels{/name}","releases_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/releases{/id}","deployments_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/deployments","created_at":"2016-04-13T07:23:00Z","updated_at":"2016-05-23T02:34:08Z","pushed_at":"2016-06-07T02:55:26Z","git_url":"git://github.com/AT-PHPIntership/phone-ec.git","ssh_url":"git@github.com:AT-PHPIntership/phone-ec.git","clone_url":"https://github.com/AT-PHPIntership/phone-ec.git","svn_url":"https://github.com/AT-PHPIntership/phone-ec","homepage":"","size":4407,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":55,"forks":0,"open_issues":55,"watchers":0,"default_branch":"master"}},"base":{"label":"AT-PHPIntership:master","ref":"master","sha":"fc7b81070f72bfb3611d255bd3d78f89638753b4","user":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars.githubusercontent.com/u/17865237?v=3","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"repo":{"id":56130148,"name":"phone-ec","full_name":"AT-PHPIntership/phone-ec","owner":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars.githubusercontent.com/u/17865237?v=3","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AT-PHPIntership/phone-ec","description":"Simple EC site","fork":false,"url":"https://api.github.com/repos/AT-PHPIntership/phone-ec","forks_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/forks","keys_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/teams","hooks_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/hooks","issue_events_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/events{/number}","events_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/events","assignees_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/assignees{/user}","branches_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/branches{/branch}","tags_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/tags","blobs_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/refs{/sha}","trees_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/statuses/{sha}","languages_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/languages","stargazers_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/stargazers","contributors_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/contributors","subscribers_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/subscribers","subscription_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/subscription","commits_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/commits{/sha}","git_commits_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/git/commits{/sha}","comments_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/comments{/number}","issue_comment_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/comments{/number}","contents_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/contents/{+path}","compare_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/merges","archive_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/downloads","issues_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues{/number}","pulls_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls{/number}","milestones_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/milestones{/number}","notifications_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/labels{/name}","releases_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/releases{/id}","deployments_url":"https://api.github.com/repos/AT-PHPIntership/phone-ec/deployments","created_at":"2016-04-13T07:23:00Z","updated_at":"2016-05-23T02:34:08Z","pushed_at":"2016-06-07T02:55:26Z","git_url":"git://github.com/AT-PHPIntership/phone-ec.git","ssh_url":"git@github.com:AT-PHPIntership/phone-ec.git","clone_url":"https://github.com/AT-PHPIntership/phone-ec.git","svn_url":"https://github.com/AT-PHPIntership/phone-ec","homepage":"","size":4407,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":55,"forks":0,"open_issues":55,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103"},"html":{"href":"https://github.com/AT-PHPIntership/phone-ec/pull/103"},"issue":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/103"},"comments":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/AT-PHPIntership/phone-ec/statuses/725e30398c4a2bb682ce40083befef727263be37"}}}}
{"actor":{"display_login":"at-vienlm"}}