Skip to content

Commit

Permalink
ignore development files on production env
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <[email protected]>
  • Loading branch information
MarioRadu committed Dec 12, 2024
1 parent a1671b8 commit 67f686c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/composer-post-install-script.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ function getEnvironment(): string

chdir(dirname(__DIR__));

echo __DIR__ . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . PHP_EOL;
echo __DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . PHP_EOL;

Check failure on line 56 in bin/composer-post-install-script.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Concat operator must be surrounded by a single space

Check failure on line 56 in bin/composer-post-install-script.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Concat operator must be surrounded by a single space
echo __DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist'. PHP_EOL;

Check failure on line 57 in bin/composer-post-install-script.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Expected at least 1 space before "."; 0 found

Check failure on line 57 in bin/composer-post-install-script.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Concat operator must be surrounded by a single space

Check failure on line 57 in bin/composer-post-install-script.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Expected at least 1 space before "."; 0 found

Check failure on line 57 in bin/composer-post-install-script.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Concat operator must be surrounded by a single space

//echo realpath(__DIR__ . )
echo realpath(__DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist');

echo "Using environment setting: " . getEnvironment() . PHP_EOL;

Expand Down

0 comments on commit 67f686c

Please sign in to comment.