fix empty lines

This commit is contained in:
Dennis Eichhorn 2019-09-28 20:58:36 +02:00
parent a51be51c03
commit 9511d3209c
6 changed files with 26 additions and 8 deletions

View File

@ -30,23 +30,19 @@ class MultipleLinearRegression
return $XT->mult($X)->inverse()->mult($XT)->mult($Y)->getMatrix(); return $XT->mult($X)->inverse()->mult($XT)->mult($Y)->getMatrix();
} }
public static function getVariance() : float public static function getVariance() : float
{ {
} }
public static function getPredictionInterval() : array public static function getPredictionInterval() : array
{ {
} }
public static function getSlope(float $b1, float $y, float $x) : float public static function getSlope(float $b1, float $y, float $x) : float
{ {
return 0.0; return 0.0;
} }
public static function getElasticity(float $b1, float $y, float $x): float public static function getElasticity(float $b1, float $y, float $x): float
{ {
return 0.0; return 0.0;

View File

@ -264,6 +264,32 @@ abstract class ModuleAbstract
]); ]);
} }
/**
* Create a model
*
* @param int $account Account id
* @param array $objs Response object
* @param string $mapper Object mapper
* @param string $trigger Trigger for the event manager
*
* @return void
*
* @since 1.0.0
*/
protected function createModels(int $account, array $objs, string $mapper, string $trigger) : void
{
foreach ($objs as $obj) {
$this->app->eventManager->trigger('PRE:Module:' . static::MODULE_NAME . '-' . $trigger . '-create', '', $obj);
$mapper::create($obj);
$this->app->eventManager->trigger('POST:Module:' . static::MODULE_NAME . '-' . $trigger . '-create', '', [
$account,
null, $obj,
0, 0,
static::MODULE_NAME,
]);
}
}
/** /**
* Update a model * Update a model
* *

View File

@ -127,7 +127,6 @@ class Edge
return $this->weight; return $this->weight;
} }
/** /**
* Is directed edge * Is directed edge
* *

View File

@ -99,7 +99,6 @@ class Markdown
'_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us', '_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us',
]; ];
/** /**
* Regex for em. * Regex for em.
* *

View File

@ -16,7 +16,6 @@ namespace phpOMS\tests\Socket;
require_once __DIR__ . '/../Autoloader.php'; require_once __DIR__ . '/../Autoloader.php';
/** /**
* @internal * @internal
*/ */

View File

@ -16,7 +16,6 @@ namespace phpOMS\tests\Socket;
require_once __DIR__ . '/../Autoloader.php'; require_once __DIR__ . '/../Autoloader.php';
/** /**
* @internal * @internal
*/ */