Passed
Pull Request — master (#276)
by
unknown
07:11
created
src/Issue/IssueService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     {
226 226
         $this->log->info("addComment=\n");
227 227
 
228
-        if (! ($comment instanceof Comment) || empty($comment->body)) {
228
+        if (!($comment instanceof Comment) || empty($comment->body)) {
229 229
             throw new JiraException("comment param must instance of Comment and have to body text.!");
230 230
         }
231 231
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     {
258 258
         $this->log->info("updateComment=\n");
259 259
 
260
-        if (! ($comment instanceof Comment) || empty($comment->body)) {
260
+        if (!($comment instanceof Comment) || empty($comment->body)) {
261 261
             throw new JiraException("comment param must instance of Comment and have to body text.!");
262 262
         }
263 263
 
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
         $metas = \json_decode($ret, true);
881 881
 
882 882
         // extract only custom field(startWith customefield_XXXXX)
883
-        $cfs = \array_filter($metas['fields'], function ($key) {
883
+        $cfs = \array_filter($metas['fields'], function($key) {
884 884
             $pos = \strpos($key, 'customfield');
885 885
 
886 886
             return $pos !== false;
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/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 self())->dump($x);
30 30
         }, \func_get_args());
31 31
         die(1);
Please login to merge, or discard this patch.
src/Board/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     public function jsonSerialize()
88 88
     {
89
-        return \array_filter(\get_object_vars($this), function ($var) {
89
+        return \array_filter(\get_object_vars($this), function($var) {
90 90
             return !\is_null($var);
91 91
         });
92 92
     }
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
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
     public function jsonSerialize()
71 71
     {
72
-        return \array_filter(\get_object_vars($this), function ($var) {
72
+        return \array_filter(\get_object_vars($this), function($var) {
73 73
             return !\is_null($var);
74 74
         });
75 75
     }
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
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 
118 118
     public function jsonSerialize()
119 119
     {
120
-        return \array_filter(\get_object_vars($this), function ($var) {
120
+        return \array_filter(\get_object_vars($this), function($var) {
121 121
             return !\is_null($var);
122 122
         });
123 123
     }
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
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $ret = $this->exec("/user/assignable/search?project=$projectIdOrKey", null);
71 71
         $json = \json_decode($ret);
72
-        $results = \array_map(function ($elem) {
72
+        $results = \array_map(function($elem) {
73 73
             return $this->json_mapper->map($elem, new Reporter());
74 74
         }, $json);
75 75
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null);
89 89
         $json = \json_decode($ret);
90
-        $results = \array_map(function ($elem) {
90
+        $results = \array_map(function($elem) {
91 91
             return $this->json_mapper->map($elem, new IssueType());
92 92
         }, $json);
93 93
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->log->info('Result='.$ret);
107 107
 
108 108
         $json = \json_decode($ret);
109
-        $results = \array_map(function ($elem) {
109
+        $results = \array_map(function($elem) {
110 110
             return $this->json_mapper->map($elem, new ProjectType());
111 111
         }, $json);
112 112
 
Please login to merge, or discard this patch.