Completed
Push — device-groups ( d263d8...cfdf4d )
by Tony
03:49
created
app/Models/DeviceGroup.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * Extract an array of tables in a pattern
166 166
      *
167
-     * @param $pattern
167
+     * @param string $pattern
168 168
      * @return array
169 169
      */
170 170
     private function getTablesFromPattern($pattern)
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * Convert a v1 device group pattern to v2 style
204 204
      *
205 205
      * @param $pattern
206
-     * @return array
206
+     * @return string
207 207
      */
208 208
     private function convertV1Pattern($pattern)
209 209
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $related = $this->getRelation('deviceCountRelation')->first();
93 93
 
94 94
         // then return the count directly
95
-        return ($related) ? (int)$related->count : 0;
95
+        return ($related) ? (int) $related->count : 0;
96 96
     }
97 97
 
98 98
     /**
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         if (starts_with($pattern, '%')) {
192 192
             $pattern = $this->convertV1Pattern($pattern);
193 193
 
194
-            $this->pattern = $pattern;  //TODO: does not save, only updates this instance
194
+            $this->pattern = $pattern; //TODO: does not save, only updates this instance
195 195
         }
196 196
 
197 197
         return $pattern;
Please login to merge, or discard this patch.