simialbi / yii2-schema-org

Schema.org yii2 representation and helpers for json-ld generation
MIT License
17 stars 4 forks source link

Various fixes for generated files #4

Closed machour closed 5 years ago

machour commented 5 years ago

Hey @simialbi,

This PR includes:

<?php

namespace simialbi\yii2\schemaorg\models;

/**
- * Model for Action
+ * An action performed by a direct agent and indirect participants upon a direct
+ * object. Optionally happens at a location with the help of an inanimate
+ * instrument. The execution of the action may produce a result. Specific action
+ * sub-type documentation specifies the exact expectation of each argument/role.
 *
 * @package simialbi\yii2\schemaorg\models
 * @see http://schema.org/Action
 */
class Action extends Thing {
    /**
-    * @var boolean|string Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+    * Indicates whether pets are allowed to enter the accommodation or lodging
+    * business. More detailed information can be put in a text value.
+    *
+    * @var boolean|string
     */
    public $petsAllowed;
-foreach ($files as $file) {
+foreach ($files as $file) if (basename($file) !== 'Model.php') {
     $this->stdout("File '$file' deleted\n", Console::FG_YELLOW);
     @unlink($file);
}
machour commented 5 years ago

The files diff section is best viewed ignoring whitespaces changes: https://github.com/simialbi/yii2-schema-org/pull/4/files?w=1

machour commented 5 years ago

Superseded by #4