Skip to content

Commit

Permalink
fixed scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Apr 7, 2016
1 parent 59bbea8 commit 24d81b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/base/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

/**
* A file to be processed with hidev.
*
* @property string $minimalPath path to minimal example file
*/
class File extends \yii\base\Object
{
Expand Down Expand Up @@ -220,7 +222,7 @@ public function write($content)

public function load()
{
return $this->data = $this->getHandler()->parsePath($this->getPath(), $this->minimalPath);
return $this->data = $this->getHandler()->parsePath($this->getPath(), $this->getMinimalPath());
}

public function read()
Expand Down Expand Up @@ -258,7 +260,7 @@ public function exists()

public function find(array $types = [])
{
if (!$types) {
if (empty($types)) {
$types = $this->types;
}
foreach ($types as $type) {
Expand Down

0 comments on commit 24d81b7

Please sign in to comment.