Skip to content

Commit

Permalink
MDL-51239 blog: Coding style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Dec 8, 2015
1 parent 0e32a56 commit f0899a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions blog/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @param int $tagid The id of the row in the tag table that identifies the RSS Feed
* @return string
*/
function blog_rss_get_url($contextid, $userid, $filtertype, $filterselect=0, $tagid =0) {
function blog_rss_get_url($contextid, $userid, $filtertype, $filterselect = 0, $tagid = 0) {
$componentname = 'blog';

$additionalargs = null;
Expand Down Expand Up @@ -70,7 +70,7 @@ function blog_rss_get_url($contextid, $userid, $filtertype, $filterselect=0, $ta
* @param int $tagid The id of the row in the tag table that identifies the RSS Feed
* @param string $tooltiptext The tooltip to be displayed with the link
*/
function blog_rss_print_link($context, $filtertype, $filterselect=0, $tagid =0, $tooltiptext='') {
function blog_rss_print_link($context, $filtertype, $filterselect = 0, $tagid = 0, $tooltiptext = '') {
global $CFG, $USER, $OUTPUT;

if (!isloggedin()) {
Expand All @@ -93,7 +93,7 @@ function blog_rss_print_link($context, $filtertype, $filterselect=0, $tagid =0,
* @param int $filterselect The id of the item defined by $filtertype
* @param int $tagid The id of the row in the tag table that identifies the RSS Feed
*/
function blog_rss_add_http_header($context, $title, $filtertype, $filterselect=0, $tagid =0) {
function blog_rss_add_http_header($context, $title, $filtertype, $filterselect = 0, $tagid = 0) {
global $PAGE, $USER, $CFG;

if (!isloggedin()) {
Expand Down Expand Up @@ -279,7 +279,7 @@ function blog_rss_get_feed($context, $args) {
* @param int $tagid The id of the row in the tag table that identifies the RSS Feed
* @return string
*/
function blog_rss_file_name($type, $id, $tagid =0) {
function blog_rss_file_name($type, $id, $tagid = 0) {
global $CFG;

if ($tagid) {
Expand All @@ -298,7 +298,7 @@ function blog_rss_file_name($type, $id, $tagid =0) {
* @param string $contents The contents of the RSS Feed file
* @return bool whether the save was successful or not
*/
function blog_rss_save_file($type, $id, $tagid =0, $contents='') {
function blog_rss_save_file($type, $id, $tagid = 0, $contents = '') {
global $CFG;

$status = true;
Expand Down
6 changes: 5 additions & 1 deletion blog/tests/bloglib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ protected function setUp() {
$group->id = $DB->insert_record('groups', $group);

// Create default user.
$user = $this->getDataGenerator()->create_user(array('username' => 'testuser', 'firstname' => 'Jimmy', 'lastname' => 'Kinnon'));
$user = $this->getDataGenerator()->create_user(array(
'username' => 'testuser',
'firstname' => 'Jimmy',
'lastname' => 'Kinnon'
));

// Create default tag.
$tag = new stdClass();
Expand Down

0 comments on commit f0899a2

Please sign in to comment.