Passed
Pull Request — master (#20)
by Peter
02:27
created
AnalyzerText/Filter/Informative.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -25,48 +25,48 @@
 block discarded – undo
25 25
  */
26 26
 class Informative extends Filter
27 27
 {
28
-    /**
29
-     * Список фильтров.
30
-     *
31
-     * @var WordList[]
32
-     */
33
-    private $filters = array();
28
+	/**
29
+	 * Список фильтров.
30
+	 *
31
+	 * @var WordList[]
32
+	 */
33
+	private $filters = array();
34 34
 
35
-    /**
36
-     * @param Text $iterator Текст
37
-     */
38
-    public function __construct(Text $iterator)
39
-    {
40
-        parent::__construct($iterator);
41
-        $this->filters = array(
42
-            new Interjection($this->getInnerIterator()),
43
-            new Particle($this->getInnerIterator()),
44
-            new Preposition($this->getInnerIterator()),
45
-            new Pronoun($this->getInnerIterator()),
46
-            new Union($this->getInnerIterator()),
47
-            new Adverb($this->getInnerIterator()),
48
-        );
49
-    }
35
+	/**
36
+	 * @param Text $iterator Текст
37
+	 */
38
+	public function __construct(Text $iterator)
39
+	{
40
+		parent::__construct($iterator);
41
+		$this->filters = array(
42
+			new Interjection($this->getInnerIterator()),
43
+			new Particle($this->getInnerIterator()),
44
+			new Preposition($this->getInnerIterator()),
45
+			new Pronoun($this->getInnerIterator()),
46
+			new Union($this->getInnerIterator()),
47
+			new Adverb($this->getInnerIterator()),
48
+		);
49
+	}
50 50
 
51
-    /**
52
-     * @see \FilterIterator::accept()
53
-     */
54
-    public function accept()
55
-    {
56
-        $word = $this->current();
57
-        // сначала ищем последовательности
58
-        foreach ($this->filters as $filter) {
59
-            if ($filter->isSequence($word)) {
60
-                return false;
61
-            }
62
-        }
63
-        // ищем простые и сложные формы
64
-        foreach ($this->filters as $filter) {
65
-            if ($filter->isSimple($word) || $filter->isComposite($word)) {
66
-                return false;
67
-            }
68
-        }
51
+	/**
52
+	 * @see \FilterIterator::accept()
53
+	 */
54
+	public function accept()
55
+	{
56
+		$word = $this->current();
57
+		// сначала ищем последовательности
58
+		foreach ($this->filters as $filter) {
59
+			if ($filter->isSequence($word)) {
60
+				return false;
61
+			}
62
+		}
63
+		// ищем простые и сложные формы
64
+		foreach ($this->filters as $filter) {
65
+			if ($filter->isSimple($word) || $filter->isComposite($word)) {
66
+				return false;
67
+			}
68
+		}
69 69
 
70
-        return true;
71
-    }
70
+		return true;
71
+	}
72 72
 }
Please login to merge, or discard this patch.