Completed
Push — master ( 406ee6...c6d2a0 )
by
unknown
08:12
created
src/Charcoal/Admin/Script/Notification/AbstractNotificationScript.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             'now' => [
79 79
                 'longPrefix'    => 'now',
80 80
                 'description'   => 'The "relative" time this script should run at. '.
81
-                                   'If nothing is provided, default "now" is used.',
81
+                                    'If nothing is provided, default "now" is used.',
82 82
                 'defaultValue'  => 'now'
83 83
             ]
84 84
         ];
Please login to merge, or discard this patch.
src/Charcoal/Admin/Script/User/CreateScript.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
                 $this->translator()->translate('Username can not be empty.')
196 196
             );
197 197
         }
198
-        $user       = $this->modelFactory()->create(User::class);
198
+        $user = $this->modelFactory()->create(User::class);
199 199
         $user->load($username);
200 200
         if ($user->username()) {
201 201
             throw new Exception(sprintf(
Please login to merge, or discard this patch.
src/Charcoal/Admin/Action/System/StaticWebsite/UpdateAllAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     protected function globRecursive($dir, $pattern, $flags = 0)
160 160
     {
161 161
         $files = glob($dir.'/'.$pattern, $flags);
162
-        foreach (glob($dir.'/*', (GLOB_ONLYDIR|GLOB_NOSORT)) as $dir) {
162
+        foreach (glob($dir.'/*', (GLOB_ONLYDIR | GLOB_NOSORT)) as $dir) {
163 163
             $files = array_merge($files, $this->globRecursive($dir, $pattern, $flags));
164 164
         }
165 165
         return $files;
Please login to merge, or discard this patch.
src/Charcoal/Admin/Support/BaseUrlTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     protected function isRelativeUri($uri)
108 108
     {
109 109
         if ($uri && !parse_url($uri, PHP_URL_SCHEME)) {
110
-            if (!in_array($uri[0], [ '/', '#', '?' ])) {
110
+            if (!in_array($uri[0], ['/', '#', '?'])) {
111 111
                 return true;
112 112
             }
113 113
         }
Please login to merge, or discard this patch.
src/Charcoal/Admin/Property/Display/ImageDisplay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         }
134 134
 
135 135
         $parts = parse_url($val);
136
-        if (empty($parts['scheme']) && !in_array($val[0], [ '/', '#', '?' ])) {
136
+        if (empty($parts['scheme']) && !in_array($val[0], ['/', '#', '?'])) {
137 137
             $path  = isset($parts['path']) ? ltrim($parts['path'], '/') : '';
138 138
             $query = isset($parts['query']) ? $parts['query'] : '';
139 139
             $hash  = isset($parts['fragment']) ? $parts['fragment'] : '';
Please login to merge, or discard this patch.
src/Charcoal/Admin/Widget/FormPropertyWidget.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
      */
471 471
     public function supportedOutputTypes()
472 472
     {
473
-        return [ static::PROPERTY_CONTROL, static::PROPERTY_DISPLAY ];
473
+        return [static::PROPERTY_CONTROL, static::PROPERTY_DISPLAY];
474 474
     }
475 475
 
476 476
     /**
@@ -1139,7 +1139,7 @@  discard block
 block discarded – undo
1139 1139
      */
1140 1140
     public function inputNameAsCssClass()
1141 1141
     {
1142
-        $name = str_replace([ ']', '[' ], [ '', '-' ], $this->propertyIdent());
1142
+        $name = str_replace([']', '['], ['', '-'], $this->propertyIdent());
1143 1143
         $name = $this->camelize($name);
1144 1144
 
1145 1145
         return $name;
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
      */
1179 1179
     protected function defaultFormFieldCssClasses()
1180 1180
     {
1181
-        $classes = [ 'form-field', 'form-field-'.$this->widgetId() ];
1181
+        $classes = ['form-field', 'form-field-'.$this->widgetId()];
1182 1182
 
1183 1183
         if ($this->prop()) {
1184 1184
             $classes[] = 'form-property-'.$this->inputNameAsCssClass();
@@ -1250,7 +1250,7 @@  discard block
 block discarded – undo
1250 1250
      */
1251 1251
     protected function defaultFormGroupCssClasses()
1252 1252
     {
1253
-        return [ 'form-group' ];
1253
+        return ['form-group'];
1254 1254
     }
1255 1255
 
1256 1256
     /**
Please login to merge, or discard this patch.
src/Charcoal/Admin/Widget/FormWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
     public function sidebars()
186 186
     {
187 187
         $sidebars = $this->sidebars;
188
-        uasort($sidebars, [ $this, 'sortSidebarsByPriority' ]);
188
+        uasort($sidebars, [$this, 'sortSidebarsByPriority']);
189 189
         foreach ($sidebars as $sidebarIdent => $sidebar) {
190 190
             if (!$sidebar->active()) {
191 191
                 continue;
Please login to merge, or discard this patch.
src/Charcoal/Admin/Action/System/StaticWebsite/AddAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $ret = true;
64 64
         // Previous static version must be deleted in order to generate a new one.
65 65
         if (file_exists($outputDir.'/index.php')) {
66
-            $ret =unlink($outputDir.'/index.php');
66
+            $ret = unlink($outputDir.'/index.php');
67 67
         }
68 68
         if (file_exists($outputDir.'/index.html')) {
69 69
             $ret = unlink($outputDir.'/index.html');
Please login to merge, or discard this patch.
src/Charcoal/Admin/Script/Tools/StaticWebsite/UpdateScript.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     private function globRecursive($dir, $pattern, $flags = 0)
107 107
     {
108 108
         $files = glob($dir.'/'.$pattern, $flags);
109
-        foreach (glob($dir.'/*', (GLOB_ONLYDIR|GLOB_NOSORT)) as $dir) {
109
+        foreach (glob($dir.'/*', (GLOB_ONLYDIR | GLOB_NOSORT)) as $dir) {
110 110
             $files = array_merge($files, $this->globRecursive($dir, $pattern, $flags));
111 111
         }
112 112
         return $files;
Please login to merge, or discard this patch.