Completed
Pull Request — master (#193)
by
unknown
01:49
created
src/Version/VersionService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $this->log->addInfo('Result='.$ret);
62 62
 
63 63
         $json = json_decode($ret);
64
-        $results = array_map(function ($elem) {
64
+        $results = array_map(function($elem) {
65 65
             return $this->json_mapper->map($elem, new ProjectType());
66 66
         }, $json);
67 67
 
Please login to merge, or discard this patch.
src/Project/ProjectService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $ret = $this->exec("/user/assignable/search?project=$projectIdOrKey", null);
70 70
         $json = json_decode($ret);
71
-        $results = array_map(function ($elem) {
71
+        $results = array_map(function($elem) {
72 72
             return $this->json_mapper->map($elem, new Reporter());
73 73
         }, $json);
74 74
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null);
88 88
         $json = json_decode($ret);
89
-        $results = array_map(function ($elem) {
89
+        $results = array_map(function($elem) {
90 90
             return $this->json_mapper->map($elem, new IssueType());
91 91
         }, $json);
92 92
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->log->addInfo('Result='.$ret);
106 106
 
107 107
         $json = json_decode($ret);
108
-        $results = array_map(function ($elem) {
108
+        $results = array_map(function($elem) {
109 109
             return $this->json_mapper->map($elem, new ProjectType());
110 110
         }, $json);
111 111
 
Please login to merge, or discard this patch.
src/Project/Project.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
     public function jsonSerialize()
94 94
     {
95
-        return array_filter(get_object_vars($this), function ($var) {
95
+        return array_filter(get_object_vars($this), function($var) {
96 96
             return !is_null($var);
97 97
         });
98 98
     }
Please login to merge, or discard this patch.
src/Dumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public static function dd($x)
27 27
     {
28
-        array_map(function ($x) {
28
+        array_map(function($x) {
29 29
             (new Dumper())->dump($x);
30 30
         }, func_get_args());
31 31
         die(1);
Please login to merge, or discard this patch.
src/Issue/IssueField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 
141 141
     public function jsonSerialize()
142 142
     {
143
-        $vars = array_filter(get_object_vars($this), function ($var) {
143
+        $vars = array_filter(get_object_vars($this), function($var) {
144 144
             return !is_null($var);
145 145
         });
146 146
 
Please login to merge, or discard this patch.
src/Issue/IssueService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -783,7 +783,7 @@
 block discarded – undo
783 783
         $metas = json_decode($ret, true);
784 784
 
785 785
         // extract only custom field(startWith customefield_XXXXX)
786
-        $cfs = array_filter($metas['fields'], function ($key) {
786
+        $cfs = array_filter($metas['fields'], function($key) {
787 787
             $pos = strpos($key, 'customfield');
788 788
 
789 789
             return $pos !== false;
Please login to merge, or discard this patch.
src/JiraRestApiServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function register()
29 29
     {
30
-        $this->app->bind(ConfigurationInterface::class, function () {
30
+        $this->app->bind(ConfigurationInterface::class, function() {
31 31
             return new DotEnvConfiguration(base_path());
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
src/Board/BoardService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $json_mapper = new \JsonMapper();
36 36
         $json_mapper->undefinedPropertyHandler = [new \JiraRestApi\JsonMapperHelper(), 'setUndefinedProperty'];
37 37
         return $json_mapper->map($json,
38
-            new Board() );
38
+            new Board());
39 39
     }
40 40
     public static function getArrayOfBoardsFromJSON($boardList)
41 41
     {
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
     public function getAllBoards($paramArray = [])
70 70
     {
71 71
         $boardArray = array();
72
-        $boardArray = $this->loopOverResults($this->uri,$paramArray);
72
+        $boardArray = $this->loopOverResults($this->uri, $paramArray);
73 73
         return $this->getArrayOfBoardsFromJSON($boardArray);
74 74
     }
75 75
 
76
-    public function getBoardWithSprintsList($boardId = null,$paramArray = [])
76
+    public function getBoardWithSprintsList($boardId = null, $paramArray = [])
77 77
     {
78 78
         if (is_null($boardId)) {
79 79
             $boardList = $this->getAllBoards();
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
         return $boards;
92 92
     }
93 93
 
94
-    public function getSprintInfoForBoard($boardId,$paramArray)
94
+    public function getSprintInfoForBoard($boardId, $paramArray)
95 95
     {
96 96
         $board = $this->getBoard($boardId);
97
-        $sprintList = $this->loopOverResults($this->uri.'/'.$boardId.'/sprint/',$paramArray);
97
+        $sprintList = $this->loopOverResults($this->uri.'/'.$boardId.'/sprint/', $paramArray);
98 98
         $sprintObjectsArray = array();
99 99
         foreach ($sprintList as $sprint) {
100 100
             $sprintObjectsArray[$sprint->id] = SprintService::getSprintFromJSON($sprint);
@@ -103,17 +103,17 @@  discard block
 block discarded – undo
103 103
         return $board;
104 104
     }
105 105
 
106
-    public function loopOverResults($uri,$paramArray = [])
106
+    public function loopOverResults($uri, $paramArray = [])
107 107
     {
108 108
         $resultsArray = array();
109 109
         $ret = $this->restClient->exec($uri.$this->restClient->toHttpQueryParameter($paramArray), null);
110 110
         $results = json_decode($ret);
111 111
         while (!$results->isLast) {
112
-            $resultsArray = array_merge($resultsArray,$results->values);
112
+            $resultsArray = array_merge($resultsArray, $results->values);
113 113
             $paramArray['startAt'] = $results->startAt + $results->maxResults;
114 114
             $ret = $this->restClient->exec($this->uri.$this->restClient->toHttpQueryParameter($paramArray), null);
115 115
             $results = json_decode($ret);
116 116
         }
117
-        return array_merge($resultsArray,$results->values);
117
+        return array_merge($resultsArray, $results->values);
118 118
         }
119 119
 }
Please login to merge, or discard this patch.
src/Board/Board.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
     public function jsonSerialize()
94 94
     {
95
-        return array_filter(get_object_vars($this), function ($var) {
95
+        return array_filter(get_object_vars($this), function($var) {
96 96
             return !is_null($var);
97 97
         });
98 98
     }
Please login to merge, or discard this patch.