Passed
Push — v1 ( 90d4e1...ac3526 )
by Andrew
19:00 queued 09:31
created
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.
src/variables/ManifestVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         self::$config['server']['publicPath'] = $baseAssetsUrl;
56 56
         $useDevServer = getenv('NYS_PLUGIN_DEVSERVER');
57 57
         if ($useDevServer !== false) {
58
-            self::$config['useDevServer'] = (bool)$useDevServer;
58
+            self::$config['useDevServer'] = (bool) $useDevServer;
59 59
         }
60 60
     }
61 61
 
Please login to merge, or discard this patch.
src/services/Transcode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
                 .' -y '.escapeshellarg($destAudioPath);
397 397
             
398 398
             if (!$audioOptions['synchronous']) {
399
-                $ffmpegCmd .=' 1> '.$progressFile.' 2>&1 & echo $!';
399
+                $ffmpegCmd .= ' 1> '.$progressFile.' 2>&1 & echo $!';
400 400
                 // Make sure there isn't a lockfile for this audio file already
401 401
                 $lockFile = sys_get_temp_dir().DIRECTORY_SEPARATOR.$destAudioFile.'.lock';
402 402
                 $oldPid = @file_get_contents($lockFile);
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
                 
422 422
                 if ($audioOptions['synchronous']) {
423 423
                     Craft::info($ffmpegCmd, __METHOD__);
424
-                    $url = $settings['transcoderUrls']['audio'] . $subfolder ?? $settings['transcoderUrls']['default'];
424
+                    $url = $settings['transcoderUrls']['audio'].$subfolder ?? $settings['transcoderUrls']['default'];
425 425
                     $result = Craft::getAlias($url).$destAudioFile;
426 426
                 } else {
427 427
                     Craft::info($ffmpegCmd."\nffmpeg PID: ".$pid, __METHOD__);
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
                     && (strpos($summaryResult['videoFrameRate'], '/') !== false)
497 497
                 ) {
498 498
                     $parts = explode('/', $summaryResult['videoFrameRate']);
499
-                    $summaryResult['videoFrameRate'] = (float)$parts[0] / (float)$parts[1];
499
+                    $summaryResult['videoFrameRate'] = (float) $parts[0] / (float) $parts[1];
500 500
                 }
501 501
                 $result = $summaryResult;
502 502
             }
Please login to merge, or discard this patch.