From 2efae741bb2e2777d5fbe2cbd4ce7375ea0c63bd Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sun, 3 Feb 2019 01:05:06 +0000 Subject: [PATCH] Simplify expression --- src/Components/Blocks/Table.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Blocks/Table.php b/src/Components/Blocks/Table.php index eb43d4d..25ab542 100644 --- a/src/Components/Blocks/Table.php +++ b/src/Components/Blocks/Table.php @@ -103,8 +103,7 @@ final class Table implements ContinuableBlock if ( \count($this->alignments) !== 1 - && \substr($Context->line()->text(), 0, 1) !== '|' - && !\strpos($Context->line()->text(), '|') + && \strpos($Context->line()->text(), '|') === false ) { return null; }