Skip to content

https://github.com/igniphp/stilus/issues/35 #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bluebat-pl
Copy link
Collaborator

  1. Remove bad comments
  2. Wrap condition

@bluebat-pl bluebat-pl added the Api Issues that belong to platform's api label Aug 29, 2018
@@ -83,8 +83,8 @@ private function setupServer(array $config): Server
$httpConfiguration->setLogFile(STILUS_DIR . DIRECTORY_SEPARATOR . $config['log_file']);
}

define('STILUS_SERVER_ENABLED', true);
define('STILUS_SERVER_START', time());
\define('STILUS_SERVER_ENABLED', true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bluebat-pl Please import function to current namespace.

isset($config['api']['http_server']['enable']) &&
$config['api']['http_server']['enable']
) {
if ($this->isServerEnable($config))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bluebat-pl If you need it to be more expressive please use variable: $isServerEnabled = .... instead method call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Api Issues that belong to platform's api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants