Skip to content

Commit

Permalink
Merge pull request #18079 from nextcloud/fixes/phpcs
Browse files Browse the repository at this point in the history
Some php-cs fixes
  • Loading branch information
rullzer committed Nov 25, 2019
2 parents 20ec763 + 68748d4 commit c7d5b8f
Show file tree
Hide file tree
Showing 1,071 changed files with 1,526 additions and 1,477 deletions.
2 changes: 1 addition & 1 deletion apps/accessibility/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

use OCP\AppFramework\App;
use OCP\IConfig;
use OCP\IUserSession;
use OCP\IURLGenerator;
use OCP\IUserSession;

class Application extends App {

Expand Down
4 changes: 2 additions & 2 deletions apps/accessibility/lib/Controller/AccessibilityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@
use Leafo\ScssPhp\Compiler;
use Leafo\ScssPhp\Exception\ParserException;
use Leafo\ScssPhp\Formatter\Crunched;
use OC\Template\IconsCacher;
use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Http\DataDownloadResponse;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\App\IAppManager;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IRequest;
use OCP\IURLGenerator;
use OCP\IUserManager;
use OCP\IUserSession;
use OC\Template\IconsCacher;

class AccessibilityController extends Controller {

Expand Down
2 changes: 1 addition & 1 deletion apps/accessibility/lib/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
use OCA\Accessibility\AccessibilityProvider;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCSController;
use OCP\AppFramework\OCS\OCSBadRequestException;
use OCP\AppFramework\OCSController;
use OCP\IConfig;
use OCP\IRequest;
use OCP\IUserSession;
Expand Down
2 changes: 1 addition & 1 deletion apps/admin_audit/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
use OCP\ILogger;
use OCP\IPreview;
use OCP\IUserSession;
use OCP\Share;
use OCP\Util;
use Symfony\Component\EventDispatcher\GenericEvent;
use OCP\Share;

class Application extends App {

Expand Down
1 change: 0 additions & 1 deletion apps/cloud_federation_api/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*
*/


namespace OCA\CloudFederationAPI\AppInfo;


Expand Down
1 change: 0 additions & 1 deletion apps/cloud_federation_api/lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*
*/


namespace OCA\CloudFederationAPI;


Expand Down
2 changes: 0 additions & 2 deletions apps/cloud_federation_api/lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
*
*/


namespace OCA\CloudFederationAPI;
use OCP\Federation\ICloudFederationProviderManager;
use OCP\GlobalScale\IConfig as IGsConfig;
use OCP\IConfig;


/**
* Class config
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
use OCP\Federation\Exceptions\AuthenticationFailedException;
use OCP\Federation\Exceptions\BadRequestException;
use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
use OCP\Federation\Exceptions\ProviderDoesNotExistsException;
use OCP\Federation\ICloudFederationFactory;
use OCP\Federation\ICloudFederationProviderManager;
use OCP\Federation\Exceptions\ProviderDoesNotExistsException;
use OCP\Federation\ICloudIdManager;
use OCP\IGroupManager;
use OCP\ILogger;
Expand All @@ -42,7 +42,6 @@
use OCP\IUserManager;
use OCP\Share\Exceptions\ShareNotFound;


/**
* Class RequestHandlerController
*
Expand Down
1 change: 0 additions & 1 deletion apps/comments/lib/Activity/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,3 @@ public function isDefaultEnabledMail() {
return false;
}
}

4 changes: 2 additions & 2 deletions apps/comments/tests/Unit/EventHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

namespace OCA\Comments\Tests\Unit\Notification;

use OCA\Comments\Activity\Listener as ActivityListener;
use OCA\Comments\EventHandler;
use OCA\Comments\Notification\Listener as NotificationListener;
use OCP\Comments\CommentsEvent;
use OCP\Comments\IComment;
use OCA\Comments\Activity\Listener as ActivityListener;
use OCA\Comments\Notification\Listener as NotificationListener;
use Test\TestCase;

class EventHandlerTest extends TestCase {
Expand Down
5 changes: 3 additions & 2 deletions apps/dav/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace OCA\DAV\AppInfo;

use OC\AppFramework\Utility\SimpleContainer;
Expand All @@ -42,9 +43,9 @@
use OCA\DAV\CardDAV\PhotoCache;
use OCA\DAV\CardDAV\SyncService;
use OCA\DAV\HookManager;
use \OCP\AppFramework\App;
use OCP\Contacts\IManager as IContactsManager;
use OCP\AppFramework\App;
use OCP\Calendar\IManager as ICalendarManager;
use OCP\Contacts\IManager as IContactsManager;
use OCP\IUser;
use Symfony\Component\EventDispatcher\GenericEvent;

Expand Down
3 changes: 2 additions & 1 deletion apps/dav/lib/AppInfo/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace OCA\DAV\AppInfo;

use OCP\App\IAppManager;
use OC\ServerContainer;
use OCP\App\IAppManager;
use OCP\AppFramework\QueryException;

/**
Expand Down
1 change: 0 additions & 1 deletion apps/dav/lib/Avatars/AvatarHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*
*/


namespace OCA\DAV\Avatars;


Expand Down
1 change: 0 additions & 1 deletion apps/dav/lib/Avatars/AvatarNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*
*/


namespace OCA\DAV\Avatars;


Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Avatars/RootCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\Avatars;

use Sabre\DAVACL\AbstractPrincipalCollection;


class RootCollection extends AbstractPrincipalCollection {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\BackgroundJob;

use OCP\BackgroundJob\QueuedJob;
use OCA\DAV\CalDAV\Reminder\ReminderService;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\BackgroundJob\QueuedJob;
use OCP\IDBConnection;
use OCP\ILogger;

Expand Down Expand Up @@ -132,4 +133,4 @@ private function buildIndex(int $offset, int $stopAt):int {

return $stopAt;
}
}
}
1 change: 1 addition & 0 deletions apps/dav/lib/BackgroundJob/EventReminderJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace OCA\DAV\BackgroundJob;

use OC\BackgroundJob\TimedJob;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\BackgroundJob;

use OC\BackgroundJob\QueuedJob;
Expand Down
1 change: 1 addition & 0 deletions apps/dav/lib/BackgroundJob/RefreshWebcalJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\BackgroundJob;

use GuzzleHttp\HandlerStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\BackgroundJob;

use OCP\AppFramework\Utility\ITimeFactory;
Expand Down Expand Up @@ -63,4 +64,4 @@ public function run($argument) {
});
}

}
}
1 change: 0 additions & 1 deletion apps/dav/lib/CalDAV/Activity/Setting/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,3 @@ public function isDefaultEnabledMail() {
return false;
}
}

1 change: 0 additions & 1 deletion apps/dav/lib/CalDAV/Activity/Setting/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,3 @@ public function isDefaultEnabledMail() {
return false;
}
}

1 change: 0 additions & 1 deletion apps/dav/lib/CalDAV/Activity/Setting/Todo.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,3 @@ public function isDefaultEnabledMail() {
return false;
}
}

2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\CalendarHome;
use OCP\IConfig;
use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;
use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
use OCP\IConfig;

/**
* Class EnablePlugin
Expand Down
1 change: 1 addition & 0 deletions apps/dav/lib/CalDAV/CachedSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\CalDAV;

use OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException;
Expand Down
1 change: 1 addition & 0 deletions apps/dav/lib/CalDAV/CachedSubscriptionObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\DAV\CalDAV;

use Sabre\DAV\Exception\MethodNotAllowed;
Expand Down
6 changes: 3 additions & 3 deletions apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@

namespace OCA\DAV\CalDAV;

use OCA\DAV\DAV\Sharing\IShareable;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCA\DAV\Connector\Sabre\Principal;
use OCA\DAV\DAV\Sharing\Backend;
use OCA\DAV\DAV\Sharing\IShareable;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\IGroupManager;
use OCP\ILogger;
Expand All @@ -53,6 +53,7 @@
use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\PropPatch;
use Sabre\Uri;
use Sabre\VObject\Component;
use Sabre\VObject\Component\VCalendar;
use Sabre\VObject\Component\VTimeZone;
Expand All @@ -62,7 +63,6 @@
use Sabre\VObject\Property;
use Sabre\VObject\Reader;
use Sabre\VObject\Recur\EventIterator;
use Sabre\Uri;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;

Expand Down
1 change: 1 addition & 0 deletions apps/dav/lib/CalDAV/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace OCA\DAV\CalDAV;

use OCA\DAV\CalDAV\Proxy\ProxyMapper;
Expand Down
3 changes: 2 additions & 1 deletion apps/dav/lib/CalDAV/CalendarHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace OCA\DAV\CalDAV;

use Sabre\CalDAV\Backend\BackendInterface;
Expand All @@ -30,8 +31,8 @@
use Sabre\CalDAV\Backend\SubscriptionSupport;
use Sabre\CalDAV\Schedule\Inbox;
use Sabre\CalDAV\Subscriptions\Subscription;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\Exception\MethodNotAllowed;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\MkCol;

class CalendarHome extends \Sabre\CalDAV\CalendarHome {
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/CalendarImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

namespace OCA\DAV\CalDAV;

use OCP\Constants;
use OCP\Calendar\ICalendar;
use OCP\Constants;

class CalendarImpl implements ICalendar {

Expand Down
1 change: 0 additions & 1 deletion apps/dav/lib/CalDAV/CalendarObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*
*/


namespace OCA\DAV\CalDAV;


Expand Down
3 changes: 2 additions & 1 deletion apps/dav/lib/CalDAV/CalendarRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace OCA\DAV\CalDAV;

class CalendarRoot extends \Sabre\CalDAV\CalendarRoot {
Expand All @@ -38,4 +39,4 @@ function getName() {

return parent::getName();
}
}
}
Loading

0 comments on commit c7d5b8f

Please sign in to comment.