Passed
Push — master ( 45960c...20d4cd )
by Glegrith
01:58
created
app/framework/Component/Console/Output/Formatter/OutputFormatterStyle.php 2 patches
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -16,40 +16,40 @@  discard block
 block discarded – undo
16 16
 class OutputFormatterStyle implements OutputFormatterStyleInterface
17 17
 {
18 18
     private static $availableForegroundColors = [
19
-        'black'   => ['set' => 30, 'unset' => 39],
20
-        'red'     => ['set' => 31, 'unset' => 39],
21
-        'green'   => ['set' => 32, 'unset' => 39],
22
-        'yellow'  => ['set' => 33, 'unset' => 39],
23
-        'blue'    => ['set' => 34, 'unset' => 39],
24
-        'magenta' => ['set' => 35, 'unset' => 39],
25
-        'cyan'    => ['set' => 36, 'unset' => 39],
26
-        'white'   => ['set' => 37, 'unset' => 39],
27
-        'default' => ['set' => 39, 'unset' => 39]
19
+        'black'   => [ 'set' => 30, 'unset' => 39 ],
20
+        'red'     => [ 'set' => 31, 'unset' => 39 ],
21
+        'green'   => [ 'set' => 32, 'unset' => 39 ],
22
+        'yellow'  => [ 'set' => 33, 'unset' => 39 ],
23
+        'blue'    => [ 'set' => 34, 'unset' => 39 ],
24
+        'magenta' => [ 'set' => 35, 'unset' => 39 ],
25
+        'cyan'    => [ 'set' => 36, 'unset' => 39 ],
26
+        'white'   => [ 'set' => 37, 'unset' => 39 ],
27
+        'default' => [ 'set' => 39, 'unset' => 39 ]
28 28
     ];
29 29
 
30 30
     private static $availableBackgroundColors = [
31
-        'black'   => ['set' => 40, 'unset' => 49],
32
-        'red'     => ['set' => 41, 'unset' => 49],
33
-        'green'   => ['set' => 42, 'unset' => 49],
34
-        'yellow'  => ['set' => 43, 'unset' => 49],
35
-        'blue'    => ['set' => 44, 'unset' => 49],
36
-        'magenta' => ['set' => 45, 'unset' => 49],
37
-        'cyan'    => ['set' => 46, 'unset' => 49],
38
-        'white'   => ['set' => 47, 'unset' => 49],
39
-        'default' => ['set' => 49, 'unset' => 49]
31
+        'black'   => [ 'set' => 40, 'unset' => 49 ],
32
+        'red'     => [ 'set' => 41, 'unset' => 49 ],
33
+        'green'   => [ 'set' => 42, 'unset' => 49 ],
34
+        'yellow'  => [ 'set' => 43, 'unset' => 49 ],
35
+        'blue'    => [ 'set' => 44, 'unset' => 49 ],
36
+        'magenta' => [ 'set' => 45, 'unset' => 49 ],
37
+        'cyan'    => [ 'set' => 46, 'unset' => 49 ],
38
+        'white'   => [ 'set' => 47, 'unset' => 49 ],
39
+        'default' => [ 'set' => 49, 'unset' => 49 ]
40 40
     ];
41 41
 
42 42
     private static $availableOptions = [
43
-        'bold'       => ['set' => 1, 'unset' => 22],
44
-        'underscore' => ['set' => 4, 'unset' => 24],
45
-        'blink'      => ['set' => 5, 'unset' => 25],
46
-        'reverse'    => ['set' => 7, 'unset' => 27],
47
-        'conceal'    => ['set' => 8, 'unset' => 28]
43
+        'bold'       => [ 'set' => 1, 'unset' => 22 ],
44
+        'underscore' => [ 'set' => 4, 'unset' => 24 ],
45
+        'blink'      => [ 'set' => 5, 'unset' => 25 ],
46
+        'reverse'    => [ 'set' => 7, 'unset' => 27 ],
47
+        'conceal'    => [ 'set' => 8, 'unset' => 28 ]
48 48
     ];
49 49
 
50 50
     private $foreground;
51 51
     private $background;
52
-    private $options = [];
52
+    private $options = [ ];
53 53
 
54 54
     /**
55 55
      * Initializes output formatter style.
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
             $this->foreground = null;
84 84
             return;
85 85
         }
86
-        if (!isset(static::$availableForegroundColors[$color])) {
86
+        if (!isset(static::$availableForegroundColors[ $color ])) {
87 87
             throw new \InvalidArgumentException(sprintf(
88 88
                 'Invalid foreground color specified: "%s". Expected one of (%s)',
89 89
                 $color,
90 90
                 implode(', ', array_keys(static::$availableForegroundColors))
91 91
             ));
92 92
         }
93
-        $this->foreground = static::$availableForegroundColors[$color];
93
+        $this->foreground = static::$availableForegroundColors[ $color ];
94 94
     }
95 95
 
96 96
     /**
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
             $this->background = null;
107 107
             return;
108 108
         }
109
-        if (!isset(static::$availableBackgroundColors[$color])) {
109
+        if (!isset(static::$availableBackgroundColors[ $color ])) {
110 110
             throw new \InvalidArgumentException(sprintf(
111 111
                 'Invalid background color specified: "%s". Expected one of (%s)',
112 112
                 $color,
113 113
                 implode(', ', array_keys(static::$availableBackgroundColors))
114 114
             ));
115 115
         }
116
-        $this->background = static::$availableBackgroundColors[$color];
116
+        $this->background = static::$availableBackgroundColors[ $color ];
117 117
     }
118 118
 
119 119
     /**
@@ -125,15 +125,15 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function setOption($option)
127 127
     {
128
-        if (!isset(static::$availableOptions[$option])) {
128
+        if (!isset(static::$availableOptions[ $option ])) {
129 129
             throw new \InvalidArgumentException(sprintf(
130 130
                 'Invalid option specified: "%s". Expected one of (%s)',
131 131
                 $option,
132 132
                 implode(', ', array_keys(static::$availableOptions))
133 133
             ));
134 134
         }
135
-        if (!in_array(static::$availableOptions[$option], $this->options)) {
136
-            $this->options[] = static::$availableOptions[$option];
135
+        if (!in_array(static::$availableOptions[ $option ], $this->options)) {
136
+            $this->options[ ] = static::$availableOptions[ $option ];
137 137
         }
138 138
     }
139 139
 
@@ -146,16 +146,16 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function unsetOption($option)
148 148
     {
149
-        if (!isset(static::$availableOptions[$option])) {
149
+        if (!isset(static::$availableOptions[ $option ])) {
150 150
             throw new \InvalidArgumentException(sprintf(
151 151
                 'Invalid option specified: "%s". Expected one of (%s)',
152 152
                 $option,
153 153
                 implode(', ', array_keys(static::$availableOptions))
154 154
             ));
155 155
         }
156
-        $pos = array_search(static::$availableOptions[$option], $this->options);
156
+        $pos = array_search(static::$availableOptions[ $option ], $this->options);
157 157
         if (false !== $pos) {
158
-            unset($this->options[$pos]);
158
+            unset($this->options[ $pos ]);
159 159
         }
160 160
     }
161 161
 
@@ -183,19 +183,19 @@  discard block
 block discarded – undo
183 183
         $unsetCodes = array();
184 184
 
185 185
         if (null !== $this->foreground) {
186
-            $setCodes[] = $this->foreground['set'];
187
-            $unsetCodes[] = $this->foreground['unset'];
186
+            $setCodes[ ] = $this->foreground[ 'set' ];
187
+            $unsetCodes[ ] = $this->foreground[ 'unset' ];
188 188
         }
189 189
 
190 190
         if (null !== $this->background) {
191
-            $setCodes[] = $this->background['set'];
192
-            $unsetCodes[] = $this->background['unset'];
191
+            $setCodes[ ] = $this->background[ 'set' ];
192
+            $unsetCodes[ ] = $this->background[ 'unset' ];
193 193
         }
194 194
 
195 195
         if (count($this->options)) {
196 196
             foreach ($this->options as $option) {
197
-                $setCodes[] = $option['set'];
198
-                $unsetCodes[] = $option['unset'];
197
+                $setCodes[ ] = $option[ 'set' ];
198
+                $unsetCodes[ ] = $option[ 'unset' ];
199 199
             }
200 200
         }
201 201
 
Please login to merge, or discard this patch.
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,14 +60,17 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function __construct(string $foreground = null, string $background = null, array $options = array())
62 62
     {
63
-        if (null !== $foreground)
64
-            $this->setForeground($foreground);
63
+        if (null !== $foreground) {
64
+                    $this->setForeground($foreground);
65
+        }
65 66
 
66
-        if (null !== $background)
67
-            $this->setBackground($background);
67
+        if (null !== $background) {
68
+                    $this->setBackground($background);
69
+        }
68 70
 
69
-        if (count($options))
70
-            $this->setOptions($options);
71
+        if (count($options)) {
72
+                    $this->setOptions($options);
73
+        }
71 74
     }
72 75
 
73 76
     /**
@@ -199,8 +202,9 @@  discard block
 block discarded – undo
199 202
             }
200 203
         }
201 204
 
202
-        if (0 === count($setCodes))
203
-            return $text;
205
+        if (0 === count($setCodes)) {
206
+                    return $text;
207
+        }
204 208
 
205 209
         return sprintf("\033[%sm%s\033[%sm", implode(';', $setCodes), $text, implode(';', $unsetCodes));
206 210
     }
Please login to merge, or discard this patch.
app/framework/Component/Console/Output/ConsoleOutput.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,9 @@
 block discarded – undo
41 41
         $actualDecorated = $this->isDecorated();
42 42
         $this->stderr = new StreamOutput($this->openErrorStream(), $verbosity, $decorated, $this->getFormatter());
43 43
 
44
-        if ($decorated === null)
45
-            $this->setDecorated($actualDecorated && $this->stderr->isDecorated());
44
+        if ($decorated === null) {
45
+                    $this->setDecorated($actualDecorated && $this->stderr->isDecorated());
46
+        }
46 47
     }
47 48
 
48 49
     /**
Please login to merge, or discard this patch.
app/framework/Component/Console/Output/ConsoleSectionOutput.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
 
80 80
         foreach (explode(PHP_EOL, $message) as $lineContent) {
81 81
             $this->lines += ceil($this->getDisplayLength($lineContent) / $this->terminal->getWidth()) ?: 1;
82
-            $this->content[] = $lineContent;
83
-            $this->content[] = PHP_EOL;
82
+            $this->content[ ] = $lineContent;
83
+            $this->content[ ] = PHP_EOL;
84 84
         }
85 85
 
86 86
         parent::doWrite($message, true);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 break;
102 102
 
103 103
             $numberOfLinesToClear += $section->lines;
104
-            $erasedContent[] = $section->getContent();
104
+            $erasedContent[ ] = $section->getContent();
105 105
         }
106 106
 
107 107
         if ($numberOfLinesToClear > 0) {
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,8 +37,9 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function clear(int $lines = null)
39 39
     {
40
-        if (empty($this->content) || !$this->isDecorated())
41
-            return;
40
+        if (empty($this->content) || !$this->isDecorated()) {
41
+                    return;
42
+        }
42 43
 
43 44
         if ($lines) {
44 45
             \array_splice($this->content, -($lines * 2)); // Multiply lines by 2 to cater for each new line added between content
@@ -72,8 +73,9 @@  discard block
 block discarded – undo
72 73
      */
73 74
     protected function doWrite($message, $newline)
74 75
     {
75
-        if (!$this->isDecorated())
76
-            return parent::doWrite($message, $newline);
76
+        if (!$this->isDecorated()) {
77
+                    return parent::doWrite($message, $newline);
78
+        }
77 79
 
78 80
         $erasedContent = $this->popStreamContentUntilCurrentSection();
79 81
 
@@ -97,8 +99,9 @@  discard block
 block discarded – undo
97 99
         $erasedContent = array();
98 100
 
99 101
         foreach ($this->sections as $section) {
100
-            if ($section === $this)
101
-                break;
102
+            if ($section === $this) {
103
+                            break;
104
+            }
102 105
 
103 106
             $numberOfLinesToClear += $section->lines;
104 107
             $erasedContent[] = $section->getContent();
Please login to merge, or discard this patch.
app/framework/Component/Console/Helper/DescriptorHelper.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
             'format' => 'txt',
45 45
         ), $options);
46 46
 
47
-        if (!isset($this->descriptors[$options['format']]))
48
-            throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
47
+        if (!isset($this->descriptors[ $options[ 'format' ] ]))
48
+            throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options[ 'format' ]));
49 49
 
50
-        $descriptor = $this->descriptors[$options['format']];
50
+        $descriptor = $this->descriptors[ $options[ 'format' ] ];
51 51
         $descriptor->describe($output, $object, $options);
52 52
     }
53 53
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function register($format, DescriptorInterface $descriptor)
63 63
     {
64
-        $this->descriptors[$format] = $descriptor;
64
+        $this->descriptors[ $format ] = $descriptor;
65 65
 
66 66
         return $this;
67 67
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,9 @@
 block discarded – undo
44 44
             'format' => 'txt',
45 45
         ), $options);
46 46
 
47
-        if (!isset($this->descriptors[$options['format']]))
48
-            throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
47
+        if (!isset($this->descriptors[$options['format']])) {
48
+                    throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
49
+        }
49 50
 
50 51
         $descriptor = $this->descriptors[$options['format']];
51 52
         $descriptor->describe($output, $object, $options);
Please login to merge, or discard this patch.
app/framework/Component/Console/Helper/Helper.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,14 +60,14 @@
 block discarded – undo
60 60
         ];
61 61
 
62 62
         foreach ($timeFormats as $index => $format) {
63
-            if ($secs >= $format[0]) {
64
-                if ((isset($timeFormats[$index + 1]) && $secs < $timeFormats[$index + 1][0])
63
+            if ($secs >= $format[ 0 ]) {
64
+                if ((isset($timeFormats[ $index + 1 ]) && $secs < $timeFormats[ $index + 1 ][ 0 ])
65 65
                     || $index == count($timeFormats) - 1
66 66
                 ) {
67 67
                     if (2 == count($format))
68
-                        return $format[1];
68
+                        return $format[ 1 ];
69 69
 
70
-                    return floor($secs / $format[2]).' '.$format[1];
70
+                    return floor($secs / $format[ 2 ]).' '.$format[ 1 ];
71 71
                 }
72 72
             }
73 73
         }
Please login to merge, or discard this patch.
Braces   +18 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@  discard block
 block discarded – undo
22 22
     public static function strlen($string)
23 23
     {
24 24
 
25
-        if (false === $encoding = mb_detect_encoding($string, null, true))
26
-            return strlen($string);
25
+        if (false === $encoding = mb_detect_encoding($string, null, true)) {
26
+                    return strlen($string);
27
+        }
27 28
 
28 29
         return mb_strwidth($string, $encoding);
29 30
     }
@@ -39,8 +40,9 @@  discard block
 block discarded – undo
39 40
      */
40 41
     public static function substr($string, $from, $length = null)
41 42
     {
42
-        if ($encoding = mb_detect_encoding($string, null, true) === false)
43
-            return substr($string, $from, $length);
43
+        if ($encoding = mb_detect_encoding($string, null, true) === false) {
44
+                    return substr($string, $from, $length);
45
+        }
44 46
 
45 47
         return mb_substr($string, $from, $length, $encoding);
46 48
     }
@@ -64,8 +66,9 @@  discard block
 block discarded – undo
64 66
                 if ((isset($timeFormats[$index + 1]) && $secs < $timeFormats[$index + 1][0])
65 67
                     || $index == count($timeFormats) - 1
66 68
                 ) {
67
-                    if (2 == count($format))
68
-                        return $format[1];
69
+                    if (2 == count($format)) {
70
+                                            return $format[1];
71
+                    }
69 72
 
70 73
                     return floor($secs / $format[2]).' '.$format[1];
71 74
                 }
@@ -75,14 +78,17 @@  discard block
 block discarded – undo
75 78
 
76 79
     public static function formatMemory($memory)
77 80
     {
78
-        if ($memory >= 1024 * 1024 * 1024)
79
-            return sprintf('%.1f GiB', $memory / 1024 / 1024 / 1024);
81
+        if ($memory >= 1024 * 1024 * 1024) {
82
+                    return sprintf('%.1f GiB', $memory / 1024 / 1024 / 1024);
83
+        }
80 84
 
81
-        if ($memory >= 1024 * 1024)
82
-            return sprintf('%.1f MiB', $memory / 1024 / 1024);
85
+        if ($memory >= 1024 * 1024) {
86
+                    return sprintf('%.1f MiB', $memory / 1024 / 1024);
87
+        }
83 88
 
84
-        if ($memory >= 1024)
85
-            return sprintf('%d KiB', $memory / 1024);
89
+        if ($memory >= 1024) {
90
+                    return sprintf('%d KiB', $memory / 1024);
91
+        }
86 92
 
87 93
         return sprintf('%d B', $memory);
88 94
     }
Please login to merge, or discard this patch.
app/framework/Component/Stopwatch/Stopwatch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             handle(new \LogicException(sprintf('The section "%s" has been started at an other level and can not be opened.', $id)));
51 51
         }
52 52
         $this->start('__section__.child', 'section');
53
-        $this->activeSections[] = $current->open($id);
53
+        $this->activeSections[ ] = $current->open($id);
54 54
         $this->start('__section__');
55 55
     }
56 56
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if (1 == count($this->activeSections)) {
72 72
             handler(new \LogicException('There is no started section to stop.'));
73 73
         }
74
-        $this->sections[$id] = array_pop($this->activeSections)->setId($id);
74
+        $this->sections[ $id ] = array_pop($this->activeSections)->setId($id);
75 75
         $this->stop('__section__.child');
76 76
     }
77 77
 
@@ -145,6 +145,6 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function getSectionEvents($id)
147 147
     {
148
-        return isset($this->sections[$id]) ? $this->sections[$id]->getEvents() : array();
148
+        return isset($this->sections[ $id ]) ? $this->sections[ $id ]->getEvents() : array();
149 149
     }
150 150
 }
Please login to merge, or discard this patch.
app/framework/Component/Stopwatch/StopwatchEvent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function start()
82 82
     {
83
-        $this->started[] = $this->getNow();
83
+        $this->started[ ] = $this->getNow();
84 84
         return $this;
85 85
     }
86 86
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         if (!count($this->started)) {
97 97
             handle(new \LogicException('stop() called but start() has not been called before.'));
98 98
         }
99
-        $this->periods[] = new StopwatchPeriod(array_pop($this->started), $this->getNow());
99
+        $this->periods[ ] = new StopwatchPeriod(array_pop($this->started), $this->getNow());
100 100
         return $this;
101 101
     }
102 102
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function getStartTime()
149 149
     {
150
-        return isset($this->periods[0]) ? $this->periods[0]->getStartTime() : 0;
150
+        return isset($this->periods[ 0 ]) ? $this->periods[ 0 ]->getStartTime() : 0;
151 151
     }
152 152
 
153 153
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     public function getEndTime()
159 159
     {
160 160
         $count = count($this->periods);
161
-        return $count ? $this->periods[$count - 1]->getEndTime() : 0;
161
+        return $count ? $this->periods[ $count - 1 ]->getEndTime() : 0;
162 162
     }
163 163
 
164 164
     /**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $left = count($this->started) - $stopped;
174 174
         for ($i = 0; $i < $left; ++$i) {
175 175
             $index = $stopped + $i;
176
-            $periods[] = new StopwatchPeriod($this->started[$index], $this->getNow());
176
+            $periods[ ] = new StopwatchPeriod($this->started[ $index ], $this->getNow());
177 177
         }
178 178
         $total = 0;
179 179
         foreach ($periods as $period) {
Please login to merge, or discard this patch.
app/framework/Component/Stopwatch/Section.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function open($id)
76 76
     {
77 77
         if (null === $session = $this->get($id)) {
78
-            $session = $this->children[] = new self(microtime(true) * 1000);
78
+            $session = $this->children[ ] = new self(microtime(true) * 1000);
79 79
         }
80 80
         return $session;
81 81
     }
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function startEvent($name, $category)
112 112
     {
113
-        if (!$this->is($this->events[$name])) {
114
-            $this->events[$name] = new StopwatchEvent($this->origin ?: microtime(true) * 1000, $category);
113
+        if (!$this->is($this->events[ $name ])) {
114
+            $this->events[ $name ] = new StopwatchEvent($this->origin ?: microtime(true) * 1000, $category);
115 115
         }
116
-        return $this->events[$name]->start();
116
+        return $this->events[ $name ]->start();
117 117
     }
118 118
 
119 119
     /**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function isEventStarted($name)
127 127
     {
128
-        return isset($this->events[$name]) && $this->events[$name]->isStarted();
128
+        return isset($this->events[ $name ]) && $this->events[ $name ]->isStarted();
129 129
     }
130 130
 
131 131
     /**
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function stopEvent($name)
139 139
     {
140
-        if (!$this->is($this->events[$name])) {
140
+        if (!$this->is($this->events[ $name ])) {
141 141
             handle(new \LogicException(sprintf('Event "%s" is not started.', $name)));
142 142
         }
143
-        return $this->events[$name]->stop();
143
+        return $this->events[ $name ]->stop();
144 144
     }
145 145
 
146 146
     /**
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function getEvent($name)
168 168
     {
169
-        if (!$this->is($this->events[$name])) {
169
+        if (!$this->is($this->events[ $name ])) {
170 170
             handle(new \LogicException(sprintf('Event "%s" is not known.', $name)));
171 171
         }
172
-        return $this->events[$name];
172
+        return $this->events[ $name ];
173 173
     }
174 174
 
175 175
     /**
Please login to merge, or discard this patch.
app/framework/Component/Cookie/CookieTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 {
13 13
     protected function createCookie($cookieName, $cookieValue = null, $expire = null, $path = "/", $encrypt = false)
14 14
     {
15
-        if($this->cookieJar[$cookieName] == null) {
16
-            $this->cookieJar[$cookieName] = new Cookie($cookieName, $cookieValue, $expire, $path, $encrypt);
15
+        if ($this->cookieJar[ $cookieName ] == null) {
16
+            $this->cookieJar[ $cookieName ] = new Cookie($cookieName, $cookieValue, $expire, $path, $encrypt);
17 17
             return true;
18 18
         } else {
19 19
             return false;
Please login to merge, or discard this patch.