Skip to content

Commit adf888e

Browse files
committed
Merge pull request #137 from helios-ag/analysis-zD2e1b
Applied fixes from StyleCI
2 parents ab1a6ab + 969b205 commit adf888e

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

Decoda/Hook/EmoticonHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function getSmilies()
260260
*/
261261
public function hasSmiley($smiley)
262262
{
263-
return (boolean) $this->getMatcher()->match($smiley);
263+
return (bool) $this->getMatcher()->match($smiley);
264264
}
265265

266266
/**

Emoticon/Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function parseImports(EmoticonCollection $collection, $content, $file)
102102

103103
foreach ($content['imports'] as $import) {
104104
$this->setCurrentDir(dirname($file));
105-
$subCollection = $this->import($import['resource'], null, isset($import['ignore_errors']) ? (Boolean) $import['ignore_errors'] : false, $file);
105+
$subCollection = $this->import($import['resource'], null, isset($import['ignore_errors']) ? (bool) $import['ignore_errors'] : false, $file);
106106
$collection->addCollection($subCollection);
107107
}
108108
}

Emoticon/Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function compileSmileyMatch(EmoticonCollection $emoticons)
102102
EOF;
103103
}
104104
}
105-
$code .= <<<EOF
105+
$code .= <<<'EOF'
106106
default:
107107
break;
108108
}
@@ -149,7 +149,7 @@ private function compileSmilies(EmoticonCollection $emoticons)
149149
EOF;
150150
}
151151
}
152-
$code .= <<<EOF
152+
$code .= <<<'EOF'
153153
154154
)
155155
EOF;

Tests/DependencyInjection/FMBbcodeExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function createFullConfiguration()
5252

5353
protected function getFullConfig()
5454
{
55-
$yaml = <<<EOF
55+
$yaml = <<<'EOF'
5656
filter_sets:
5757
forum_post_filter:
5858
locale: ru

Tests/Templating/BbcodeExtensionTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function testUrlFilter($value, $expected)
4646
public function dataUrlTags()
4747
{
4848
return array(
49-
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'),
50-
array('[url="http://example.com"]Example[/url]','<a href="http://example.com">Example</a>'),
49+
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'),
50+
array('[url="http://example.com"]Example[/url]', '<a href="http://example.com">Example</a>'),
5151
);
5252
}
5353

@@ -65,8 +65,8 @@ public function testImgFilter($value, $expected)
6565
public function dataImgTags()
6666
{
6767
return array(
68-
array('[img]http://github.com/picture.jpg[/img]','<img src="http://github.com/picture.jpg" alt="" />'),
69-
array('[img width="500"]http://github.com/picture.jpg[/img]','<img width="500" src="http://github.com/picture.jpg" alt="" />'),
68+
array('[img]http://github.com/picture.jpg[/img]', '<img src="http://github.com/picture.jpg" alt="" />'),
69+
array('[img width="500"]http://github.com/picture.jpg[/img]', '<img width="500" src="http://github.com/picture.jpg" alt="" />'),
7070
);
7171
}
7272

@@ -84,7 +84,7 @@ public function testQuoteFilter($value, $expected)
8484
public function dataQuoteTags()
8585
{
8686
return array(
87-
array('[quote]text[/quote]','text'),
87+
array('[quote]text[/quote]', 'text'),
8888
);
8989
}
9090

@@ -102,8 +102,8 @@ public function testStrict($value, $expected)
102102
public function dataStrict()
103103
{
104104
return array(
105-
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'),
106-
array('[url=http://example.com]Example[/url]','<a href="http://example.com">Example</a>'),
105+
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'),
106+
array('[url=http://example.com]Example[/url]', '<a href="http://example.com">Example</a>'),
107107
);
108108
}
109109

@@ -179,8 +179,8 @@ public function dataDefaultFilterSet()
179179
array('[sub]subscript[/sub]', '<sub>subscript</sub>'),
180180
array('[sup]superscript[/sup]', '<sup>superscript</sup>'),
181181
array('[abbr="Object relational mapper"]ORM[/abbr]', '<abbr title="Object relational mapper">ORM</abbr>'),
182-
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'),
183-
array('[url="http://example.com"]Example[/url]','<a href="http://example.com">Example</a>'),
182+
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'),
183+
array('[url="http://example.com"]Example[/url]', '<a href="http://example.com">Example</a>'),
184184
array('[email]email@domain.com[/email]', '<a href="mailto:&#101;&#109;&#97;&#105;&#108;&#64;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;">&#101;&#109;&#97;&#105;&#108;&#64;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;</a>'),
185185
);
186186
}

0 commit comments

Comments
 (0)