Skip to content

Commit

Permalink
Conform code to PSR standards
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Sep 15, 2016
1 parent 88b2732 commit 7fab26d
Show file tree
Hide file tree
Showing 32 changed files with 134 additions and 134 deletions.
6 changes: 3 additions & 3 deletions tests/CombustorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function setUp()

/**
* Tests if the initial commands exists.
*
*
* @return void
*/
public function testCommandsExist()
Expand All @@ -60,7 +60,7 @@ public function testCommandsExist()

/**
* Gets the application with the loaded classes.
*
*
* @return \Symfony\Component\Console\Application
*/
protected function getApplication()
Expand All @@ -75,4 +75,4 @@ protected function getApplication()

return $application;
}
}
}
4 changes: 2 additions & 2 deletions tests/Commands/CreateControllerCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp()

/**
* Tests if the expected Wildfire controller is created.
*
*
* @return void
*/
public function testWildfireControllerIsCreated()
Expand Down Expand Up @@ -71,7 +71,7 @@ public function testWildfireControllerIsCreated()

/**
* Tests if the expected Doctrine controller is created.
*
*
* @return void
*/
public function testDoctrineControllerIsCreated()
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/CreateLayoutCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function setUp()

/**
* Tests if the expected file exists after executing the command.
*
*
* @return void
*/
public function testFilesExist()
Expand All @@ -57,7 +57,7 @@ public function testFilesExist()

/**
* Tests if the folder already exists.
*
*
* @return void
*/
public function testFolderExists()
Expand Down
6 changes: 3 additions & 3 deletions tests/Commands/CreateModelCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp()

/**
* Tests if the expected Wildfire model is created.
*
*
* @return void
*/
public function testWildfireModelIsCreated()
Expand Down Expand Up @@ -70,7 +70,7 @@ public function testWildfireModelIsCreated()

/**
* Tests if the expected Doctrine model is created.
*
*
* @return void
*/
public function testDoctrineModelIsCreated()
Expand Down Expand Up @@ -98,7 +98,7 @@ public function testDoctrineModelIsCreated()

/**
* Tests if command prompts an error if there is no library installed.
*
*
* @return void
*/
public function testNoLibraryInstalled()
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/CreateScaffoldCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function setUp()

/**
* Tests if the initial commands exists.
*
*
* @return void
*/
public function testCommandsExist()
Expand Down Expand Up @@ -96,7 +96,7 @@ public function testCommandsExist()

/**
* Gets the application with the loaded classes.
*
*
* @return \Symfony\Component\Console\Application
*/
protected function getApplication()
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/CreateViewCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp()

/**
* Tests if the expected views are created.
*
*
* @return void
*/
public function testViewsAreCreated()
Expand Down Expand Up @@ -72,7 +72,7 @@ public function testViewsAreCreated()

/**
* Tests if the command prompts an error if the folder already exists.
*
*
* @return void
*/
public function testFolderAlreadyExists()
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/InstallDoctrineCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function setUp()

/**
* Tests if the expected file exists after executing the command.
*
*
* @return void
*/
public function testFileExists()
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/InstallWildfireCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function setUp()

/**
* Tests if the expected file exists after executing the command.
*
*
* @return void
*/
public function testFileExists()
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/RemoveDoctrineCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function setUp()

/**
* Tests if the expected file exists after executing the command.
*
*
* @return void
*/
public function testFileExists()
Expand All @@ -59,7 +59,7 @@ public function testFileExists()

$file = $this->appPath . '/libraries/Doctrine.php';

$this->assertTrue( ! file_exists($file));
$this->assertTrue(! file_exists($file));

CodeIgniterHelper::setDefaults($this->appPath);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/RemoveWildfireCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function setUp()

/**
* Tests if the expected file exists after executing the command.
*
*
* @return void
*/
public function testFileExists()
Expand All @@ -59,7 +59,7 @@ public function testFileExists()

$file = $this->appPath . '/libraries/Wildfire.php';

$this->assertTrue( ! file_exists($file));
$this->assertTrue(! file_exists($file));

CodeIgniterHelper::setDefaults($this->appPath);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function setUp()

/**
* Tests Config::get.
*
*
* @return void
*/
public function testGet()
Expand All @@ -48,7 +48,7 @@ public function testGet()

/**
* Tests Config::set.
*
*
* @return void
*/
public function testSet()
Expand All @@ -75,4 +75,4 @@ public function testSet()

CodeIgniterHelper::setDefaults($this->appPath);
}
}
}
6 changes: 3 additions & 3 deletions tests/Fixture/CodeIgniterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

/**
* CodeIgniter Helper
*
*
* @package Combustor
* @author Rougin Royce Gutib <rougingutib@gmail.com>
*/
class CodeIgniterHelper
{
/**
* Sets default configurations.
*
*
* @param string $appPath
* @return void
*/
Expand Down Expand Up @@ -73,7 +73,7 @@ public static function setDefaults($appPath)

/**
* Deletes files in the specified directory.
*
*
* @param string $directory
* @param boolean $delete
* @return void
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixture/CommandBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

/**
* Command Builder
*
*
* @package Combustor
* @author Rougin Royce Gutib <rougingutib@gmail.com>
*/
class CommandBuilder
{
/**
* Injects a command with its dependencies.
*
*
* @param string $command
* @param string $app
* @param string $templates
Expand Down
2 changes: 1 addition & 1 deletion tests/TestApp/application/config/autoload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('BASEPATH') or exit('No direct script access allowed');

/*
| -------------------------------------------------------------------
Expand Down
44 changes: 22 additions & 22 deletions tests/TestApp/application/config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('BASEPATH') or exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -52,7 +52,7 @@
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';
$config['uri_protocol'] = 'REQUEST_URI';

/*
|--------------------------------------------------------------------------
Expand All @@ -76,7 +76,7 @@
| than english.
|
*/
$config['language'] = 'english';
$config['language'] = 'english';

/*
|--------------------------------------------------------------------------
Expand All @@ -100,7 +100,7 @@
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
$config['enable_hooks'] = false;

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -136,7 +136,7 @@
| Note: This will NOT disable or override the CodeIgniter-specific
| autoloading (application/config/autoload.php)
*/
$config['composer_autoload'] = FALSE;
$config['composer_autoload'] = false;

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -185,8 +185,8 @@
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['allow_get_array'] = true;
$config['enable_query_strings'] = false;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
Expand Down Expand Up @@ -301,7 +301,7 @@
| of query parameters.
|
*/
$config['cache_query_string'] = FALSE;
$config['cache_query_string'] = false;

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -370,10 +370,10 @@
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_save_path'] = null;
$config['sess_match_ip'] = false;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['sess_regenerate_destroy'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -390,11 +390,11 @@
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = false;
$config['cookie_httponly'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -408,7 +408,7 @@
| (usually \n) and Windows (\r\n).
|
*/
$config['standardize_newlines'] = FALSE;
$config['standardize_newlines'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -422,7 +422,7 @@
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = FALSE;
$config['global_xss_filtering'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -438,11 +438,11 @@
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = FALSE;
$config['csrf_protection'] = false;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_regenerate'] = true;
$config['csrf_exclude_uris'] = array();

/*
Expand All @@ -465,7 +465,7 @@
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
$config['compress_output'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -492,7 +492,7 @@
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = FALSE;
$config['rewrite_short_tags'] = false;

/*
|--------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 7fab26d

Please sign in to comment.