Skip to content

Commit 25d19d2

Browse files
committed
add .gitattributes, remove tabs
1 parent 4cdc6a9 commit 25d19d2

20 files changed

Lines changed: 52 additions & 18 deletions

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

tag/class/blockform.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function render()
5555
}
5656
$ret .= "</div>\n";
5757
$ret .= $this->renderValidationJS(true);
58+
5859
return $ret;
5960
}
6061
}

tag/class/formvalidatedinput.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ class TagFormValidatedInput extends XoopsFormText
4949
/**
5050
* Constructor
5151
*
52-
* @param string $caption Caption
53-
* @param string $name "name" attribute
54-
* @param int $size Size
55-
* @param int $maxlength Maximum length of text
56-
* @param string $value Initial text
52+
* @param string $caption Caption
53+
* @param string $name "name" attribute
54+
* @param int $size Size
55+
* @param int $maxlength Maximum length of text
56+
* @param string $value Initial text
5757
*/
5858
function __construct($caption, $name, $size, $maxlength, $value = '', $type='text')
5959
{
@@ -138,6 +138,7 @@ public function render()
138138
{
139139
$myClasses = $this->getClass();
140140
$classes = ($myClasses) ? " class='{$myClasses}'" : "";
141+
141142
return "<input type='" . $this->_type . "' name='" . $this->getName() . "' title='" . $this->getTitle() . "' id='" . $this->getName() . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $this->getValue() . "'" . $classes . $this->getExtra() . " />";
142143
}
143144
}

tag/class/tag.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ public function TagTagHandler(&$db)
8989
* Get tags linked to an item
9090
*
9191
* @access public
92-
* @param int $itemid item ID
93-
* @param int $modid module ID, optional
94-
* @param int $catid id of corresponding category, optional
95-
* @return array associative array of tags (id, term)
92+
* @param int $itemid item ID
93+
* @param int $modid module ID, optional
94+
* @param int $catid id of corresponding category, optional
95+
* @return array associative array of tags (id, term)
9696
*/
9797
public function getByItem($itemid, $modid = 0, $catid = 0)
9898
{
@@ -123,10 +123,10 @@ public function getByItem($itemid, $modid = 0, $catid = 0)
123123
* Update tags linked to an item
124124
*
125125
* @access public
126-
* @param array|string array of $tags or a single tag
127-
* @param int $itemid item ID
128-
* @param int $modid module ID or module dirname, optional
129-
* @param int $catid id of corresponding category, optional
126+
* @param array|string array of $tags or a single tag
127+
* @param int $itemid item ID
128+
* @param int $modid module ID or module dirname, optional
129+
* @param int $catid id of corresponding category, optional
130130
* @return bool
131131
*/
132132
public function updateByItem($tags, $itemid, $modid = "", $catid = 0)
@@ -319,10 +319,10 @@ public function update_stats($tag_id, $modid = 0, $catid = 0)
319319
* Get tags with item count
320320
*
321321
* @access public
322-
* @param object $criteria {@link Criteria}
323-
* @param boolean $fromStats fetch from tag-stats table
322+
* @param object $criteria {@link Criteria}
323+
* @param boolean $fromStats fetch from tag-stats table
324324
*
325-
* @return array associative array of tags (id, term, count)
325+
* @return array associative array of tags (id, term, count)
326326
*/
327327
public function &getByLimit($criteria = null, $fromStats = true)
328328
{
@@ -390,7 +390,7 @@ public function &getByLimit($criteria = null, $fromStats = true)
390390
* Get count of tags
391391
*
392392
* @access public
393-
* @param object $criteria {@link Criteria)
393+
* @param object $criteria {@link Criteria)
394394
*
395395
* @return integer count
396396
*/

tag/header.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* @version $Id: header.php 12898 2014-12-08 22:05:21Z zyspec $
2121
*/
2222

23-
2423
include_once '../../mainfile.php';
2524
include __DIR__ . "/include/vars.php";
2625
include_once __DIR__ . "/include/functions.php";

tag/include/action.module.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function xoops_module_pre_install_tag(&$module)
5252
}
5353
if (!$success) {
5454
$module->setErrors("This module requires XOOPS {$requiredVer}+ ({$currentVer} installed)");
55+
5556
return false;
5657
}
5758

@@ -62,6 +63,7 @@ function xoops_module_pre_install_tag(&$module)
6263
$reqVer = $module->getInfo('min_php');
6364
if ($verNum < $reqVer) {
6465
$module->setErrors( "The module requires PHP {$reqVer}+ ({$verNum} installed)");
66+
6567
return false;
6668
}
6769

tag/include/functions.ini.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function &tag_load_config()
6262
$moduleConfig = array_merge($moduleConfig, $customConfig);
6363
}
6464
}
65+
6566
return $moduleConfig;
6667
}
6768

tag/plugin/TDMDownloads.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function TDMDownloads_tag_iteminfo(&$items)
5353
}
5454
}
5555
unset($items_obj);
56+
5657
return true;
5758
}
5859

tag/plugin/article.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function article_tag_iteminfo(&$items)
6868
}
6969
}
7070
unset($items_obj);
71+
7172
return true;
7273
}
7374

tag/plugin/extgallery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function extgallery_tag_iteminfo(&$items)
5959
}
6060
}
6161
unset($items_obj);
62+
6263
return true;
6364
}
6465

0 commit comments

Comments
 (0)