Passed
Pull Request — master (#277)
by Brian
01:50
created
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/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/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/Field/FieldService.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $ret = $this->exec($this->uri, null);
21 21
 
22 22
         $fields = $this->json_mapper->mapArray(
23
-             json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Field\Field'
23
+                json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Field\Field'
24 24
         );
25 25
 
26 26
         // temp array
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.
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.
src/Issue/IssueService.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $this->log->debug('add comment result='.var_export($ret, true));
228 228
         $comment = $this->json_mapper->map(
229
-           json_decode($ret), new Comment()
229
+            json_decode($ret), new Comment()
230 230
         );
231 231
 
232 232
         return $comment;
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $data = json_encode(json_decode($ret)->transitions);
399 399
 
400 400
         $transitions = $this->json_mapper->mapArray(
401
-           json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition'
401
+            json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition'
402 402
         );
403 403
 
404 404
         return $transitions;
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
         $this->log->debug("getTimeTracking res=$ret\n");
516 516
 
517 517
         $issue = $this->json_mapper->map(
518
-             json_decode($ret), new Issue()
518
+                json_decode($ret), new Issue()
519 519
         );
520 520
 
521 521
         return $issue->fields->timeTracking;
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
         $ret = $this->exec($url, $data, $type);
617 617
 
618 618
         $ret_worklog = $this->json_mapper->map(
619
-           json_decode($ret), new Worklog()
619
+            json_decode($ret), new Worklog()
620 620
         );
621 621
 
622 622
         return $ret_worklog;
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
         $ret = $this->exec('priority', null);
664 664
 
665 665
         $priorities = $this->json_mapper->mapArray(
666
-             json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority'
666
+                json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority'
667 667
         );
668 668
 
669 669
         return $priorities;
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
         $this->log->info('Result='.$ret);
688 688
 
689 689
         $prio = $this->json_mapper->map(
690
-             json_decode($ret), new Priority()
690
+                json_decode($ret), new Priority()
691 691
         );
692 692
 
693 693
         return $prio;
Please login to merge, or discard this 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/Board/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     public function jsonSerialize()
81 81
     {
82
-        return array_filter(get_object_vars($this), function ($var) {
82
+        return array_filter(get_object_vars($this), function($var) {
83 83
             return !is_null($var);
84 84
         });
85 85
     }
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.