Passed
Push — master ( e76473...8d6fb4 )
by Sebastian
09:39
created
src/AttributeCollection/Filtering.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,12 +56,12 @@
 block discarded – undo
56 56
      */
57 57
     public static function value2string($value) : string
58 58
     {
59
-        if($value === true)
59
+        if ($value === true)
60 60
         {
61 61
             return 'true';
62 62
         }
63 63
 
64
-        if($value === false)
64
+        if ($value === false)
65 65
         {
66 66
             return 'false';
67 67
         }
Please login to merge, or discard this patch.
src/Interfaces/AttributableInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @param bool $enabled
54 54
      * @return $this
55 55
      */
56
-    public function prop(string $name, bool $enabled=true) : self;
56
+    public function prop(string $name, bool $enabled = true) : self;
57 57
 
58 58
     /**
59 59
      * @param string $name
Please login to merge, or discard this patch.
src/Interfaces/Optionable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param mixed $default The default value to return if the option does not exist.
46 46
      * @return mixed
47 47
      */
48
-    public function getOption(string $name, $default=null);
48
+    public function getOption(string $name, $default = null);
49 49
 
50 50
     /**
51 51
      * @param string $name
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getArrayOption(string $name) : array;
55 55
 
56
-    public function getIntOption(string $name, int $default=0) : int;
56
+    public function getIntOption(string $name, int $default = 0) : int;
57 57
 
58
-    public function getBoolOption(string $name, bool $default=false) : bool;
58
+    public function getBoolOption(string $name, bool $default = false) : bool;
59 59
 
60
-    public function getStringOption(string $name, string $default='') : string;
60
+    public function getStringOption(string $name, string $default = '') : string;
61 61
 
62 62
     /**
63 63
      * Sets a collection of options at once, from an
Please login to merge, or discard this patch.
src/Request/URLComparer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     
82 82
     public function addLimitParam(string $name) : Request_URLComparer
83 83
     {
84
-        if(!in_array($name, $this->limitParams, true))
84
+        if (!in_array($name, $this->limitParams, true))
85 85
         {
86 86
             $this->limitParams[] = $name;
87 87
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function addLimitParams(array $names) : Request_URLComparer
97 97
     {
98
-        foreach($names as $name)
98
+        foreach ($names as $name)
99 99
         {
100 100
             $this->addLimitParam($name);
101 101
         }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         return $this;
104 104
     }
105 105
     
106
-    public function setIgnoreFragment(bool $ignore=true) : Request_URLComparer
106
+    public function setIgnoreFragment(bool $ignore = true) : Request_URLComparer
107 107
     {
108 108
         $this->ignoreFragment = $ignore;
109 109
         return $this;
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
             'query' 
127 127
         );
128 128
         
129
-        if(!$this->ignoreFragment) {
129
+        if (!$this->ignoreFragment) {
130 130
             $keys[] = 'fragment';
131 131
         }
132 132
         
133
-        foreach($keys as $key)
133
+        foreach ($keys as $key)
134 134
         {
135
-            if(!$this->compareKey($key)) {
135
+            if (!$this->compareKey($key)) {
136 136
                 return false;
137 137
             }
138 138
         }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         
148 148
         $filter = 'filter_'.$key;
149 149
         
150
-        if(method_exists($this, $filter)) 
150
+        if (method_exists($this, $filter)) 
151 151
         {
152 152
             $sVal = $this->$filter($sVal);
153 153
             $tVal = $this->$filter($tVal);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     protected function filter_path(string $path) : string
160 160
     {
161 161
         // fix double slashes in URLs
162
-        while(strpos($path, '//') !== false)
162
+        while (strpos($path, '//') !== false)
163 163
         {
164 164
             $path = str_replace('//', '/', $path);
165 165
         }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     
170 170
     protected function filter_query(string $query) : string
171 171
     {
172
-        if(empty($query)) {
172
+        if (empty($query)) {
173 173
             return '';
174 174
         }
175 175
         
@@ -188,15 +188,15 @@  discard block
 block discarded – undo
188 188
      */
189 189
     protected function limitParams(array $params) : array
190 190
     {
191
-        if(empty($this->limitParams)) {
191
+        if (empty($this->limitParams)) {
192 192
             return $params;
193 193
         }
194 194
         
195 195
         $keep = array();
196 196
         
197
-        foreach($this->limitParams as $name)
197
+        foreach ($this->limitParams as $name)
198 198
         {
199
-            if(isset($params[$name])) {
199
+            if (isset($params[$name])) {
200 200
                 $keep[$name] = $params[$name];
201 201
             }
202 202
         }
Please login to merge, or discard this patch.