Skip to content

Commit

Permalink
Fixed issues raised by Scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Jan 14, 2016
1 parent 1169501 commit d715413
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 29 deletions.
3 changes: 1 addition & 2 deletions src/Commands/RemoveWildfireCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public function isEnabled()
*/
protected function configure()
{
$this
->setName('remove:wildfire')
$this->setName('remove:wildfire')
->setDescription('Removes Wildfire');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Common/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class File
{
/**
* @var File pointer
* @var resource
*/
protected $file;

Expand Down
44 changes: 22 additions & 22 deletions src/Common/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
*/
class Tools
{
/**
* Checks whether the header and footer file exists.
*
* @return bool
*/
public static function hasLayout()
{
return file_exists(APPPATH.'views/layout/header.php')
&& file_exists(APPPATH.'views/layout/footer.php');
}

/**
* "Ignites" the post installation process.
*
Expand Down Expand Up @@ -162,17 +173,6 @@ public static function isDoctrineEnabled()
return file_exists(APPPATH.'libraries/Doctrine.php');
}

/**
* Checks whether the header and footer file exists.
*
* @return bool
*/
public static function hasLayout()
{
return file_exists(APPPATH.'views/layout/header.php')
&& file_exists(APPPATH.'views/layout/footer.php');
}

/**
* Checks if Wildfire exists.
*
Expand All @@ -196,17 +196,6 @@ public static function stripTableSchema($table)
: $table;
}

/**
* Strips the table schema from the table name.
*
* @param string $table
* @return string
*/
public static function strip_table_schema($table)
{
return self::stripTableSchema($table);
}

/**
* Removes the specified library in the application.
*
Expand Down Expand Up @@ -257,4 +246,15 @@ public function removeLibrary($type)
? 'Wildfire is now successfully removed!'
: 'Doctrine ORM is now successfully removed!';
}

/**
* Strips the table schema from the table name.
*
* @param string $table
* @return string
*/
public static function strip_table_schema($table)
{
return self::stripTableSchema($table);
}
}
8 changes: 4 additions & 4 deletions src/Validator/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class Validator implements ValidatorInterface
protected $message = '';

/**
* @param string $isDoctrine
* @param string $isWildfire
* @param string $isCamel
* @param array $file
* @param boolean $isDoctrine
* @param boolean $isWildfire
* @param boolean $isCamel
* @param array $file
*/
public function __construct($isDoctrine, $isWildfire, $isCamel, $file)
{
Expand Down

0 comments on commit d715413

Please sign in to comment.