diff --git a/Events.php b/Events.php index 5e43c9e..6286805 100644 --- a/Events.php +++ b/Events.php @@ -8,4 +8,3 @@ class Events extends BaseObject { } - diff --git a/Module.php b/Module.php index 28cae38..42fff3f 100644 --- a/Module.php +++ b/Module.php @@ -8,7 +8,3 @@ class Module extends \humhub\components\Module { } - - - - diff --git a/config.php b/config.php index 582e75b..93eb431 100644 --- a/config.php +++ b/config.php @@ -5,5 +5,3 @@ 'class' => 'humhub\modules\profiler\Module', 'namespace' => 'humhub\modules\profiler', ]; -?> - diff --git a/controllers/DashboardStreamController.php b/controllers/DashboardStreamController.php index 4bc8b5a..20ef6b7 100644 --- a/controllers/DashboardStreamController.php +++ b/controllers/DashboardStreamController.php @@ -79,4 +79,4 @@ public function actionRunMemberDeprecated() $this->printResult($competing); } -} \ No newline at end of file +} diff --git a/controllers/FixtureController.php b/controllers/FixtureController.php index 217ca77..1b2ba70 100644 --- a/controllers/FixtureController.php +++ b/controllers/FixtureController.php @@ -62,7 +62,8 @@ public function init() 'file/file' => 100, 'content/contentcontainer' => function() { return count(ContentContainerProvider::$container); - } + }, + 'user/group' => 1, ]; } @@ -105,4 +106,4 @@ protected function findTemplatesFiles(array $templatesNames = []) return $result; } -} \ No newline at end of file +} diff --git a/controllers/GalleryController.php b/controllers/GalleryController.php index 1458df2..24cb33b 100644 --- a/controllers/GalleryController.php +++ b/controllers/GalleryController.php @@ -74,4 +74,4 @@ protected function printResultRow($title, $value, $color = Console::FG_GREEN) { $this->stdout(sprintf("%-30.30s| %5f \n", $title,$value), $color); } -} \ No newline at end of file +} diff --git a/controllers/ProfileController.php b/controllers/ProfileController.php index d7fc989..494c1e8 100644 --- a/controllers/ProfileController.php +++ b/controllers/ProfileController.php @@ -189,4 +189,4 @@ protected function getUser() { return User::findOne(['id' => $this->userId]); } -} \ No newline at end of file +} diff --git a/controllers/StreamController.php b/controllers/StreamController.php index 99f4f55..9478a20 100644 --- a/controllers/StreamController.php +++ b/controllers/StreamController.php @@ -67,4 +67,4 @@ public function actionRun() $this->cli_beep(); } -} \ No newline at end of file +} diff --git a/fixtures/GroupFixtrue.php b/fixtures/GroupFixture.php similarity index 83% rename from fixtures/GroupFixtrue.php rename to fixtures/GroupFixture.php index 7c65b81..dee7b5b 100644 --- a/fixtures/GroupFixtrue.php +++ b/fixtures/GroupFixture.php @@ -5,8 +5,8 @@ use humhub\modules\user\models\Group; use yii\test\ActiveFixture; -class GroupFixtrue extends ActiveFixture +class GroupFixture extends ActiveFixture { public $modelClass = Group::class; public $dataFile = '@profiler/fixtures/data/user/group.php'; -} \ No newline at end of file +} diff --git a/fixtures/templates/space/space.php b/fixtures/templates/space/space.php index 2815c3a..d6cbd64 100644 --- a/fixtures/templates/space/space.php +++ b/fixtures/templates/space/space.php @@ -30,7 +30,6 @@ 'join_policy' => $joinPolicity, 'visibility' => $visibility, 'status' => $status, - 'tags' => null, 'created_at' => $faker->dateTimeBetween('-2 years', '-1 years')->format('Y-m-d H:i:s'), 'created_by' => 1, 'updated_at' => $faker->dateTimeBetween('-1 years', '-1 months')->format('Y-m-d H:i:s'), diff --git a/fixtures/templates/user/group.php b/fixtures/templates/user/group.php new file mode 100644 index 0000000..0279983 --- /dev/null +++ b/fixtures/templates/user/group.php @@ -0,0 +1,19 @@ + $index + 1, + 'name' => 'Administrators', + 'description' => 'Default group for administrators of this HumHub Installation', + 'is_admin_group' => 1, + 'is_default_group' => 0, + 'is_protected' => 0, + 'show_at_registration' => 0, + 'show_at_directory' => 0, + 'sort_order' => 100, + 'notify_users' => 0, +]; diff --git a/fixtures/templates/user/user.php b/fixtures/templates/user/user.php index 9b7ab78..5a75a41 100644 --- a/fixtures/templates/user/user.php +++ b/fixtures/templates/user/user.php @@ -21,7 +21,6 @@ 'email' => $faker->unique()->email, 'contentcontainer_id' => $containerInfo['id'], 'auth_mode' => 'local', - 'tags' => null, 'created_by' => null, 'language' => 'en-US', 'created_at' => $faker->dateTimeBetween('-2 years', '-1 years')->format('Y-m-d H:i:s'),