Skip to content

Commit

Permalink
some automatic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Aug 7, 2023
1 parent 9094886 commit f6d3559
Show file tree
Hide file tree
Showing 10 changed files with 354 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.* export-ignore
/_test export-ignore
4 changes: 2 additions & 2 deletions Grok.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct($reference, $baseUrl = 'https://codesearch.dokuwiki.
*/
public function getSearchUrl()
{
if($this->def === '' && $this->path === '') return $this->baseUrl;
if ($this->def === '' && $this->path === '') return $this->baseUrl;

$url = $this->baseUrl . '/search?';
$param = [
Expand Down Expand Up @@ -62,7 +62,7 @@ public function getAPIUrl()
*/
public function getResultCount()
{
if($this->def === '' && $this->path === '') return 0;
if ($this->def === '' && $this->path === '') return 0;

$http = new DokuHTTPClient();
$http->timeout = 5;
Expand Down
2 changes: 1 addition & 1 deletion Heuristics.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function checkNamespace($reference)
$reference = array_pop($parts); // last part may be more than a class

// our classes are in inc
if($parts[0] == 'dokuwiki') $parts[0] = 'inc';
if ($parts[0] == 'dokuwiki') $parts[0] = 'inc';

$this->path = join(' ', $parts);

Expand Down
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _test/GrokTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class GrokTest extends DokuWikiTest
{
/**
* @return \string[][]
* @return string[][]
* @see testResultCount
*/
public function provideData()
Expand Down
2 changes: 1 addition & 1 deletion _test/HeuristicsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class HeuristicsTest extends DokuWikiTest
{
/**
* @return \string[][]
* @return string[][]
* @see testHeuristics
*/
public function provideData()
Expand Down
2 changes: 1 addition & 1 deletion conf/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
* @author Andreas Gohr <[email protected]>
*/

$conf['grokbaseurl'] = 'https://codesearch.dokuwiki.org';
$conf['grokbaseurl'] = 'https://codesearch.dokuwiki.org';

5 changes: 5 additions & 0 deletions deleted.files
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This is a list of files that were present in previous releases
# but were removed later. They should not exist in your installation.
phpxref-0.7-javascriptfix.patch
style.css
xref.png
4 changes: 2 additions & 2 deletions style.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.dokuwiki a.plugin_xref {
background-image: url(xref.svg);
background-image: url(xref.svg);
}

.dokuwiki a.plugin_xref_err {
border-bottom: dashed 1px __missing__ !important;
border-bottom: dashed 1px __missing__ !important;
}

1 change: 0 additions & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <[email protected]>
*/

class syntax_plugin_xref extends DokuWiki_Syntax_Plugin
{

Expand Down

0 comments on commit f6d3559

Please sign in to comment.