Skip to content

Commit

Permalink
Fix SensioLabs Insight major errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaillard committed Aug 25, 2016
1 parent 685661f commit 125d55b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/php/Gomoob/BinaryDriver/JavaDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function create(LoggerInterface $logger = null, $configuration = [

try {
return static::load($binaries, $logger, $configuration);
} catch (BinaryDriverExecutableNotFound $e) {
} catch (ExecutableNotFoundException $e) {
throw new ExecutableNotFoundException('Unable to load java', $e->getCode(), $e);
}
}
Expand Down
16 changes: 16 additions & 0 deletions src/main/php/Gomoob/Java/Io/UnsupportedEncodingException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* Copyright 2016 SARL GOMOOB. All rights reserved.
*/
namespace Gomoob\Java\Io;

/**
* The Character Encoding is not supported.
*
* @author Baptiste GAILLARD ([email protected])
*/
class UnsupportedEncodingException extends IOException
{
// Empty
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

/**
* gomoob/php-metadata-extractor
*
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file)
*/
*
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file)
*/
namespace Gomoob\MetadataExtractor\Imaging\Png;

use Gomoob\Java\Io\UnsupportedEncodingException;

use Gomoob\Java\Lang\IllegalArgumentException;

/**
Expand Down Expand Up @@ -208,7 +210,7 @@ public function hashCode()
}
}

/* FIXME: Will be fixed when static initializers will be added in PHP
/* TODO: Will be fixed when static initializers will be added in PHP
*
* ----------------------------------------------------------------------
* FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
Expand Down
2 changes: 0 additions & 2 deletions src/main/php/Gomoob/MetadataExtractor/Metadata/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class Tag
*/
public function __constrct($tagType, Directory $directory)
{
var_dump($tagType);

$this->tagType = $tagType;
$this->directory = $directory;
}
Expand Down

0 comments on commit 125d55b

Please sign in to comment.