зеркало из https://github.com/nextcloud/cookbook.git
Fix php code styles
Signed-off-by: Christian Wolf <git@christianwolf.email>
This commit is contained in:
Родитель
e8d2926738
Коммит
1fd2668f0c
|
@ -2,13 +2,11 @@
|
|||
|
||||
namespace OCA\Cookbook\Helper\Filter\JSON;
|
||||
|
||||
use OCA\Cookbook\Exception\InvalidRecipeException;
|
||||
use OCA\Cookbook\Helper\Filter\AbstractJSONFilter;
|
||||
use OCP\IL10N;
|
||||
|
||||
/**
|
||||
* Fix the data type of the id of a recipe.
|
||||
*
|
||||
*
|
||||
* The id should be a string and no integer.
|
||||
*/
|
||||
class RecipeIdTypeFilter extends AbstractJSONFilter {
|
||||
|
|
|
@ -6,12 +6,10 @@ use OCA\Cookbook\Helper\Filter\JSON\RecipeIdTypeFilter;
|
|||
use Test\TestCase;
|
||||
|
||||
class RecipeIdTypeFilterTest extends TestCase {
|
||||
|
||||
/** @var RecipeIdTypeFilter */
|
||||
private $dut;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
protected function setUp(): void {
|
||||
$this->dut = new RecipeIdTypeFilter();
|
||||
}
|
||||
|
||||
|
@ -38,4 +36,4 @@ class RecipeIdTypeFilterTest extends TestCase {
|
|||
$this->assertEquals($changed, $ret);
|
||||
$this->assertTrue(is_string($input['id']));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче