Permalink
Browse files

[CS Fix] Consistent coding-style of concatenation operator usage

  • Loading branch information...
1 parent cb85532 commit b518a3100b09b5de4b4750e9415c00ad1bd77b1e @canni canni committed Apr 2, 2013
@@ -68,17 +68,17 @@ public function format(MessageCatalogue $messages, $domain = 'messages')
$resources .= pack('V', $this->getPosition($data));
$data .= pack('V', strlen($target))
- . mb_convert_encoding($target."\0", 'UTF-16LE', 'UTF-8')
- . $this->writePadding($data)
+ .mb_convert_encoding($target."\0", 'UTF-16LE', 'UTF-8')
+ .$this->writePadding($data)
;
}
$resOffset = $this->getPosition($data);
$data .= pack('v', count($messages))
- . $indexes
- . $this->writePadding($data)
- . $resources
+ .$indexes
+ .$this->writePadding($data)
+ .$resources
;
$bundleTop = $this->getPosition($data);
@@ -103,8 +103,8 @@ public function format(MessageCatalogue $messages, $domain = 'messages')
);
$output = $header
- . $root
- . $data;
+ .$root
+ .$data;
return $output;
}
@@ -52,16 +52,16 @@ public function format(MessageCatalogue $messages, $domain = 'messages')
foreach ($offsets as $offset) {
$sourceOffsets .= $this->writeLong($offset[1])
- . $this->writeLong($offset[0] + $sourcesStart);
+ .$this->writeLong($offset[0] + $sourcesStart);
$targetOffsets .= $this->writeLong($offset[3])
- . $this->writeLong($offset[2] + $sourcesStart + $sourcesSize);
+ .$this->writeLong($offset[2] + $sourcesStart + $sourcesSize);
}
$output = implode(array_map(array($this, 'writeLong'), $header))
- . $sourceOffsets
- . $targetOffsets
- . $sources
- . $targets
+ .$sourceOffsets
+ .$targetOffsets
+ .$sources
+ .$targets
;
return $output;
@@ -221,8 +221,8 @@
the XML namespace, e.g. as follows:
</p>
<pre>
- &lt;schema . . .>
- . . .
+ &lt;schema.. .>
+ .. .
&lt;import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
</pre>
@@ -239,8 +239,8 @@
group defined below will have the desired effect, e.g.
</p>
<pre>
- &lt;type . . .>
- . . .
+ &lt;type.. .>
+ .. .
&lt;attributeGroup ref="xml:specialAttrs"/>
</pre>
<p>
View
@@ -15,7 +15,7 @@ translated strings from these including support for pluralization.
'Hello World!' => 'Bonjour',
), 'fr');
- echo $translator->trans('Hello World!') . "\n";
+ echo $translator->trans('Hello World!')."\n";
Resources
---------
@@ -40,7 +40,7 @@ public function testDatEnglishLoad()
{
// bundled resource is build using pkgdata command which at least in ICU 4.2 comes in extremely! buggy form
// you must specify an temporary build directory which is not the same as current directory and
- // MUST reside on the same partition. pkgdata -p resources -T /srv -d . packagelist.txt
+ // MUST reside on the same partition. pkgdata -p resources -T /srv -d.packagelist.txt
$loader = new IcuDatFileLoader();
$resource = __DIR__.'/../fixtures/resourcebundle/dat/resources';
$catalogue = $loader->load($resource, 'en', 'domain1');

0 comments on commit b518a31

Please sign in to comment.