Skip to content

Commit

Permalink
Merge pull request #425 from City-of-Helsinki/update-configuration
Browse files Browse the repository at this point in the history
Automatic update
  • Loading branch information
Jussiles authored Aug 31, 2023
2 parents b165de9 + 4e6b1ba commit 897fcc9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 50 deletions.
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions conf/cmi/language/fi/views.view.redirect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ display:
status_code:
group_info:
group_items:
15:
title: '300 Useita valintoja'
16:
title: '301 Pysyvästi siirretty'
17:
title: '302 Löydetty'
18:
title: '303 Kts. toinen'
19:
title: '304 Muuttamaton'
20:
title: '305 Käytä proxyä'
7:
title: '300 Multiple Choices'
label: Tilakoodi
Expand Down
2 changes: 1 addition & 1 deletion conf/cmi/views.view.redirect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ display:
type: basic
options:
submit_button: Filter
reset_button: false
reset_button: true
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
Expand Down
4 changes: 2 additions & 2 deletions tools/make/qa.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ endef

ifeq ($(CS_INSTALLED)-$(CS_CONF_EXISTS),yes-yes)
define cs
$(call docker_compose_exec,$(1))
$(call docker_compose_exec,vendor/bin/$(1))
endef
else ifeq ($(CS_INSTALLED)-$(CS_CONF_EXISTS),yes-no)
define cs
$(call docker_compose_exec,$(1) --standard=$(CS_STANDARDS) --extensions=$(CS_EXTS) --ignore=node_modules $(2))
$(call docker_compose_exec,vendor/bin/$(1) --standard=$(CS_STANDARDS) --extensions=$(CS_EXTS) --ignore=node_modules $(2))
endef
else
define cs
Expand Down
12 changes: 6 additions & 6 deletions tools/make/symfony.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SF_FRESH_TARGETS := up build sf-cw sf-about sf-open
FIX_TARGETS += fix-symfony
LINT_PHP_TARGETS += lint-symfony
CS_FIXER_INSTALLED := $(shell test -f $(COMPOSER_JSON_PATH)/vendor/bin/php-cs-fixer && echo yes || echo no)

PHONY += encore-dev
encore-dev: ## Do Encore development build
Expand Down Expand Up @@ -49,13 +50,12 @@ fresh: ## Build fresh development environment
PHONY += fix-symfony
fix-symfony: ## Fix Symfony code style
$(call step,Fix Symfony code style...\n)
$(call docker_compose_exec,PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --diff --ansi)
$(call cs_symfony,fix --ansi src)

PHONY += lint-symfony
lint-symfony: PATHS := src
lint-symfony: ## Lint Symfony code style
$(call step,Lint Symfony code style...\n)
$(call cs_symfony,$(PATHS))
$(call cs_symfony,fix --dry-run --diff --ansi src)

ifeq ($(RUN_ON),docker)
define sf_console
Expand All @@ -67,12 +67,12 @@ define sf_console
endef
endif

ifeq ($(CS_INSTALLED),yes)
ifeq ($(CS_FIXER_INSTALLED),yes)
define cs_symfony
$(call docker_compose_exec,vendor/bin/phpcs --ignore=node_modules $(1))
$(call docker_compose_exec,vendor/bin/php-cs-fixer $(1))
endef
else
define cs_symfony
$(call warn,CodeSniffer is not installed!)
$(call warn,PHP CS Fixer is not installed!)
endef
endif

0 comments on commit 897fcc9

Please sign in to comment.