@@ -136,9 +136,9 @@ |
||
| 136 | 136 | */ |
| 137 | 137 | protected function createPlaceholder($name, &$blockID) |
| 138 | 138 | { |
| 139 | - $blockID = $name . '-' . $this->supervisor->uniquePlaceholder(); |
|
| 139 | + $blockID = $name.'-'.$this->supervisor->uniquePlaceholder(); |
|
| 140 | 140 | |
| 141 | 141 | //Short block declaration syntax |
| 142 | - return '${' . $blockID . '}'; |
|
| 142 | + return '${'.$blockID.'}'; |
|
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | \ No newline at end of file |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $prefix = isset($attributes['namespace']) |
| 151 | - ? $attributes['namespace'] . ':' |
|
| 151 | + ? $attributes['namespace'].':' |
|
| 152 | 152 | : $attributes['prefix']; |
| 153 | 153 | |
| 154 | 154 | return new Prefixer($prefix, $path); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | continue; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - $pattern = '/^' . str_replace('*', '.+', $pattern) . '/i'; |
|
| 83 | + $pattern = '/^'.str_replace('*', '.+', $pattern).'/i'; |
|
| 84 | 84 | |
| 85 | 85 | if (preg_match($pattern, $name)) { |
| 86 | 86 | unset($result[$name]); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | if ($position == self::POSITION_IN_TAG) { |
| 132 | - $buffer = '<' . $buffer; |
|
| 132 | + $buffer = '<'.$buffer; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | //Handling previous token |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | //Checking for invalid characters in tag name or arguments |
| 169 | 169 | if ($position == self::POSITION_IN_TAG) { |
| 170 | 170 | if (!preg_match('/[a-z0-9 \._\-="\':\/\r\n\t]/i', $char)) { |
| 171 | - $buffer = '<' . $buffer; |
|
| 171 | + $buffer = '<'.$buffer; |
|
| 172 | 172 | $position = self::POSITION_PLAIN_TEXT; |
| 173 | 173 | } |
| 174 | 174 | } |
@@ -202,18 +202,18 @@ discard block |
||
| 202 | 202 | continue; |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | - $attributes[] = $attribute . '="' . $value . '"'; |
|
| 205 | + $attributes[] = $attribute.'="'.$value.'"'; |
|
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | if (!empty($attributes)) { |
| 209 | - $result .= ' ' . join(' ', $attributes); |
|
| 209 | + $result .= ' '.join(' ', $attributes); |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | if ($token[HtmlTokenizer::TOKEN_TYPE] == HtmlTokenizer::TAG_SHORT) { |
| 213 | 213 | $result .= '/'; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | - return '<' . $result . '>'; |
|
| 216 | + return '<'.$result.'>'; |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | $token = [ |
| 228 | 228 | self::TOKEN_NAME => '', |
| 229 | 229 | self::TOKEN_TYPE => self::TAG_OPEN, |
| 230 | - self::TOKEN_CONTENT => '<' . ($content = $this->repairPHP($content)) . '>', |
|
| 230 | + self::TOKEN_CONTENT => '<'.($content = $this->repairPHP($content)).'>', |
|
| 231 | 231 | self::TOKEN_ATTRIBUTES => [] |
| 232 | 232 | ]; |
| 233 | 233 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | //Pre-packing collections |
| 177 | 177 | foreach ($this->getCollections() as $collection) { |
| 178 | - $name = $collection->getDatabase() . '/' . $collection->getName(); |
|
| 178 | + $name = $collection->getDatabase().'/'.$collection->getName(); |
|
| 179 | 179 | $result[$name] = $collection->getParent()->getName(); |
| 180 | 180 | } |
| 181 | 181 | |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | //Getting fully specified collection name (with specified db) |
| 294 | - $collection = $document->getDatabase() . '/' . $document->getCollection(); |
|
| 294 | + $collection = $document->getDatabase().'/'.$document->getCollection(); |
|
| 295 | 295 | if (isset($this->collections[$collection])) { |
| 296 | 296 | //Already described by parent |
| 297 | 297 | continue; |
@@ -317,7 +317,7 @@ |
||
| 317 | 317 | if ( |
| 318 | 318 | is_array($type) |
| 319 | 319 | && is_scalar($type[0]) |
| 320 | - && $filter = $this->builder->getMutators('array::' . $type[0]) |
|
| 320 | + && $filter = $this->builder->getMutators('array::'.$type[0]) |
|
| 321 | 321 | ) { |
| 322 | 322 | //Mutator associated to array with specified type |
| 323 | 323 | $resolved += $filter; |
@@ -348,7 +348,7 @@ |
||
| 348 | 348 | |
| 349 | 349 | $atomics = array_merge( |
| 350 | 350 | $atomics, |
| 351 | - $document->buildAtomics(($container ? $container . '.' : '') . $offset) |
|
| 351 | + $document->buildAtomics(($container ? $container.'.' : '').$offset) |
|
| 352 | 352 | ); |
| 353 | 353 | } |
| 354 | 354 | } |
@@ -190,11 +190,11 @@ |
||
| 190 | 190 | protected function getPath(BucketInterface $bucket, $name) |
| 191 | 191 | { |
| 192 | 192 | if (empty($this->options['home'])) { |
| 193 | - return $this->files->normalizePath($bucket->getOption('directory') . $name); |
|
| 193 | + return $this->files->normalizePath($bucket->getOption('directory').$name); |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | return $this->files->normalizePath( |
| 197 | - $this->options['home'] . '/' . $bucket->getOption('directory') . $name |
|
| 197 | + $this->options['home'].'/'.$bucket->getOption('directory').$name |
|
| 198 | 198 | ); |
| 199 | 199 | } |
| 200 | 200 | } |
| 201 | 201 | \ No newline at end of file |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | if ($this->options['cache']) { |
| 85 | 85 | $this->authToken = $this->store->get( |
| 86 | - $this->options['username'] . '@rackspace-token' |
|
| 86 | + $this->options['username'].'@rackspace-token' |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | $this->regions = (array)$this->store->get( |
| 90 | - $this->options['username'] . '@rackspace-regions' |
|
| 90 | + $this->options['username'].'@rackspace-regions' |
|
| 91 | 91 | ); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | { |
| 226 | 226 | try { |
| 227 | 227 | $request = $this->buildRequest('PUT', $bucket, $newname, [ |
| 228 | - 'X-Copy-From' => '/' . $bucket->getOption('container') . '/' . rawurlencode($oldname), |
|
| 228 | + 'X-Copy-From' => '/'.$bucket->getOption('container').'/'.rawurlencode($oldname), |
|
| 229 | 229 | 'Content-Length' => 0 |
| 230 | 230 | ]); |
| 231 | 231 | |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | |
| 263 | 263 | try { |
| 264 | 264 | $request = $this->buildRequest('PUT', $destination, $name, [ |
| 265 | - 'X-Copy-From' => '/' . $bucket->getOPtion('container') . '/' . rawurlencode($name), |
|
| 265 | + 'X-Copy-From' => '/'.$bucket->getOPtion('container').'/'.rawurlencode($name), |
|
| 266 | 266 | 'Content-Length' => 0 |
| 267 | 267 | ]); |
| 268 | 268 | |
@@ -339,13 +339,13 @@ discard block |
||
| 339 | 339 | |
| 340 | 340 | if ($this->options['cache']) { |
| 341 | 341 | $this->store->set( |
| 342 | - $this->options['username'] . '@rackspace-token', |
|
| 342 | + $this->options['username'].'@rackspace-token', |
|
| 343 | 343 | $this->authToken, |
| 344 | 344 | $this->options['lifetime'] |
| 345 | 345 | ); |
| 346 | 346 | |
| 347 | 347 | $this->store->set( |
| 348 | - $this->options['username'] . '@rackspace-regions', |
|
| 348 | + $this->options['username'].'@rackspace-regions', |
|
| 349 | 349 | $this->regions, |
| 350 | 350 | $this->options['lifetime'] |
| 351 | 351 | ); |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | return new Uri( |
| 386 | - $this->regions[$region] . '/' . $bucket->getOption('container') . '/' . rawurlencode($name) |
|
| 386 | + $this->regions[$region].'/'.$bucket->getOption('container').'/'.rawurlencode($name) |
|
| 387 | 387 | ); |
| 388 | 388 | } |
| 389 | 389 | |