Completed
Push — master ( 34d5f0...715aef )
by Chauncey
07:28
created
src/Charcoal/Admin/Widget/Graph/AbstractTimeGraphWidget.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -232,9 +232,9 @@
 block discarded – undo
232 232
         return $this->dateInterval;
233 233
     }
234 234
 
235
-     /**
236
-      * @return TimeGraphWidgetInterface Chainable
237
-      */
235
+        /**
236
+         * @return TimeGraphWidgetInterface Chainable
237
+         */
238 238
     protected function setGroupingTypeByHour()
239 239
     {
240 240
         $this->setDateFormat('Y-m-d H:i');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@
 block discarded – undo
309 309
                 'end_date'   => $this->endDate()->format($this->dateFormat())
310 310
             ]);
311 311
 
312
-            $this->dbRows = $result->fetchAll((PDO::FETCH_GROUP|PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC));
312
+            $this->dbRows = $result->fetchAll((PDO::FETCH_GROUP | PDO::FETCH_UNIQUE | PDO::FETCH_ASSOC));
313 313
         }
314 314
 
315 315
         return $this->dbRows;
Please login to merge, or discard this patch.
src/Charcoal/Admin/Widget/Graph/GraphWidgetInterface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
      */
52 52
     public function series();
53 53
 
54
-     /**
55
-      * @return string JSONified series structure.
56
-      */
54
+        /**
55
+         * @return string JSONified series structure.
56
+         */
57 57
     public function seriesJson();
58 58
 }
Please login to merge, or discard this patch.
src/Charcoal/Admin/Property/Input/AudioInput.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@
 block discarded – undo
102 102
         return $this->recordingEnabled;
103 103
     }
104 104
 
105
-     /**
106
-      * @param boolean $fileEnabled If file upload is enabled or not for this widget.
107
-      * @return AudioInput Chainable
108
-      */
105
+        /**
106
+         * @param boolean $fileEnabled If file upload is enabled or not for this widget.
107
+         * @return AudioInput Chainable
108
+         */
109 109
     public function setFileEnabled($fileEnabled)
110 110
     {
111 111
         $this->fileEnabled = !!$fileEnabled;
Please login to merge, or discard this patch.
src/Charcoal/Admin/Property/Input/MapWidgetInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      */
156 156
     public function defaultMapOptions()
157 157
     {
158
-        return [ 'api_key' => $this->apiKey() ];
158
+        return ['api_key' => $this->apiKey()];
159 159
     }
160 160
 
161 161
     /**
Please login to merge, or discard this patch.
src/Charcoal/Admin/Action/Object/AbstractSaveAction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
     public function addFeedbackFromValidation(ModelInterface $obj, $filters = null)
60 60
     {
61 61
         $validator = $obj->validator();
62
-        $levels    = [ ModelValidator::ERROR, ModelValidator::WARNING, ModelValidator::NOTICE ];
62
+        $levels    = [ModelValidator::ERROR, ModelValidator::WARNING, ModelValidator::NOTICE];
63 63
 
64 64
         if (is_string($filters) && in_array($filters, $levels)) {
65
-            $results = call_user_func([ $validator, $filters.'Results' ]);
65
+            $results = call_user_func([$validator, $filters.'Results']);
66 66
             foreach ($results as $result) {
67 67
                 $this->addFeedback($result->level(), $result->message());
68 68
             }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function results()
95 95
     {
96
-        $results =  [
96
+        $results = [
97 97
             'success'   => $this->success(),
98 98
             'obj_id'    => null,
99 99
             'obj'       => null,
Please login to merge, or discard this patch.
src/Charcoal/Admin/ServiceProvider/AclServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
             $acl = new Acl();
59 59
 
60
-             // Add admin resource for ACL
60
+                // Add admin resource for ACL
61 61
             $acl->addResource(new AclResource($resourceName));
62 62
 
63 63
             // Setup default permissions (from admin config)
Please login to merge, or discard this patch.
src/Charcoal/Admin/Script/Translation/TranslateScript.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 $i = 0;
133 133
                 $t = count($array[$index]);
134 134
 
135
-                for (; $i<$t; $i++) {
135
+                for (; $i < $t; $i++) {
136 136
                     $orig = $array[$index][$i];
137 137
                     if (!isset($translations[$orig])) {
138 138
                         $translations[$orig] = [
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $max = $this->maxRecursiveLevel();
163 163
         $i = 1;
164 164
         $files = glob($pattern, $flags);
165
-        foreach (glob(dirname($pattern).'/*', (GLOB_ONLYDIR|GLOB_NOSORT)) as $dir) {
165
+        foreach (glob(dirname($pattern).'/*', (GLOB_ONLYDIR | GLOB_NOSORT)) as $dir) {
166 166
             $files = array_merge($files, $this->globRecursive($dir.'/'.basename($pattern), $flags));
167 167
             $i++;
168 168
             if ($i >= $max) {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         fputcsv($file, $columns, $separator, $enclosure);
301 301
 
302 302
         foreach ($translations as $orig => $translation) {
303
-            $data = [ $orig, $translation['translation'], $translation['context'] ];
303
+            $data = [$orig, $translation['translation'], $translation['context']];
304 304
             fputcsv($file, $data, $separator, $enclosure);
305 305
         }
306 306
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         $orig = $this->origLanguage();
404 404
         $opposites = $this->oppositeLanguages();
405 405
 
406
-        $columns = [ $orig ];
406
+        $columns = [$orig];
407 407
 
408 408
         foreach ($opposites as $lang) {
409 409
             $columns[] = $lang;
Please login to merge, or discard this patch.
src/Charcoal/Admin/Action/LogoutAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         if ($token->source()->tableExists()) {
45 45
             $table = $token->source()->table();
46 46
             $q = 'DELETE FROM '.$table.' WHERE username = :username';
47
-            $token->source()->dbQuery($q, [ 'username' => $user->username() ]);
47
+            $token->source()->dbQuery($q, ['username' => $user->username()]);
48 48
         }
49 49
 
50 50
         return $this;
Please login to merge, or discard this patch.
src/Charcoal/Admin/Script/Notification/ProcessHourlyScript.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
         return 'hourly';
27 27
     }
28 28
 
29
-      /**
30
-       * Retrieve the "minimal" date that the revisions should have been made for this script.
31
-       * @return DateTime
32
-       */
29
+        /**
30
+         * Retrieve the "minimal" date that the revisions should have been made for this script.
31
+         * @return DateTime
32
+         */
33 33
     protected function startDate()
34 34
     {
35 35
         $d = new DateTime('1 hour ago');
Please login to merge, or discard this patch.