Content-Length: 301896 | pFad | http://github.com/akrherz/iem/commit/b4d21b90ff3d13268b0d532277b3a90c8a0a2351

55 ci: attempt deepsource appeasement · akrherz/iem@b4d21b9 · GitHub
Skip to content

Commit

Permalink
ci: attempt deepsource appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jul 24, 2024
1 parent f918d70 commit b4d21b9
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/sites/networks.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function pretty_date($val, $fmt = "M d, Y")
$fn = "{$shpFname}.{$suff}";
if (is_file($fn)) unlink($fn);
}
$shpFile = new shapeFileObj($shpFname, MS_SHAPEFILE_POINT);
$shpFile = new shapeFileObj($shpFname, mapscript::MS_SHAPEFILE_POINT);
$dbfFile = dbase_create($shpFname . ".dbf", array(
array("ID", "C", 6),
array("NAME", "C", 50),
Expand Down
64 changes: 64 additions & 0 deletions include/dbase.stub.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php

/** @generate-function-entries */

/**
* @return resource|false
*/
function dbase_open(string $path, int $mode) {}

/**
* @param resource $database
*/
function dbase_close($database): bool {}

/**
* @param resource $database
*/
function dbase_add_record($database, array $data): bool {}

/**
* @param resource $database
*/
function dbase_delete_record($database, int $number): bool {}

/**
* @param resource $database
*/
function dbase_replace_record($database, array $data, int $number): bool {}

/**
* @param resource $database
*/
function dbase_numrecords($database): int {}

/**
* @param resource $database
*/
function dbase_numfields($database): int {}

/**
* @param resource $database
*/
function dbase_pack($database): bool {}

/**
* @param resource $database
*/
function dbase_get_record($database, int $number): array|false {}

/**
* @param resource $database
*/
function dbase_get_record_with_names($database, int $number): array|false {}

/**
* @return resource|false
*/
function dbase_create(string $path, array $fields, int $type = DBASE_TYPE_DBASE) {}

/**
* @param resource $database
*/
function dbase_get_header_info($database): array {}

2 changes: 1 addition & 1 deletion include/myview.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MyView {
public int $twitter_video_width = 0;
public int $twitter_video_height = 0;

public function __construct($template_dir = null) {
public function __construct() {
$this->template_dir = dirname(__FILE__).'/templates/';
}
public function render($template_file) {
Expand Down

0 comments on commit b4d21b9

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/akrherz/iem/commit/b4d21b90ff3d13268b0d532277b3a90c8a0a2351

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy