Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag authored and StyleCIBot committed Mar 13, 2016
1 parent ab1a6ab commit 969b205
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Decoda/Hook/EmoticonHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function getSmilies()
*/
public function hasSmiley($smiley)
{
return (boolean) $this->getMatcher()->match($smiley);
return (bool) $this->getMatcher()->match($smiley);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Emoticon/Loader/YamlFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private function parseImports(EmoticonCollection $collection, $content, $file)

foreach ($content['imports'] as $import) {
$this->setCurrentDir(dirname($file));
$subCollection = $this->import($import['resource'], null, isset($import['ignore_errors']) ? (Boolean) $import['ignore_errors'] : false, $file);
$subCollection = $this->import($import['resource'], null, isset($import['ignore_errors']) ? (bool) $import['ignore_errors'] : false, $file);
$collection->addCollection($subCollection);
}
}
Expand Down
4 changes: 2 additions & 2 deletions Emoticon/Matcher/Dumper/PhpMatcherDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private function compileSmileyMatch(EmoticonCollection $emoticons)
EOF;
}
}
$code .= <<<EOF
$code .= <<<'EOF'
default:
break;
}
Expand Down Expand Up @@ -149,7 +149,7 @@ private function compileSmilies(EmoticonCollection $emoticons)
EOF;
}
}
$code .= <<<EOF
$code .= <<<'EOF'
)
EOF;
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/FMBbcodeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function createFullConfiguration()

protected function getFullConfig()
{
$yaml = <<<EOF
$yaml = <<<'EOF'
filter_sets:
forum_post_filter:
locale: ru
Expand Down
18 changes: 9 additions & 9 deletions Tests/Templating/BbcodeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public function testUrlFilter($value, $expected)
public function dataUrlTags()
{
return array(
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'),
array('[url="http://example.com"]Example[/url]','<a href="http://example.com">Example</a>'),
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'),
array('[url="http://example.com"]Example[/url]', '<a href="http://example.com">Example</a>'),
);
}

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

Expand All @@ -84,7 +84,7 @@ public function testQuoteFilter($value, $expected)
public function dataQuoteTags()
{
return array(
array('[quote]text[/quote]','text'),
array('[quote]text[/quote]', 'text'),
);
}

Expand All @@ -102,8 +102,8 @@ public function testStrict($value, $expected)
public function dataStrict()
{
return array(
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'),
array('[url=http://example.com]Example[/url]','<a href="http://example.com">Example</a>'),
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'),
array('[url=http://example.com]Example[/url]', '<a href="http://example.com">Example</a>'),
);
}

Expand Down Expand Up @@ -179,8 +179,8 @@ public function dataDefaultFilterSet()
array('[sub]subscript[/sub]', '<sub>subscript</sub>'),
array('[sup]superscript[/sup]', '<sup>superscript</sup>'),
array('[abbr="Object relational mapper"]ORM[/abbr]', '<abbr title="Object relational mapper">ORM</abbr>'),
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'),
array('[url="http://example.com"]Example[/url]','<a href="http://example.com">Example</a>'),
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'),
array('[url="http://example.com"]Example[/url]', '<a href="http://example.com">Example</a>'),
array('[email][email protected][/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>'),
);
}
Expand Down

0 comments on commit 969b205

Please sign in to comment.