Passed
Push — develop ( bdc829...f33858 )
by Andrew
10:43
created
src/RichVariables.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         Event::on(
84 84
             CraftVariable::class,
85 85
             CraftVariable::EVENT_INIT,
86
-            function (Event $event) {
86
+            function(Event $event) {
87 87
                 /** @var CraftVariable $variable */
88 88
                 $variable = $event->sender;
89 89
                 $variable->set('richVariables', RichVariablesVariable::class);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         Event::on(
94 94
             Plugins::class,
95 95
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
96
-            function (PluginEvent $event) {
96
+            function(PluginEvent $event) {
97 97
                 if ($event->plugin === $this) {
98 98
                     $request = Craft::$app->getRequest();
99 99
                     if ($request->isCpRequest) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         Event::on(
123 123
             UrlManager::class,
124 124
             UrlManager::EVENT_REGISTER_SITE_URL_RULES,
125
-            function (RegisterUrlRulesEvent $event) {
125
+            function(RegisterUrlRulesEvent $event) {
126 126
                 Craft::debug(
127 127
                     'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
128 128
                     __METHOD__
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         Event::on(
146 146
             Plugins::class,
147 147
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
148
-            function () {
148
+            function() {
149 149
                 $this->installRedactorPlugin();
150 150
             }
151 151
         );
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             Event::on(
177 177
                 RichText::class,
178 178
                 RichText::EVENT_REGISTER_PLUGIN_PATHS,
179
-                function (RegisterPluginPathsEvent $event) {
179
+                function(RegisterPluginPathsEvent $event) {
180 180
                     /** @var Plugin $redactor */
181 181
                     $redactor = Craft::$app->getPlugins()->getPlugin('redactor');
182 182
                     $versionDir = 'v1/';
Please login to merge, or discard this patch.
src/variables/ManifestVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         self::$config['server']['publicPath'] = $baseAssetsUrl;
52 52
         $useDevServer = getenv('NYS_PLUGIN_DEVSERVER');
53 53
         if ($useDevServer !== false) {
54
-            self::$config['useDevServer'] = (bool)$useDevServer;
54
+            self::$config['useDevServer'] = (bool) $useDevServer;
55 55
         }
56 56
     }
57 57
 
Please login to merge, or discard this patch.
src/helpers/Manifest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         $cache = Craft::$app->getCache();
404 404
         $file = $cache->getOrSet(
405 405
             self::CACHE_KEY.$path,
406
-            function () use ($path, $callback) {
406
+            function() use ($path, $callback) {
407 407
                 $result = null;
408 408
                 $contents = @file_get_contents($path);
409 409
                 if ($contents) {
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
     protected static function combinePaths(string ...$paths): string
434 434
     {
435 435
         $last_key = \count($paths) - 1;
436
-        array_walk($paths, function (&$val, $key) use ($last_key) {
436
+        array_walk($paths, function(&$val, $key) use ($last_key) {
437 437
             switch ($key) {
438 438
                 case 0:
439 439
                     $val = rtrim($val, '/ ');
Please login to merge, or discard this patch.