|
@@ 26-32 (lines=7) @@
|
| 23 |
|
|
| 24 |
|
public $logErrors = true; |
| 25 |
|
|
| 26 |
|
public function view($path, $lineContent, $lineNumber, $fileName) |
| 27 |
|
{ |
| 28 |
|
array_push($this->counts['view'], (new PendingError('view')) |
| 29 |
|
->header($this->yellow($fileName.'.blade.php').' does not exist') |
| 30 |
|
->errorData(trim($lineContent)) |
| 31 |
|
->link($path, $lineNumber)); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function others($error, $header = null, $linkPath = null, $linkLineNum = 0) |
| 35 |
|
{ |
|
@@ 34-40 (lines=7) @@
|
| 31 |
|
->link($path, $lineNumber)); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function others($error, $header = null, $linkPath = null, $linkLineNum = 0) |
| 35 |
|
{ |
| 36 |
|
array_push($this->counts['others'], (new PendingError('others')) |
| 37 |
|
->header($header) |
| 38 |
|
->errorData($error) |
| 39 |
|
->link($linkPath, $linkLineNum)); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function route($path, $errorIt, $errorTxt, $linkPath = null, $linkLineNum = 0) |
| 43 |
|
{ |
|
@@ 42-48 (lines=7) @@
|
| 39 |
|
->link($linkPath, $linkLineNum)); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function route($path, $errorIt, $errorTxt, $linkPath = null, $linkLineNum = 0) |
| 43 |
|
{ |
| 44 |
|
array_push($this->counts['route'], (new PendingError('route')) |
| 45 |
|
->header($errorIt) |
| 46 |
|
->errorData($errorTxt.$this->yellow($path)) |
| 47 |
|
->link($linkPath, $linkLineNum)); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function bladeImport($class, $blade) |
| 51 |
|
{ |
|
@@ 71-77 (lines=7) @@
|
| 68 |
|
->link($ref->getFileName(), $method->getStartLine() + 1)); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function wrongImport($absPath, $class, $line) |
| 72 |
|
{ |
| 73 |
|
array_push($this->counts['wrongImport'], (new PendingError('wrongImport')) |
| 74 |
|
->header('Wrong import:') |
| 75 |
|
->errorData($this->yellow("use $class;").' <==== does not exist. ') |
| 76 |
|
->link($absPath, $line)); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
public function wrongUsedClassError($absFilePath, $nonImportedClass) |
| 80 |
|
{ |