Skip to content

Commit 53c44ad

Browse files
committed
update code to conform to new linting rules
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
1 parent 64d3267 commit 53c44ad

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env rake
22
# encoding: utf-8
3+
# frozen_string_literal: true
34

45
require 'rake/testtask'
56
require 'rubocop/rake_task'

controls/php_conf.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# encoding: utf-8
2+
# frozen_string_literal: true
3+
24
#
35
# Copyright 2015, Dominik Richter
46
# Copyright 2016, Christoph Hartmann

libraries/php.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# encoding: utf-8
2+
# frozen_string_literal: true
3+
24
#
35
# Copyright 2016, Christoph Hartmann
46
#
@@ -33,6 +35,7 @@ class PHP < Inspec.resource(1)
3335
"
3436

3537
def initialize(options = {})
38+
super
3639
@options = options
3740
end
3841

@@ -49,13 +52,15 @@ def config(param)
4952
def extension(extension)
5053
ext = Class.new do
5154
def initialize(parent, extension)
55+
super
5256
@parent = parent
5357
@extension = extension
5458
end
5559

5660
def loaded?
5761
cmd = @parent._run("#{@parent._php_executable} --ri '#{@extension}'")
5862
return true if cmd.exit_status.zero?
63+
5964
false
6065
end
6166

@@ -90,6 +95,7 @@ class PHPConfig < PHP
9095
"
9196

9297
def initialize(param)
98+
super
9399
warn '[DEPRECATION] `php_config(param)` is deprecated. Please use `php.config(param)` instead.'
94100
@param = param
95101
end
@@ -118,6 +124,7 @@ class PHPExtension < PHP
118124
"
119125

120126
def initialize(extension)
127+
super
121128
warn '[DEPRECATION] `php_extension(ext)` is deprecated. Please use `php.extension(ext)` instead.'
122129
@extension = extension
123130
end

0 commit comments

Comments
 (0)