Failed Conditions
Pull Request — master (#682)
by
unknown
09:41
created
lib/AppInfo/Application.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,18 +74,18 @@  discard block
 block discarded – undo
74 74
 
75 75
 		$context->registerSearchProvider(Provider::class);
76 76
 
77
-		$context->registerService(View::class, function () {
77
+		$context->registerService(View::class, function() {
78 78
 			return new View('');
79 79
 		}, false);
80 80
 
81
-		$context->registerService('isCLI', function () {
81
+		$context->registerService('isCLI', function() {
82 82
 			return \OC::$CLI;
83 83
 		});
84 84
 
85 85
 		$context->registerMiddleware(ShareMiddleware::class);
86 86
 		$context->registerMiddleware(APIMiddleware::class);
87 87
 
88
-		$context->registerService('ShareController', function (ContainerInterface $c) {
88
+		$context->registerService('ShareController', function(ContainerInterface $c) {
89 89
 			/** @var IUserManager $userManager */
90 90
 			$userManager = $c->get(IUserManager::class);
91 91
 			/** @var IGroupManager $groupManager */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		});
112 112
 
113 113
 
114
-		$context->registerService('CronService', function (ContainerInterface $c) {
114
+		$context->registerService('CronService', function(ContainerInterface $c) {
115 115
 			return new CronService(
116 116
 				$c->get(CredentialService::class),
117 117
 				$c->get(LoggerInterface::class),
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 			);
123 123
 		});
124 124
 
125
-		$context->registerService('Logger', function (ContainerInterface $c) {
125
+		$context->registerService('Logger', function(ContainerInterface $c) {
126 126
 			return $c->get(ServerContainer::class)->getLogger();
127 127
 		});
128 128
 	}
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		/** @var INavigationManager $navigationManager */
144 144
 		$navigationManager = $c->get(INavigationManager::class);
145 145
 
146
-		$navigationEntry = function () use ($c) {
146
+		$navigationEntry = function() use ($c) {
147 147
 			/** @var IURLGenerator $urlGenerator */
148 148
 			$urlGenerator = $c->get(IURLGenerator::class);
149 149
 			return [
Please login to merge, or discard this patch.
lib/Utility/Utils.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 use OCP\IUserManager;
27 27
 
28 28
 class Utils {
29
-    /**
30
-     * Gets the unix epoch UTC timestamp
31
-     * @return int
32
-     */
29
+	/**
30
+	 * Gets the unix epoch UTC timestamp
31
+	 * @return int
32
+	 */
33 33
 	public static function getTime() {
34 34
 		return (new \DateTime())->getTimestamp();
35 35
 	}
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 		return microtime(true);
41 41
 	}
42 42
 
43
-    /**
44
-     * Generates a Globally Unique ID
45
-     * @return string
46
-     */
43
+	/**
44
+	 * Generates a Globally Unique ID
45
+	 * @return string
46
+	 */
47 47
 	public static function GUID() {
48 48
 		if (function_exists('com_create_guid') === true)
49 49
 		{
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 * @param IUserManager $userManager
59 59
 	 * @return string
60 60
 	 */
61
-	public static function getNameByUid(string $uid, IUserManager $userManager){
61
+	public static function getNameByUid(string $uid, IUserManager $userManager) {
62 62
 		$u = $userManager->get($uid);
63 63
 		return $u->getDisplayName();
64 64
 	}
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 	 * @param array $results
69 69
 	 * @return array|mixed
70 70
 	 */
71
-	public static function getDirContents(string $dir, &$results = array()){
71
+	public static function getDirContents(string $dir, &$results = array()) {
72 72
 		$files = scandir($dir);
73 73
 
74
-		foreach($files as $value){
75
-			$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
76
-			if(!is_dir($path)) {
74
+		foreach ($files as $value) {
75
+			$path = realpath($dir . DIRECTORY_SEPARATOR . $value);
76
+			if (!is_dir($path)) {
77 77
 				$results[] = $path;
78
-			} else if($value != "." && $value != "..") {
78
+			} else if ($value != "." && $value != "..") {
79 79
 				Utils::getDirContents($path, $results);
80 80
 				$results[] = $path;
81 81
 			}
Please login to merge, or discard this patch.
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@  discard block
 block discarded – undo
45 45
      * @return string
46 46
      */
47 47
 	public static function GUID() {
48
-		if (function_exists('com_create_guid') === true)
49
-		{
48
+		if (function_exists('com_create_guid') === true) {
50 49
 			return trim(com_create_guid(), '{}');
51 50
 		}
52 51
 
@@ -58,7 +57,7 @@  discard block
 block discarded – undo
58 57
 	 * @param IUserManager $userManager
59 58
 	 * @return string
60 59
 	 */
61
-	public static function getNameByUid(string $uid, IUserManager $userManager){
60
+	public static function getNameByUid(string $uid, IUserManager $userManager) {
62 61
 		$u = $userManager->get($uid);
63 62
 		return $u->getDisplayName();
64 63
 	}
@@ -68,10 +67,10 @@  discard block
 block discarded – undo
68 67
 	 * @param array $results
69 68
 	 * @return array|mixed
70 69
 	 */
71
-	public static function getDirContents(string $dir, &$results = array()){
70
+	public static function getDirContents(string $dir, &$results = array()) {
72 71
 		$files = scandir($dir);
73 72
 
74
-		foreach($files as $value){
73
+		foreach($files as $value) {
75 74
 			$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
76 75
 			if(!is_dir($path)) {
77 76
 				$results[] = $path;
Please login to merge, or discard this patch.