Skip to content

Commit

Permalink
Apply fixes from StyleCI (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
frkcn committed Mar 9, 2020
1 parent 7d42ce1 commit 2024296
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Zbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ class Zbar
*/
public function __construct($image)
{
if (!file_exists($image)) {
if (! file_exists($image)) {
throw UnableToOpen::noSuchFile($image);
}

$mimeType = mime_content_type($image);

if (!in_array($mimeType, $this->validFormats)) {
if (! in_array($mimeType, $this->validFormats)) {
throw InvalidFormat::invalidMimeType($mimeType);
}

Expand All @@ -58,7 +58,7 @@ public function scan()
{
$this->process->run();

if (!$this->process->isSuccessful()) {
if (! $this->process->isSuccessful()) {
throw new ProcessFailedException($this->process);
}

Expand Down

0 comments on commit 2024296

Please sign in to comment.