Some more minor code-style fixes
This commit is contained in:
parent
77709c068a
commit
3c41682d73
@ -13,19 +13,19 @@ $ion_file_patterns = [
|
|||||||
|
|
||||||
if ( ! function_exists('glob_recursive'))
|
if ( ! function_exists('glob_recursive'))
|
||||||
{
|
{
|
||||||
// Does not support flag GLOB_BRACE
|
// Does not support flag GLOB_BRACE
|
||||||
|
|
||||||
function glob_recursive($pattern, $flags = 0)
|
function glob_recursive($pattern, $flags = 0)
|
||||||
{
|
{
|
||||||
$files = glob($pattern, $flags);
|
$files = glob($pattern, $flags);
|
||||||
|
|
||||||
foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
|
foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
|
||||||
{
|
{
|
||||||
$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
|
$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $files;
|
return $files;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_text_to_replace($tokens)
|
function get_text_to_replace($tokens)
|
||||||
|
@ -126,12 +126,12 @@ class Collection extends BaseController {
|
|||||||
$data = $this->request->post->get();
|
$data = $this->request->post->get();
|
||||||
if ( ! array_key_exists('hummingbird_id', $data))
|
if ( ! array_key_exists('hummingbird_id', $data))
|
||||||
{
|
{
|
||||||
$this->redirect("collection/view", 303, "anime");
|
$this->redirect("collection/view", 303);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->anime_collection_model->update($data);
|
$this->anime_collection_model->update($data);
|
||||||
|
|
||||||
$this->redirect("collection/view", 303, "anime");
|
$this->redirect("collection/view", 303);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -144,12 +144,12 @@ class Collection extends BaseController {
|
|||||||
$data = $this->request->post->get();
|
$data = $this->request->post->get();
|
||||||
if ( ! array_key_exists('id', $data))
|
if ( ! array_key_exists('id', $data))
|
||||||
{
|
{
|
||||||
$this->redirect("collection/view", 303, "anime");
|
$this->redirect("collection/view", 303);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->anime_collection_model->add($data);
|
$this->anime_collection_model->add($data);
|
||||||
|
|
||||||
$this->redirect("collection/view", 303, "anime");
|
$this->redirect("collection/view", 303);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// End of CollectionController.php
|
// End of CollectionController.php
|
@ -22,14 +22,14 @@ class Container implements ContainerInterface {
|
|||||||
/**
|
/**
|
||||||
* Array with class instances
|
* Array with class instances
|
||||||
*
|
*
|
||||||
* @var ArrayObject
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $container = [];
|
protected $container = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map of logger instances
|
* Map of logger instances
|
||||||
*
|
*
|
||||||
* @var ArrayObject
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $loggers = [];
|
protected $loggers = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user