MigrationsDirectory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
0 ignored issues
show
Coding Style introduced by
Class found in ".php" file; use ".inc" extension instead
Loading history...
Coding Style introduced by
This file is missing a doc comment.
Loading history...
Coding Style introduced by
The PHP open tag does not have a corresponding PHP close tag
Loading history...
Coding Style introduced by
Filename "MigrationsDirectory.php" doesn't match the expected filename "migrationsdirectory.php"
Loading history...
introduced by
An error occurred during processing; checking has been aborted. The error message was: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/scrutinizer/.analysis/phpcs/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php on line 467
Loading history...
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
declare(strict_types=1);
4
5
namespace SixtyEightPublishers\DoctrineBridge\DI;
6
7
final class MigrationsDirectory
0 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for class MigrationsDirectory
Loading history...
introduced by
Missing class doc comment
Loading history...
8
{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration for class MigrationsDirectory
Loading history...
introduced by
Opening brace should be on the same line as the declaration
Loading history...
9
	public string $namespace;
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 1
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 2 spaces, found 1
Loading history...
Coding Style introduced by
Expected 1 blank line(s) before first member var; 0 found
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
10
11
	public string $directory;
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 1
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 2 spaces, found 1
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
12
13
	/**
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected at least 4 spaces, found 1
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 2 spaces, found 1
Loading history...
Coding Style introduced by
Missing short description in doc comment
Loading history...
14
	 * @param string $namespace
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
15
	 * @param string $directory
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
16
	 */
17
	public function __construct(string $namespace, string $directory)
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 1
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 2 spaces, found 1
Loading history...
18
	{
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected at least 4 spaces, found 1
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 2 spaces, found 1
Loading history...
19
		$this->namespace = $namespace;
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected at least 8 spaces, found 2
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 2
Loading history...
20
		$this->directory = $directory;
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected at least 8 spaces, found 2
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 2
Loading history...
21
	}
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 1
Loading history...
Coding Style introduced by
Line indented incorrectly; expected 2 spaces, found 1
Loading history...
Coding Style introduced by
Expected 1 blank line after function; 0 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end __construct()
Loading history...
22
}
0 ignored issues
show
Coding Style introduced by
Expected //end class
Loading history...
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
23