Completed
Push — master ( 1defd2...50d640 )
by Iqbal
02:55
created
src/AbstractParameterBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     public function add(array $parameters)
62 62
     {
63
-        foreach($parameters as $key => $value) {
63
+        foreach ($parameters as $key => $value) {
64 64
             if (method_exists($this, 'set')) {
65 65
                 $this->{'set'}($key, $value);
66 66
             }
Please login to merge, or discard this patch.
src/File/Exception/AccessDeniedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
      */
48 48
     public static function failedWriteFileOnDirectory($directory)
49 49
     {
50
-        return new self (sprintf('Unable to write in the "%s" directory', $directory));
50
+        return new self(sprintf('Unable to write in the "%s" directory', $directory));
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
src/Header/Accept/AbstractAcceptHeader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function add(AcceptHeaderItem $item)
54 54
     {
55 55
         $matcher = $this->getFieldValueMatcher();
56
-        if (null !== $matcher && false === (bool)preg_match($matcher, $item->getValue())) {
56
+        if (null !== $matcher && false === (bool) preg_match($matcher, $item->getValue())) {
57 57
             throw new InvalidArgumentException(sprintf(
58 58
                 'Item value "%s" is not match for given rules of "%s" header.',
59 59
                 $item->getValue(),
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public static function fromString($headerLine)
91 91
     {
92
-        $headerLine = (string)$headerLine;
92
+        $headerLine = (string) $headerLine;
93 93
         $pos = strpos($headerLine, ':');
94 94
         $fieldName = substr($headerLine, 0, $pos);
95 95
         $header = new static();
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     private function sort()
137 137
     {
138 138
         if (false === $this->sorted) {
139
-            uasort($this->items, function (AcceptHeaderItem $x, AcceptHeaderItem $y) {
139
+            uasort($this->items, function(AcceptHeaderItem $x, AcceptHeaderItem $y) {
140 140
                 $xPriority = $x->getPriority();
141 141
                 $yPriority = $y->getPriority();
142 142
 
Please login to merge, or discard this patch.
src/Header/Accept/AcceptHeaderItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         if ('q' === $name) {
69 69
             $this->setPriority($value);
70 70
         } else {
71
-            $this->parameters[$name] = (string)$value;
71
+            $this->parameters[$name] = (string) $value;
72 72
         }
73 73
 
74 74
         return $this;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public static function fromString($itemString)
85 85
     {
86
-        preg_match_all('#((("[^"\']++")|(\'[^"\']++\'))|[^;"\'])+#', (string)$itemString, $parts);
86
+        preg_match_all('#((("[^"\']++")|(\'[^"\']++\'))|[^;"\'])+#', (string) $itemString, $parts);
87 87
         $bits = $parts[0];
88 88
         $fieldValue = array_shift($bits);
89 89
         $parameters = array();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function setPriority($priority)
139 139
     {
140
-        $priority = (float)$priority;
140
+        $priority = (float) $priority;
141 141
 
142 142
         if (0 > $priority || 1 < $priority) {
143 143
             throw new InvalidArgumentException(sprintf('Priority must between 0 - 1, "%s" give.', $priority));
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function setIndex($index)
198 198
     {
199
-        $this->index = (int)$index;
199
+        $this->index = (int) $index;
200 200
 
201 201
         return $this;
202 202
     }
Please login to merge, or discard this patch.
src/Header/CacheControlHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@
 block discarded – undo
416 416
     {
417 417
         ksort($this->directives);
418 418
         
419
-        return implode(',', array_map(function ($key, $value = null) {
419
+        return implode(',', array_map(function($key, $value = null) {
420 420
             
421 421
             if (null === $value) {
422 422
                 return $key;
Please login to merge, or discard this patch.
src/Header/Content/ContentTypeHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public static function fromString($headerLine)
62 62
     {
63
-        $headerLine = (string)$headerLine;
63
+        $headerLine = (string) $headerLine;
64 64
         $pos = strpos($headerLine, ':');
65 65
         $fieldName = substr($headerLine, 0, $pos);
66 66
         $fieldValue = null;
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function getFieldValue()
193 193
     {
194
-        $parameters = implode(';', array_map(function ($key, $value) {
194
+        $parameters = implode(';', array_map(function($key, $value) {
195 195
             if (null === $value) {
196 196
                 return $key;
197 197
             }
Please login to merge, or discard this patch.
src/Header/CookieHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
      */
174 174
     public function getFieldValue()
175 175
     {
176
-        return implode(';', array_map(function ($key, $value) {
176
+        return implode(';', array_map(function($key, $value) {
177 177
 
178 178
             return sprintf('%s=%s', $key, $value);
179 179
         }, array_keys($this->cookies), $this->cookies));
Please login to merge, or discard this patch.
src/Header/GenericHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         $max = PHP_INT_MAX;
104 104
 
105
-        return $deltaSeconds > $max ? $max : (int)$deltaSeconds;
105
+        return $deltaSeconds > $max ? $max : (int) $deltaSeconds;
106 106
     }
107 107
 
108 108
     /**
Please login to merge, or discard this patch.
src/HeaderBag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,8 +209,8 @@
 block discarded – undo
209 209
     {
210 210
         $this->sort();
211 211
 
212
-        return implode("\r\n", array_map(function (array $item) {
213
-            return implode("\r\n", array_map(function (HeaderInterface $header) {
212
+        return implode("\r\n", array_map(function(array $item) {
213
+            return implode("\r\n", array_map(function(HeaderInterface $header) {
214 214
                 return (string) $header;
215 215
             }, $item));
216 216
         }, $this->parameters));
Please login to merge, or discard this patch.