🎨 Expected 1 blank line at end of file

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-07-04 21:09:30 +02:00
parent f4b83e5600
commit b75a4f3db5
231 changed files with 200 additions and 256 deletions

View File

@ -27,4 +27,4 @@ class ProsemirrorEditorAsset extends AssetBundle
* @inheritdoc
*/
public $js = ['humhub-editor.js'];
}
}

View File

@ -38,4 +38,4 @@ class ModuleEvent extends \yii\base\Event
return $this->module;
}
}
}

View File

@ -27,4 +27,4 @@ class DelegateAccessValidator extends ActionAccessValidator
$handler = $this->handler;
return $this->owner->$handler($rule, $this);
}
}
}

View File

@ -22,4 +22,4 @@ use yii\base\InvalidParamException;
class DeprecatedPermissionAccessValidator extends PermissionAccessValidator
{
public $name = 'permissions';
}
}

View File

@ -30,4 +30,4 @@ class StrictAccess extends ControllerAccess
return $fixed;
}
}
}

View File

@ -38,4 +38,4 @@ class GUID extends Behavior
}
}
}
}

View File

@ -14,4 +14,4 @@ return [
'humhub\assets\JuiBootstrapBridgeAsset'
]
]
];
];

View File

@ -456,4 +456,4 @@ return [
'all',
],
],
];
];

View File

@ -51,4 +51,4 @@ return [
],
]
],
];
];

View File

@ -45,4 +45,4 @@ class OembedController extends Controller
return $this->asJson($result);
}
}
}

View File

@ -29,4 +29,4 @@ class Sort
return $arr;
}
}
}

View File

@ -54,4 +54,4 @@ class UUID
return preg_match('/^\{?[0-9a-f]{8}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?' . '[0-9a-f]{4}\-?[0-9a-f]{12}\}?$/i', $uuid) === 1;
}
}
}

View File

@ -91,4 +91,4 @@ class ChooseLanguage extends Model
return null;
}
}
}

View File

@ -26,4 +26,4 @@ class ActivityStreamAction extends ContentContainerStream
}
}
}
}
}

View File

@ -103,4 +103,3 @@ class ActivityWebRenderer extends LayoutRenderer
}
}

View File

@ -27,4 +27,4 @@ class StreamController extends ContentContainerController
];
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));

View File

@ -1,3 +1,3 @@
<?php
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));

View File

@ -2,4 +2,4 @@
return [
'fixtures' => ['default']
];
];

View File

@ -92,4 +92,4 @@ class Activity extends WallEntry
]);
}
}
}

View File

@ -20,4 +20,4 @@ class Stream extends ActivityStreamViewer
parent::init();
}
}
}

View File

@ -40,4 +40,4 @@ return [
]
],
],
];
];

View File

@ -133,4 +133,4 @@ class ApprovalController extends Controller
]);
}
}
}

View File

@ -128,4 +128,4 @@ class AuthenticationController extends Controller
]);
}
}
}

View File

@ -108,4 +108,4 @@ class PendingRegistrationsController extends Controller
'lastname',
];
}
}
}

View File

@ -80,4 +80,4 @@ class PendingRegistrationSearch extends Invite
return $dataProvider;
}
}
}

View File

@ -125,4 +125,4 @@ class UserApprovalSearch extends User
return Yii::$app->user->getIdentity()->managerGroups;
}
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));

View File

@ -1,3 +1,3 @@
<?php
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));

View File

@ -24,4 +24,3 @@ class DatabaseInfoTest extends Unit
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));

View File

@ -3,6 +3,3 @@
return [
'fixtures' => ['default']
];

View File

@ -22,4 +22,4 @@ class DashboardApproval extends \humhub\components\Widget
}
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));

View File

@ -1,3 +1,3 @@
<?php
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');

View File

@ -1,2 +1,2 @@
<?php
return [];
return [];

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));

View File

@ -3,6 +3,3 @@
return [
'fixtures' => ['default']
];

View File

@ -69,4 +69,4 @@ class CommentLink extends \yii\base\Widget
return Comment::GetCommentCount(get_class($this->object), $this->object->getPrimaryKey());
}
}
}

View File

@ -50,4 +50,4 @@ class Form extends \yii\base\Widget
]);
}
}
}

View File

@ -53,4 +53,4 @@ class ShowMore extends \yii\base\Widget
]);
}
}
}

View File

@ -205,4 +205,4 @@ class ContentContainerControllerAccess extends StrictAccess
return $this->contentContainer instanceof User;
}
}
}

View File

@ -29,4 +29,4 @@ class ContentContainerPermissionAccess extends PermissionAccessValidator
{
return parent::verifyPermission($permission, $rule) || $this->contentContainer->can($permission, $rule);
}
}
}

View File

@ -113,4 +113,4 @@ class UserGroupAccessValidator extends ActionAccessValidator
{
return Yii::t('error', 'You are not permitted to access this section.');
}
}
}

View File

@ -78,4 +78,4 @@ class MoveController extends ContentContainerController
return $this->asJson($json);
}
}
}

View File

@ -31,4 +31,4 @@ class ContentContainerHelper
return null;
}
}
}

View File

@ -558,4 +558,4 @@ class ContentTag extends ActiveRecord
]);
}
}
}
}

View File

@ -33,4 +33,4 @@ class ContentTagAddition extends ActiveRecord
{
$this->tag_id = $tag->id;
}
}
}

View File

@ -88,4 +88,4 @@ class ContentTagRelation extends ActiveRecord
{
$this->tag_id = $tag->id;
}
}
}

View File

@ -115,4 +115,4 @@ class ContentType extends Model
return $this->instance->getIcon();
}
}
}

View File

@ -58,4 +58,4 @@ interface Movable
*/
public function afterMove(ContentContainerActiveRecord $container = null);
}
}

View File

@ -107,4 +107,4 @@ class MoveContentForm extends Model
{
return $this->content->canMove();
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));

View File

@ -1,3 +1,3 @@
<?php
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');

View File

@ -36,4 +36,4 @@ return array(
array('id' => '10', 'guid' => 'e0acdc54-13c8-4778-adc1-7302e3243e30', 'object_model' => 'humhub\modules\post\models\Post', 'object_id' => '10', 'visibility' => '1', 'pinned' => '0', 'archived' => '0', 'contentcontainer_id' => 5, 'created_at' => '2014-08-08 05:36:05', 'created_by' => '1', 'updated_at' => '2014-08-08 05:36:05', 'updated_by' => '1', 'stream_channel' => 'default'),
array('id' => '11', 'guid' => 'e0acdc54-13c8-4778-adc1-7302e3243e31', 'object_model' => 'humhub\modules\post\models\Post', 'object_id' => '11', 'visibility' => '0', 'pinned' => '0', 'archived' => '0', 'contentcontainer_id' => 5, 'created_at' => '2014-08-08 05:36:05', 'created_by' => '1', 'updated_at' => '2014-08-08 05:36:05', 'updated_by' => '1', 'stream_channel' => 'default'),
);
);

View File

@ -6,4 +6,4 @@
* @license https://www.humhub.com/licences
*
*/
return [];
return [];

View File

@ -6,4 +6,4 @@
* @license https://www.humhub.com/licences
*
*/
return [];
return [];

View File

@ -29,4 +29,4 @@ return [
['id' => 9, 'guid' => '01e50e0d-82cd-41fc-8b0c-552392f5839g', 'class' => 'humhub\modules\user\models\User', 'pk' => '5', 'owner_user_id' => 5],
['id' => 10, 'guid' => '01e50e0d-82cd-41fc-8b0c-552392f5839h', 'class' => 'humhub\modules\user\models\User', 'pk' => '6', 'owner_user_id' => 6],
['id' => 11, 'guid' => '01e50e0d-82cd-41fc-8b0c-552392f5839i', 'class' => 'humhub\modules\user\models\User', 'pk' => '7', 'owner_user_id' => 7],
];
];

View File

@ -6,4 +6,4 @@
* @license https://www.humhub.com/licences
*
*/
return [];
return [];

View File

@ -17,4 +17,4 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*/
return [];
return [];

View File

@ -17,4 +17,4 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*/
return [];
return [];

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));

View File

@ -427,4 +427,4 @@ class ContentContainerAccessControllerTest extends HumHubDbTestCase
]);
$this->assertTrue($accessCheck->run());
}
}
}

View File

@ -256,4 +256,4 @@ class ContentTagTest extends HumHubDbTestCase
}
}
}

View File

@ -24,4 +24,4 @@ class ContentTestPermission1 extends BasePermission
public $id = 'content-test-permission2';
}
}

View File

@ -24,4 +24,4 @@ class ContentTestPermission2 extends BasePermission
public $id = 'content-test-permission';
}
}

View File

@ -29,4 +29,4 @@ class TestContent extends Post
$this->managePermission = $managePermission;
}
}
}

View File

@ -24,4 +24,4 @@ use humhub\modules\post\models\Post;
class TestContentManagePermission extends ManageContent
{
}
}

View File

@ -29,4 +29,4 @@ class TestTag extends ContentTag
return 'testCategory';
}
}
}

View File

@ -27,4 +27,4 @@ class TestTagOtherModule extends ContentTag
return 'testCategory';
}
}
}

View File

@ -29,4 +29,4 @@ class TestTagSameModule extends ContentTag
return 'testCategory';
}
}
}

View File

@ -2,4 +2,4 @@
/**
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
*/

View File

@ -3,6 +3,3 @@
return [
'fixtures' => ['default']
];

View File

@ -117,4 +117,4 @@ class ContentTagPicker extends BasePickerField
{
return null;
}
}
}

View File

@ -59,4 +59,4 @@ class ContentTypePicker extends MultiSelectField
}
}
}

View File

@ -57,4 +57,4 @@ class MoveContentLink extends WallEntryControlLink
{
return !$this->model->isOwner() && !$this->model->content->container->can(ManageContent::class);
}
}
}

View File

@ -45,4 +45,4 @@ class VisibilityLink extends \yii\base\Widget
'toggleLink' => Url::to(['/content/content/toggle-visibility', 'id' => $content->id])
]);
}
}
}

View File

@ -246,4 +246,4 @@ abstract class AbstractRichText extends JsWidget
$config['minimal'] = true;
return static::output($text, $config);
}
}
}

View File

@ -251,4 +251,4 @@ class AbstractRichTextEditor extends InputWidget
{
return ($this->mentioningUrl) ? $this->mentioningUrl : Url::to([$this->mentioningRoute]);
}
}
}

View File

@ -175,4 +175,4 @@ REGEXP;
return $hit[0];
}, $text);
}
}
}

View File

@ -43,4 +43,4 @@ class HumHubRichTextEditor extends AbstractRichTextEditor
}
}
}

View File

@ -43,4 +43,4 @@ class HumHubRichTextProcessor extends AbstractRichTextProcessor
return $result;
}
}
}

View File

@ -267,4 +267,4 @@ class ProsemirrorRichText extends AbstractRichText
{
return Yii::$app->getModule('content')->settings->get('richtextCompatMode', 1);
}
}
}

View File

@ -58,4 +58,4 @@ class ProsemirrorRichTextEditor extends AbstractRichTextEditor
'hideInStream' => true
]);
}
}
}

View File

@ -49,4 +49,4 @@ class ProsemirrorRichTextProcessor extends AbstractRichTextProcessor
return $result;
}
}
}

View File

@ -122,4 +122,4 @@ class RichTextCompatibilityParser
}, $text);
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));

View File

@ -1,3 +1,3 @@
<?php
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/functional/_bootstrap.php'));

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/unit/_bootstrap.php'));

View File

@ -3,6 +3,3 @@
return [
'fixtures' => ['default']
];

View File

@ -26,4 +26,4 @@ class AccessDirectory extends BasePermission
{
return Yii::t('DirectoryModule.base', 'Can access the directory section.');
}
}
}

View File

@ -3,4 +3,4 @@
* Initialize the HumHub Application for functional testing. The default application configuration for this suite can be overwritten
* in @tests/config/functional.php
*/
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));
require(Yii::getAlias('@humhubTests/codeception/acceptance/_bootstrap.php'));

View File

@ -1,3 +1,3 @@
<?php
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');
return \tests\codeception\_support\HumHubTestConfiguration::getSuiteConfig('unit');

Some files were not shown because too many files have changed in this diff Show More