Skip to content

Commit

Permalink
Add Branches and tags support stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbaggett committed Jan 3, 2023
1 parent e230b46 commit 4a42efc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Abstracts/AbstractTableGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ public function fetchDistinct(
}

/**
* @throws BenzineException
*
* @return null|ModelInterface
*
* @throws BenzineException
*/
public function fetchRandom()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ public function getDbType()
/**
* @param mixed $dbType
*
* @throws DBTypeNotTranslatedException
*
* @return Column
*
* @throws DBTypeNotTranslatedException
*/
public function setDbType($dbType)
{
Expand Down
15 changes: 7 additions & 8 deletions src/Laminator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Benzine\Twig\Extensions\TransformExtension;
use Camel\CaseTransformer;
use Camel\Format;
use DirectoryIterator;
use Laminas\Db\Metadata\Object\TableObject;
use Laminas\Stdlib\ConsoleHelper;
use Symfony\Component\Filesystem\Filesystem;
Expand Down Expand Up @@ -174,9 +173,9 @@ public function _CORE()
/**
* @param $schemaName
*
* @throws SchemaToAdaptorException
*
* @return int|string
*
* @throws SchemaToAdaptorException
*/
public function schemaName2databaseName($schemaName)
{
Expand Down Expand Up @@ -256,11 +255,11 @@ public function getAutoincrementColumns(Database $database, $table)
}

/**
* @return $this
*
* @throws LoaderError
* @throws RuntimeError
* @throws SyntaxError
*
* @return $this
*/
public function makeLaminator()
{
Expand Down Expand Up @@ -378,7 +377,7 @@ private function removeCoreGeneratedFiles()
];
foreach ($generatedPaths as $generatedPath) {
if ((new Filesystem())->exists($generatedPath)) {
foreach (new DirectoryIterator($generatedPath) as $file) {
foreach (new \DirectoryIterator($generatedPath) as $file) {
if (!$file->isDot() && 'php' == $file->getExtension()) {
(new Filesystem())->remove($file->getRealPath());
}
Expand All @@ -392,11 +391,11 @@ private function removeCoreGeneratedFiles()
/**
* @param Model[] $models
*
* @return Laminator
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*
* @return Laminator
*/
private function makeCoreFiles(array $models)
{
Expand Down

0 comments on commit 4a42efc

Please sign in to comment.