Skip to content

Commit

Permalink
Respect PSR-4 file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Feb 10, 2021
1 parent 5908a1f commit 7b32821
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 7b32821

Please sign in to comment.