Passed
Pull Request — master (#1516)
by
unknown
04:28
created
lib/SP/Util/FileUtil.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,11 @@
 block discarded – undo
60 60
         $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST);
61 61
 
62 62
         foreach ($it as $file) {
63
-            if ($file->isDir()) rmdir($file->getPathname());
64
-            else unlink($file->getPathname());
63
+            if ($file->isDir()) {
64
+                rmdir($file->getPathname());
65
+            } else {
66
+                unlink($file->getPathname());
67
+            }
65 68
         }
66 69
 
67 70
         return rmdir($dir);
Please login to merge, or discard this patch.
lib/SP/Util/ErrorUtil.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
      * @param bool      $render
59 59
      */
60 60
     public static function showExceptionInView(Template $view,
61
-                                               Exception $e,
62
-                                               $replace = null,
63
-                                               $render = true)
61
+                                                Exception $e,
62
+                                                $replace = null,
63
+                                                $render = true)
64 64
     {
65 65
         switch (get_class($e)) {
66 66
             case UpdatedMasterPassException::class:
Please login to merge, or discard this patch.
app/modules/web/Controllers/AuthTokenController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@
 block discarded – undo
322 322
             $tokenUserId = $this->authTokenService->getById($id)->getUserId();
323 323
 
324 324
             if (!$this->acl->checkUserAccess(Acl::AUTHTOKEN_EDIT) || !$this->authTokenOnlyUser($tokenUserId)) {
325
-             return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation'));
325
+                return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation'));
326 326
             }
327 327
 
328 328
             $form = new AuthTokenForm($this->dic, $id);
Please login to merge, or discard this patch.