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

Commit

Permalink
Merge d6955e7 into 1e66b9d
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolesen committed Apr 21, 2016
2 parents 1e66b9d + d6955e7 commit a164084
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion autoload.php
Expand Up @@ -33,4 +33,4 @@
include_once realpath($load);
}
}
});
});
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -25,7 +25,6 @@
"php": ">=5.0.0"
},
"require-dev" : {
"php": ">=5.5.0",
"ext-gd": "*",
"phpunit/phpunit": "4.4.*",
"squizlabs/php_codesniffer": "2.*",
Expand Down
1 change: 0 additions & 1 deletion examples/gps.php
Expand Up @@ -36,7 +36,6 @@
*/
require_once '../autoload.php';

use lsolesen\pel\PelDataWindow;
use lsolesen\pel\PelJpeg;
use lsolesen\pel\PelTiff;

Expand Down
2 changes: 0 additions & 2 deletions examples/resize.php
Expand Up @@ -38,9 +38,7 @@ function println($args)
/* Load the required PEL files for handling JPEG images. */
require_once '../autoload.php';

use lsolesen\pel\PelDataWindow;
use lsolesen\pel\PelJpeg;
use lsolesen\pel\PelTiff;

/*
* Store the name of the script in $prog and remove this first part of
Expand Down
2 changes: 1 addition & 1 deletion makepackagexml.php
Expand Up @@ -78,7 +78,7 @@

$pfm->generateContents();

if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
if (isset($_GET['make']) || (isset($_SERVER['argv']) && $_SERVER['argv'][1] == 'make')) {
if ($pfm->writePackageFile()) {
exit('package created');
}
Expand Down
2 changes: 0 additions & 2 deletions src/PelEntryTime.php
Expand Up @@ -206,8 +206,6 @@ public function getValue($type = self::UNIX_TIMESTAMP)
*/
public function setValue($timestamp, $type = self::UNIX_TIMESTAMP)
{
// if (empty($timestamp))
// debug_print_backtrace();
switch ($type) {
case self::UNIX_TIMESTAMP:
$this->day_count = $this->convertUnixToJd($timestamp);
Expand Down
2 changes: 0 additions & 2 deletions test/Bug3017880Test.php
Expand Up @@ -24,7 +24,6 @@
*/

use lsolesen\pel\PelJpeg;
use lsolesen\pel\PelEntryTime;
use lsolesen\pel\PelExif;
use lsolesen\pel\PelTiff;
use lsolesen\pel\PelIfd;
Expand Down Expand Up @@ -74,7 +73,6 @@ function testThisDoesNotWorkAsExpected()

if ($resave_file == 1 && ! file_put_contents($filename, $jpeg->getBytes())) {
// if it was okay to resave the file, but it did not save correctly
$success = 0;
}
} catch (Exception $e) {
$this->fail('Test should not throw an exception');
Expand Down
8 changes: 6 additions & 2 deletions test/ConvertTest.php
Expand Up @@ -71,7 +71,9 @@ function testLongBig()
function testSLongLittle()
{
// TODO: Does not work on 64bit systems!
return;
$this->markTestIncomplete(
'Does not work on 64bit systems!'
);
$o = PelConvert::LITTLE_ENDIAN;

/*
Expand All @@ -98,7 +100,9 @@ function testSLongLittle()
function testSLongBig()
{
// TODO: Does not work on 64bit systems
return;
$this->markTestIncomplete(
'Does not work on 64bit systems!'
);

$o = PelConvert::BIG_ENDIAN;

Expand Down
1 change: 0 additions & 1 deletion test/NumberTest.php
Expand Up @@ -32,7 +32,6 @@
use \lsolesen\pel\PelEntrySLong;
use \lsolesen\pel\PelEntryRational;
use \lsolesen\pel\PelEntrySRational;
use \lsolesen\pel\PelEntryUndefined;
use \lsolesen\pel\PelOverflowException;

abstract class NumberTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit a164084

Please sign in to comment.