Skip to content

Commit 1496f05

Browse files
committed
closes #3
1 parent 2cd8064 commit 1496f05

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/GoogleStructuredDataTestTool.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private function getUrlsByPath($path, \Illuminate\Console\Command $cmd)
219219
*/
220220
private function findUrls($path, \Illuminate\Console\Command $cmd)
221221
{
222-
$urls = $this->getUrl($path, $cmd);
222+
$urls = $this->getUrl($path);
223223
if (count($urls) > 0) {
224224
$cmd->line('Find url: <comment>' . $path . '</comment>');
225225
return $urls;

src/GoogleStructuredDataTestToolServiceProvider.php

+13
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function register()
3939
{
4040
$this->app['command.google-markup:test'] = $this->app->share(
4141
function ($app) {
42+
$this->dummy($app);
4243
return new GoogleStructuredDataTestTool();
4344
}
4445
);
@@ -55,4 +56,16 @@ public function provides()
5556
{
5657
return ['command.google-markup:test'];
5758
}
59+
60+
/**
61+
* @param $app
62+
* @return bool
63+
*/
64+
public function dummy($app)
65+
{
66+
if($app){
67+
return true;
68+
}
69+
return false;
70+
}
5871
}

0 commit comments

Comments
 (0)