Skip to content

Commit

Permalink
Merge pull request #207 from BenMorel/psr4
Browse files Browse the repository at this point in the history
Respect PSR-4 file structure
  • Loading branch information
thiagoalessio authored Feb 10, 2021
2 parents 5908a1f + 7b32821 commit 92339d8
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 8 deletions.
7 changes: 7 additions & 0 deletions src/FeatureNotAvailableException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace thiagoalessio\TesseractOCR;

class FeatureNotAvailableException extends TesseractOcrException
{
}
8 changes: 0 additions & 8 deletions src/FriendlyErrors.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
<?php namespace thiagoalessio\TesseractOCR;

abstract class TesseractOcrException extends \Exception {}

class ImageNotFoundException extends TesseractOcrException {}
class TesseractNotFoundException extends TesseractOcrException {}
class UnsuccessfulCommandException extends TesseractOcrException {}
class FeatureNotAvailableException extends TesseractOcrException {}
class NoWritePermissionsForOutputFile extends TesseractOcrException {}

class FriendlyErrors
{
public static function checkImagePath($image)
Expand Down
7 changes: 7 additions & 0 deletions src/ImageNotFoundException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace thiagoalessio\TesseractOCR;

class ImageNotFoundException extends TesseractOcrException
{
}
7 changes: 7 additions & 0 deletions src/NoWritePermissionsForOutputFile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace thiagoalessio\TesseractOCR;

class NoWritePermissionsForOutputFile extends TesseractOcrException
{
}
7 changes: 7 additions & 0 deletions src/TesseractNotFoundException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace thiagoalessio\TesseractOCR;

class TesseractNotFoundException extends TesseractOcrException
{
}
7 changes: 7 additions & 0 deletions src/TesseractOcrException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace thiagoalessio\TesseractOCR;

abstract class TesseractOcrException extends \Exception
{
}
7 changes: 7 additions & 0 deletions src/UnsuccessfulCommandException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace thiagoalessio\TesseractOCR;

class UnsuccessfulCommandException extends TesseractOcrException
{
}

0 comments on commit 92339d8

Please sign in to comment.