Completed
Pull Request — master (#170)
by Simonas
03:06
created
Controller/ProfilesController.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,9 @@
 block discarded – undo
65 65
             $profiles[] = $agg->getValue('key');
66 66
         }
67 67
 
68
-        if (empty($profiles) || !in_array('default', $profiles)) array_unshift($profiles, 'default');
68
+        if (empty($profiles) || !in_array('default', $profiles)) {
69
+            array_unshift($profiles, 'default');
70
+        }
69 71
 
70 72
         return new JsonResponse($profiles);
71 73
     }
Please login to merge, or discard this patch.
Controller/SettingsController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,6 @@
 block discarded – undo
71 71
     /**
72 72
      * Returns a json list of profiles
73 73
      *
74
-     * @param Request $request
75 74
      *
76 75
      * @return Response
77 76
      */
Please login to merge, or discard this patch.
Document/Setting.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
     /**
151 151
      * Set profile.
152 152
      *
153
-     * @param string|array $profile
153
+     * @param string[] $profile
154 154
      */
155 155
     public function setProfile($profile)
156 156
     {
Please login to merge, or discard this patch.