@@ -142,13 +142,13 @@ |
||
142 | 142 | return $this; |
143 | 143 | |
144 | 144 | case 'model': |
145 | - case 'model!': |
|
145 | + case 'model!': |
|
146 | 146 | case 'definition': |
147 | - case 'definition!': |
|
147 | + case 'definition!': |
|
148 | 148 | $definition = new Schema($this); |
149 | 149 | if(substr($command, -1) === '!') { |
150 | - $definition->setReadOnly(); |
|
151 | - } |
|
150 | + $definition->setReadOnly(); |
|
151 | + } |
|
152 | 152 | $name = self::wordShift($data); |
153 | 153 | if (empty($name)) { |
154 | 154 | throw new \SwaggerGen\Exception('Missing definition name'); |
@@ -146,7 +146,7 @@ |
||
146 | 146 | case 'definition': |
147 | 147 | case 'definition!': |
148 | 148 | $definition = new Schema($this); |
149 | - if(substr($command, -1) === '!') { |
|
149 | + if (substr($command, -1) === '!') { |
|
150 | 150 | $definition->setReadOnly(); |
151 | 151 | } |
152 | 152 | $name = self::wordShift($data); |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | */ |
52 | 52 | private $title = null; |
53 | 53 | |
54 | - /** |
|
55 | - * @var bool |
|
56 | - */ |
|
57 | - private $readOnly = null; |
|
54 | + /** |
|
55 | + * @var bool |
|
56 | + */ |
|
57 | + private $readOnly = null; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * @var \SwaggerGen\Swagger\Type\AbstractType |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | return self::arrayFilterNull(array_merge($this->type->toArray(), array( |
119 | 119 | 'title' => empty($this->title) ? null : $this->title, |
120 | 120 | 'description' => empty($this->description) ? null : $this->description, |
121 | - 'readOnly' => $this->readOnly |
|
121 | + 'readOnly' => $this->readOnly |
|
122 | 122 | ), parent::toArray())); |
123 | 123 | } |
124 | 124 | |
@@ -127,9 +127,9 @@ discard block |
||
127 | 127 | return __CLASS__; |
128 | 128 | } |
129 | 129 | |
130 | - public function setReadOnly() |
|
131 | - { |
|
132 | - $this->readOnly = true; |
|
133 | - } |
|
130 | + public function setReadOnly() |
|
131 | + { |
|
132 | + $this->readOnly = true; |
|
133 | + } |
|
134 | 134 | |
135 | 135 | } |