Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Reformatted, update codesniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
web committed Jan 4, 2017
1 parent dfd281a commit eb3137d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"require-dev" : {
"ext-gd": "*",
"phpunit/phpunit": "4.4.*",
"squizlabs/php_codesniffer": "2.*",
"squizlabs/php_codesniffer": "3.0.0RC2",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
Expand Down
8 changes: 6 additions & 2 deletions src/PelDataWindow.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,11 @@ public function strcmp($offset, $str)
*/
public function __toString()
{
return Pel::fmt('DataWindow: %d bytes in [%d, %d] of %d bytes', $this->size, $this->start,
$this->start + $this->size, strlen($this->data));
return Pel::fmt(
'DataWindow: %d bytes in [%d, %d] of %d bytes',
$this->size,
$this->start,
$this->start + $this->size,
strlen($this->data));
}
}
8 changes: 6 additions & 2 deletions src/PelIfd.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ public function load(PelDataWindow $d, $offset)
for ($i = 0; $i < $n; $i ++) {
// TODO: increment window start instead of using offsets.
$tag = $d->getShort($offset + 12 * $i);
Pel::debug('Loading entry with tag 0x%04X: %s (%d of %d)...', $tag, PelTag::getName($this->type, $tag),
$i + 1, $n);
Pel::debug(
'Loading entry with tag 0x%04X: %s (%d of %d)...',
$tag,
PelTag::getName($this->type, $tag),
$i + 1,
$n);

switch ($tag) {
case PelTag::EXIF_IFD_POINTER:
Expand Down

0 comments on commit eb3137d

Please sign in to comment.