Passed
Pull Request — master (#656)
by Abdul Malik
08:14
created
src/Reactor/src/FileDeclaration.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function addElement(DeclarationInterface $element): FileDeclaration
81 81
     {
82 82
         $this->elements->add($element);
83
-        if ($element instanceof DependedInterface) {
83
+        if ($element instanceof DependedInterface){
84 84
             $this->addUses($element->getDependencies());
85 85
         }
86 86
 
@@ -105,28 +105,28 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $result = "<?php\n";
107 107
 
108
-        if (!$this->docComment->isEmpty()) {
109
-            $result .= $this->docComment->render($indentLevel) . "\n";
108
+        if (!$this->docComment->isEmpty()){
109
+            $result .= $this->docComment->render($indentLevel)."\n";
110 110
         }
111 111
 
112
-        if ($this->directives !== null && !empty($this->directives->render())) {
113
-            $result .= $this->directives->render() . "\n\n";
112
+        if ($this->directives !== null && !empty($this->directives->render())){
113
+            $result .= $this->directives->render()."\n\n";
114 114
         }
115 115
 
116
-        if (!empty($this->namespace)) {
117
-            if ($this->docComment->isEmpty()) {
116
+        if (!empty($this->namespace)){
117
+            if ($this->docComment->isEmpty()){
118 118
                 $result .= "\n";
119 119
             }
120 120
             $result .= "namespace {$this->namespace};\n\n";
121 121
         }
122 122
 
123
-        if (!empty($this->uses)) {
124
-            $result .= $this->renderUses($indentLevel) . "\n\n";
123
+        if (!empty($this->uses)){
124
+            $result .= $this->renderUses($indentLevel)."\n\n";
125 125
         }
126 126
 
127 127
         $result .= $this->elements->render($indentLevel);
128 128
 
129
-        return $result . "\n";
129
+        return $result."\n";
130 130
     }
131 131
 
132 132
     /**
Please login to merge, or discard this patch.
src/Dumper/src/Renderer/ConsoleRenderer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Every dumped element is wrapped using this pattern.
25 25
      */
26
-    protected string $element = '%s%s' . Color::RESET;
26
+    protected string $element = '%s%s'.Color::RESET;
27 27
 
28 28
     /**
29 29
      * Set of styles associated with different dumping properties.
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function apply($element, string $type, string $context = ''): string
62 62
     {
63
-        if (!empty($style = $this->getStyle($type, $context))) {
63
+        if (!empty($style = $this->getStyle($type, $context))){
64 64
             return sprintf($this->element, $style, $element);
65 65
         }
66 66
 
@@ -82,15 +82,15 @@  discard block
 block discarded – undo
82 82
      */
83 83
     private function getStyle(string $type, string $context): string
84 84
     {
85
-        if (isset($this->styles[$type][$context])) {
85
+        if (isset($this->styles[$type][$context])){
86 86
             return $this->styles[$type][$context];
87 87
         }
88 88
 
89
-        if (isset($this->styles[$type]['common'])) {
89
+        if (isset($this->styles[$type]['common'])){
90 90
             return $this->styles[$type]['common'];
91 91
         }
92 92
 
93
-        if (isset($this->styles[$type]) && is_string($this->styles[$type])) {
93
+        if (isset($this->styles[$type]) && is_string($this->styles[$type])){
94 94
             return $this->styles[$type];
95 95
         }
96 96
 
Please login to merge, or discard this patch.