Completed
Push — master ( 6e1671...1f3fa8 )
by Mike
02:28
created
src/Purifier/Html.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $path = parse_url($base, PHP_URL_PATH);
85 85
         $scheme = parse_url($base, PHP_URL_SCHEME);
86 86
 
87
-        return preg_replace_callback($pattern, function ($matches) use ($base, $scheme, $host, $path) {
87
+        return preg_replace_callback($pattern, function($matches) use ($base, $scheme, $host, $path) {
88 88
             $hrefValue = $matches[0];
89 89
 
90 90
             if (mb_strpos($hrefValue, '//') === 0) {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     private function convertCode($content)
150 150
     {
151 151
         // strpos with array support
152
-        $strposa = function ($haystack, $needles = []) {
152
+        $strposa = function($haystack, $needles = []) {
153 153
             $chr = [];
154 154
             foreach ($needles as $needle) {
155 155
                 $res = mb_strpos($haystack, $needle);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
         $content = str_replace(['<pre>', '<pre ', '</pre>'], ['<code>', '<code ', '</code>'], $content);
169 169
 
170
-        return preg_replace_callback('/<code(.*?)>(.*?)<\/code>/s', function ($matches) use ($strposa) {
170
+        return preg_replace_callback('/<code(.*?)>(.*?)<\/code>/s', function($matches) use ($strposa) {
171 171
             $noLineBreaks = str_replace(["\r\n", "\r", "\n"], '<br />', $matches[0]);
172 172
             $code = str_replace(['<br></br>', '<br>', '<br/>', '<br />'], PHP_EOL, $noLineBreaks);
173 173
 
Please login to merge, or discard this patch.
src/Spec/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $title = $this->formatter->asTitle(sprintf('SugarCRM upgrade: %s', $context)) . $delimiter;
57 57
 
58 58
             return $title . implode($delimiter, array_map(
59
-                function ($element) use ($context) {
59
+                function($element) use ($context) {
60 60
                     return $this->elementGenerator->generate($element, $context);
61 61
                 },
62 62
                 $elements
Please login to merge, or discard this patch.
src/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 // application or vendor context
4 4
 $autoload = [
5 5
     __DIR__ . '/../vendor/autoload.php', // application bin or phar
6
-    __DIR__ . '/../autoload.php',        // vendor bin
7
-    __DIR__ . '/../../../autoload.php',  // vendor
6
+    __DIR__ . '/../autoload.php', // vendor bin
7
+    __DIR__ . '/../../../autoload.php', // vendor
8 8
 ];
9 9
 
10 10
 foreach ($autoload as $file) {
Please login to merge, or discard this patch.
src/Application.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
     /**
146 146
      * Defines if current execution context supports self updates.
147 147
      *
148
-     * @return string
148
+     * @return boolean
149 149
      */
150 150
     private function isUpdateAvailable()
151 151
     {
Please login to merge, or discard this patch.
src/Data/DataAwareInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,5 +4,8 @@
 block discarded – undo
4 4
 
5 5
 interface DataAwareInterface
6 6
 {
7
+    /**
8
+     * @return void
9
+     */
7 10
     public function setDataManager(Manager $dataManager);
8 11
 }
Please login to merge, or discard this patch.
src/Element/ElementInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -6,11 +6,23 @@
 block discarded – undo
6 6
 
7 7
 interface ElementInterface
8 8
 {
9
+    /**
10
+     * @return string
11
+     */
9 12
     public function getTitle();
10 13
 
14
+    /**
15
+     * @return string
16
+     */
11 17
     public function getBody(Context $context);
12 18
 
19
+    /**
20
+     * @return integer
21
+     */
13 22
     public function getOrder();
14 23
 
24
+    /**
25
+     * @return boolean
26
+     */
15 27
     public static function isRelevantTo(Context $context);
16 28
 }
Please login to merge, or discard this patch.
src/Formatter/FormatterInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -4,9 +4,18 @@
 block discarded – undo
4 4
 
5 5
 interface FormatterInterface
6 6
 {
7
+    /**
8
+     * @return string
9
+     */
7 10
     public function asTitle($text, $level = 1);
8 11
 
12
+    /**
13
+     * @return string
14
+     */
9 15
     public function asBody($text);
10 16
 
17
+    /**
18
+     * @return string
19
+     */
11 20
     public function getDelimiter();
12 21
 }
Please login to merge, or discard this patch.
src/Template/RendererAwareInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,5 +4,8 @@
 block discarded – undo
4 4
 
5 5
 interface RendererAwareInterface
6 6
 {
7
+    /**
8
+     * @return void
9
+     */
7 10
     public function setRenderer(RendererInterface $renderer);
8 11
 }
Please login to merge, or discard this patch.
src/Template/RendererInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@
 block discarded – undo
9 9
      *
10 10
      * @param $name
11 11
      * @param $arguments
12
+     * @return string
12 13
      */
13 14
     public function render($name, $arguments);
14 15
 }
Please login to merge, or discard this patch.