@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | throw new FilesException($targetFileExistsErr); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - return $this->dataOverwriteCopy( $source, $target, $unlinkErr, $copyErr); |
|
| 83 | + return $this->dataOverwriteCopy($source, $target, $unlinkErr, $copyErr); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | throw new FilesException($targetFileExistsErr); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - return $this->dataOverwriteRename( $source, $target, $unlinkErr, $copyErr); |
|
| 134 | + return $this->dataOverwriteRename($source, $target, $unlinkErr, $copyErr); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $this->assertEquals(static::TEST_STRING, $lib->get(['testtree', 'testimage.png'])); |
| 32 | 32 | |
| 33 | 33 | $this->assertTrue($lib->copy('testimage.png', ['testtree'], ['dumptree'])); |
| 34 | - $this->assertTrue($lib->move('testimage.png', ['testtree'], ['dumptree'] ,true)); |
|
| 34 | + $this->assertTrue($lib->move('testimage.png', ['testtree'], ['dumptree'], true)); |
|
| 35 | 35 | $this->assertFalse($lib->isHere(['testtree', 'testimage.png'])); |
| 36 | 36 | $this->assertTrue($lib->isHere(['dumptree', 'testimage.png'])); |
| 37 | 37 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->assertTrue($lib->copy('testimage.png', ['testtree'], ['dumptree'])); |
| 33 | 33 | $this->assertEquals(static::TEST_STRING, $lib->get(['dumptree', 'testimage.png'])); |
| 34 | 34 | |
| 35 | - $this->assertTrue($lib->move('testimage.png', ['testtree'], ['dumptree'] ,true)); |
|
| 35 | + $this->assertTrue($lib->move('testimage.png', ['testtree'], ['dumptree'], true)); |
|
| 36 | 36 | $this->assertFalse($lib->isHere(['testtree', 'testimage.png'])); |
| 37 | 37 | $this->assertEmpty($lib->get(['testtree', 'testimage.png'])); |
| 38 | 38 | |
@@ -53,10 +53,10 @@ |
||
| 53 | 53 | public function testFreeName(): void |
| 54 | 54 | { |
| 55 | 55 | $memory = new Target\Memory(); |
| 56 | - $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'testimage.png' , static::TEST_STRING); |
|
| 57 | - $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'tstimg.png' , static::TEST_STRING); |
|
| 58 | - $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'tstimg_0.png' , static::TEST_STRING); |
|
| 59 | - $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'tstimg_1.png' , static::TEST_STRING); |
|
| 56 | + $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'testimage.png', static::TEST_STRING); |
|
| 57 | + $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'tstimg.png', static::TEST_STRING); |
|
| 58 | + $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'tstimg_0.png', static::TEST_STRING); |
|
| 59 | + $memory->save(DIRECTORY_SEPARATOR . 'testtree' . DIRECTORY_SEPARATOR . 'tstimg_1.png', static::TEST_STRING); |
|
| 60 | 60 | |
| 61 | 61 | $lib = $this->getLib([], $memory); |
| 62 | 62 | $this->assertEquals('solo.png', $lib->findFreeName(['testtree'], 'solo.png')); |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | [20, 20, 35, 35, 20, 20], // sizes inside the limit |
| 33 | 33 | [35, 35, 20, 20, 20, 20], // smaller! |
| 34 | 34 | [55, 20, 30, 50, 30, 10], // one size larger - new sizes by ratio |
| 35 | - [80, 15, 40, 40, 40, 7], |
|
| 36 | - [15, 80, 40, 40, 7, 40], |
|
| 35 | + [80, 15, 40, 40, 40, 7], |
|
| 36 | + [15, 80, 40, 40, 7, 40], |
|
| 37 | 37 | ]; |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $tgt0 = $this->targetPath() . DIRECTORY_SEPARATOR . 'tstimg.png'; |
| 101 | 101 | copy($src, $tgt0); // directly |
| 102 | 102 | $conf = new Graphics\ImageConfig(); |
| 103 | - $conf->setData(['max_width' => 120, 'max_height' => 80,]); |
|
| 103 | + $conf->setData(['max_width' => 120, 'max_height' => 80, ]); |
|
| 104 | 104 | $lib = $this->getGraphics(); |
| 105 | 105 | $lib->setSizes($conf); |
| 106 | 106 | $lib->resize($tgt0, [$tgt0]); |