Skip to content

Commit

Permalink
Merge pull request #1152 from owncloud/code-style-4
Browse files Browse the repository at this point in the history
Implement owncloud/coding-standard 4
  • Loading branch information
individual-it authored Nov 17, 2022
2 parents a80b358 + e0ce712 commit 7be75ff
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 35 deletions.
11 changes: 4 additions & 7 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('templates/html.notification.php')
->in(__DIR__);

$config = new OC\CodingStandard\Config();

$config
->setUsingCache(true)
->getFinder()
->in(__DIR__);

$config->setFinder($finder);
return $config;

1 change: 0 additions & 1 deletion appinfo/Migrations/Version20161122092159.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use OCP\Migration\ISchemaMigration;

class Version20161122092159 implements ISchemaMigration {

/**
* @param Schema $schema
* @param array $options
Expand Down
1 change: 0 additions & 1 deletion appinfo/Migrations/Version20170724182159.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

class Version20170724182159 implements ISchemaMigration {

/**
* @param Schema $schema
* @param array $options
Expand Down
1 change: 0 additions & 1 deletion appinfo/Migrations/Version20181022150134.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*
*/
class Version20181022150134 implements ISqlMigration {

/**
* @param Schema $schema
* @param array $options
Expand Down
1 change: 0 additions & 1 deletion lib/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use OCP\L10N\IFactory;

class Consumer implements IConsumer {

/** @var Data */
protected $data;

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/Activities.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use OCP\IRequest;

class Activities extends Controller {

/** @var \OCA\Activity\Data */
protected $data;

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/EndPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use OCP\IRequest;

class EndPoint extends Controller {

/** @var OCSEndPoint */
protected $ocsEndPoint;

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/OCSEndPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
use OCP\IUserSession;

class OCSEndPoint {

/** @var string */
protected $filter;

Expand Down
1 change: 0 additions & 1 deletion lib/FilesHooksStatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* The class to handle the filesystem hooks
*/
class FilesHooksStatic {

/**
* @var Appinfo\Application
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Formatter/GroupFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use OCP\Util;

class GroupFormatter implements IFormatter {

/** @var IGroupManager */
protected $groupManager;

Expand Down
1 change: 0 additions & 1 deletion lib/Formatter/UrlFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use OCP\Util;

class UrlFormatter implements IFormatter {

/**
* Format a list of url parameters into an html a-tag. The parameters have to be provided as json encoded data, i.e. a string.
* Allowed values are:
Expand Down
1 change: 0 additions & 1 deletion lib/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* Handles the stream and mail queue of a user when he is being deleted
*/
class Hooks {

/**
* Delete remaining activities and emails when a user is deleted
*
Expand Down
1 change: 0 additions & 1 deletion lib/HtmlTextParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use OCP\IURLGenerator;

class HtmlTextParser extends PlainTextParser {

/**
* @var IURLGenerator
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Parameter/IParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
namespace OCA\Activity\Parameter;

interface IParameter {

/**
* A value that is used to check, if the parameter is already in a Collection
* @return mixed
Expand Down
1 change: 0 additions & 1 deletion lib/PersonalPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use OCP\Settings\ISettings;

class PersonalPanel implements ISettings {

/** @var AppInfo\Application */
protected $app;

Expand Down
1 change: 0 additions & 1 deletion lib/PlainTextParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use OCP\IL10N;

class PlainTextParser {

/** @var IL10N */
protected $l;

Expand Down
1 change: 0 additions & 1 deletion lib/ViewInfoCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use OCP\Files\NotFoundException;

class ViewInfoCache {

/** @var array */
protected $cachePath;
/** @var array */
Expand Down
8 changes: 4 additions & 4 deletions templates/stream.app.navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
?>
<div id="app-navigation">
<?php foreach ($_['navigations'] as $navigationGroup => $navigationEntries) {
?>
?>
<?php if ($navigationGroup !== 'apps'): ?><ul><?php endif; ?>

<?php foreach ($navigationEntries as $navigation) {
?>
?>
<li<?php if ($_['activeNavigation'] === $navigation['id']): ?> class="active"<?php endif; ?>>
<a data-navigation="<?php p($navigation['id']) ?>" href="<?php p($navigation['url']) ?>">
<?php p($navigation['name']) ?>
</a>
</li>
<?php
} ?>
} ?>

<?php if ($navigationGroup !== 'top'): ?></ul><?php endif; ?>
<?php
} ?>
} ?>

<div id="app-settings">
<div id="app-settings-header">
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/lib/ActivityPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* activity app gets an overhaul, it might require us to have two separate pages.
*/
class ActivityPage extends OwncloudPage {

/**
*
* @var string $path
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Formatter/BaseFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use OCA\Activity\Tests\Unit\TestCase;

class BaseFormatterTest extends TestCase {

/**
* @param array $methods
* @return IFormatter|\PHPUnit\Framework\MockObject\MockObject
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Formatter/GroupFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use OCP\IGroupManager;

class GroupFormatterTest extends TestCase {

/** @var \OCP\IGroupManager|\PHPUnit\Framework\MockObject\MockObject */
protected $groupManager;

Expand Down
1 change: 0 additions & 1 deletion tests/unit/Formatter/UrlFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use OCP\Activity\IEvent;

class UrlFormatterTest extends TestCase {

/**
* @param array $methods
* @return IFormatter|\PHPUnit\Framework\MockObject\MockObject
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Formatter/UserFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use OCA\Activity\Tests\Unit\TestCase;

class UserFormatterTest extends TestCase {

/** @var \OCP\IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;

Expand Down
1 change: 0 additions & 1 deletion tests/unit/MailQueueHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* @package OCA\Activity\Tests
*/
class MailQueueHandlerTest extends TestCase {

/** @var MailQueueHandler */
protected $mailQueueHandler;

Expand Down
1 change: 0 additions & 1 deletion tests/unit/Parsers/HtmlTextParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Test\TestCase;

class HtmlTextParserTest extends TestCase {

/**
* @dataProvider providesMessages
* @param string $expected
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/owncloud-codestyle/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"owncloud/coding-standard": "^3.0"
"owncloud/coding-standard": "^4.0"
}
}

0 comments on commit 7be75ff

Please sign in to comment.