Completed
Push — develop ( b29358...700c3c )
by Dan
03:22
created
src/Traits/CopyBasedIntroduction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     /**
63 63
      * @param string $copy
64 64
      * @param string $ellipse
65
-     * @return mixed
65
+     * @return string
66 66
      */
67 67
     protected function truncateWords($copy, $ellipse)
68 68
     {
Please login to merge, or discard this patch.
src/Traits/Introduction.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     /**
57 57
      * Get introduction
58 58
      *
59
-     * @return null|string
59
+     * @return string
60 60
      */
61 61
     public function getIntroduction()
62 62
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             /** @noinspection PhpUndefinedFieldInspection */
41 41
             $this->introduction = null;
42 42
         }
43
-        elseif (!is_scalar($introduction)) {
43
+        elseif ( ! is_scalar($introduction)) {
44 44
             throw InvalidArgumentException::create(
45 45
                 'null or string',
46 46
                 $introduction
Please login to merge, or discard this patch.
src/Traits/Copy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             /** @noinspection PhpUndefinedFieldInspection */
41 41
             $this->copy = null;
42 42
         }
43
-        elseif (!is_scalar($copy)) {
43
+        elseif ( ! is_scalar($copy)) {
44 44
             throw InvalidArgumentException::create(
45 45
                 'string (or scalar)',
46 46
                 $copy
Please login to merge, or discard this patch.